CbmRoot
Loading...
Searching...
No Matches
CbmRichRingsConverter.h
Go to the documentation of this file.
1/* Copyright (C) 2021 Physikalisches Institut, Eberhard Karls Universitaet Tuebingen, Tuebingen
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Viktor Klochkov [committer] */
4
5#ifndef ANALYSIS_TREE_RICHRINGSCONVERTER_H_
6#define ANALYSIS_TREE_RICHRINGSCONVERTER_H_
7
8#include "CbmConverterTask.h"
9
10#include "AnalysisTree/Detector.hpp"
11
12class TClonesArray;
13
14namespace AnalysisTree
15{
16 class Matching;
17}
18
20public:
21 explicit CbmRichRingsConverter(std::string out_branch_name, std::string match_to = "")
22 : CbmConverterTask(std::move(out_branch_name), std::move(match_to)) {};
23
25
26 void Init() final;
27 void ProcessData(CbmEvent* event) final;
28 void Finish() final {};
29
30private:
31 TClonesArray* cbm_global_tracks_ {nullptr};
32 TClonesArray* cbm_rich_rings_ {nullptr};
33
34 AnalysisTree::HitDetector* rich_rings_ {nullptr};
35 AnalysisTree::Matching* vtx_tracks_2_rich_ {nullptr};
36
37 int i_r_ {AnalysisTree::UndefValueInt};
38 int i_n_hits_ {AnalysisTree::UndefValueInt};
39 int i_axis_ {AnalysisTree::UndefValueInt};
40 int i_center_ {AnalysisTree::UndefValueInt};
41 int i_chi2_ {AnalysisTree::UndefValueInt};
42 int i_radial_angle_ {AnalysisTree::UndefValueInt};
43 int i_radial_pos_ {AnalysisTree::UndefValueInt};
44 int i_phi_ellipse_ {AnalysisTree::UndefValueInt};
45
46 ClassDef(CbmRichRingsConverter, 1)
47};
48
49
50#endif //ANALYSIS_TREE_RICHRINGSCONVERTER_H_
Class characterising one event by a collection of links (indices) to data objects,...
Definition CbmEvent.h:34
AnalysisTree::HitDetector * rich_rings_
AnalysisTree::Matching * vtx_tracks_2_rich_
CbmRichRingsConverter(std::string out_branch_name, std::string match_to="")
void ProcessData(CbmEvent *event) final
Hash for CbmL1LinkKey.