CbmRoot
Loading...
Searching...
No Matches
CbmTrdTracksConverter.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_TRDTRACKSCONVERTER_H_
6#define ANALYSIS_TREE_TRDTRACKSCONVERTER_H_
7
8#include "CbmConverterTask.h"
9
10#include "AnalysisTree/Detector.hpp"
11
12class TClonesArray;
13
14namespace AnalysisTree
15{
16 class Matching;
17}
18
20
21public:
22 explicit CbmTrdTracksConverter(std::string out_branch_name, std::string match_to = "")
23 : CbmConverterTask(std::move(out_branch_name), std::move(match_to))
24 {
25 }
26
28
29 void Init() final;
30 void ProcessData(CbmEvent* event) final;
31 void Finish() final {};
32
33private:
34 TClonesArray* cbm_global_tracks_ {nullptr};
35 TClonesArray* cbm_trd_tracks_ {nullptr};
36 TClonesArray* cbm_trd_hits_ {nullptr};
37
38 AnalysisTree::TrackDetector* trd_tracks_ {nullptr};
39 AnalysisTree::Matching* vtx_tracks_2_trd_ {nullptr};
40
41 int i_e_loss_i_ {AnalysisTree::UndefValueInt};
42 int i_pid_like_ {AnalysisTree::UndefValueInt};
43 int i_chi2_ov_ndf_ {AnalysisTree::UndefValueInt};
44 int i_pT_out_ {AnalysisTree::UndefValueInt};
45 int i_n_hits_ {AnalysisTree::UndefValueInt};
46
47 ClassDef(CbmTrdTracksConverter, 1)
48};
49
50
51#endif //ANALYSIS_TREE_TRDTRACKSCONVERTER_H_
Class characterising one event by a collection of links (indices) to data objects,...
Definition CbmEvent.h:34
CbmTrdTracksConverter(std::string out_branch_name, std::string match_to="")
void ProcessData(CbmEvent *event) final
AnalysisTree::Matching * vtx_tracks_2_trd_
AnalysisTree::TrackDetector * trd_tracks_
Hash for CbmL1LinkKey.