CbmRoot
CbmTofHitsConverter.h
Go to the documentation of this file.
1 #ifndef ANALYSIS_TREE_TOFHITSCONVERTER_H
2 #define ANALYSIS_TREE_TOFHITSCONVERTER_H
3 
4 #include "CbmConverterTask.h"
5 
6 #include "AnalysisTree/Detector.hpp"
7 
8 class TClonesArray;
9 class FairTrackParam;
10 
11 namespace AnalysisTree {
12  class Matching;
13 }
14 
15 class CbmTofHitsConverter final : public CbmConverterTask {
16 public:
17  explicit CbmTofHitsConverter(std::string out_branch_name,
18  std::string match_to = "")
19  : CbmConverterTask(std::move(out_branch_name), std::move(match_to)) {
20  in_branches_.emplace_back("TofHits");
21  };
22 
23  ~CbmTofHitsConverter() final;
24  ;
25 
26  void Init(std::map<std::string, void*>&) final;
27  void Exec() final;
28  void Finish() final {};
29 
30 private:
31  void FillTofHits();
32  static void ExtrapolateStraightLine(FairTrackParam* params, float z);
33 
34  TClonesArray* cbm_global_tracks_ {nullptr};
35  TClonesArray* cbm_tof_hits_ {nullptr};
36  // TClonesArray *cbm_tof_points_{nullptr};
37  // TClonesArray *cbm_tof_match_{nullptr};
38  // TClonesArray* cbm_mc_tracks_{nullptr};
39  // TClonesArray* cbm_sts_match_{nullptr};
40 
41  AnalysisTree::HitDetector* tof_hits_ {nullptr};
42  AnalysisTree::Matching* vtx_tracks_2_tof_ {nullptr};
43 
44  ClassDef(CbmTofHitsConverter, 1)
45 };
46 
47 #endif // ANALYSIS_TREE_TOFHITSCONVERTER_H
CbmTofHitsConverter::vtx_tracks_2_tof_
AnalysisTree::Matching * vtx_tracks_2_tof_
Definition: CbmTofHitsConverter.h:42
CbmTofHitsConverter::FillTofHits
void FillTofHits()
Definition: CbmTofHitsConverter.cxx:69
CbmTofHitsConverter::tof_hits_
AnalysisTree::HitDetector * tof_hits_
Definition: CbmTofHitsConverter.h:41
CbmConverterTask.h
CbmTofHitsConverter::Init
void Init(std::map< std::string, void * > &) final
CbmTofHitsConverter::~CbmTofHitsConverter
~CbmTofHitsConverter() final
Definition: CbmTofHitsConverter.cxx:171
CbmTofHitsConverter::Finish
void Finish() final
Definition: CbmTofHitsConverter.h:28
AnalysisTree
Definition: CbmConverterManager.h:6
CbmTofHitsConverter::cbm_global_tracks_
TClonesArray * cbm_global_tracks_
Definition: CbmTofHitsConverter.h:34
CbmTofHitsConverter::ExtrapolateStraightLine
static void ExtrapolateStraightLine(FairTrackParam *params, float z)
Definition: CbmTofHitsConverter.cxx:55
CbmTofHitsConverter
Definition: CbmTofHitsConverter.h:15
CbmTofHitsConverter::Exec
void Exec() final
Definition: CbmTofHitsConverter.cxx:169
CbmTofHitsConverter::CbmTofHitsConverter
CbmTofHitsConverter(std::string out_branch_name, std::string match_to="")
Definition: CbmTofHitsConverter.h:17
CbmTofHitsConverter::cbm_tof_hits_
TClonesArray * cbm_tof_hits_
Definition: CbmTofHitsConverter.h:35
CbmConverterTask
Definition: CbmConverterTask.h:8