CbmRoot
CbmSimTracksConverter.h
Go to the documentation of this file.
1 #ifndef ANALYSIS_TREE_SIMTRACKSCONVERTER_H_
2 #define ANALYSIS_TREE_SIMTRACKSCONVERTER_H_
3 
4 #include "AnalysisTree/Detector.hpp"
5 
6 #include "CbmConverterTask.h"
7 
8 class TClonesArray;
9 
11 public:
12  explicit CbmSimTracksConverter(std::string out_branch_name,
13  std::string match_to = "")
14  : CbmConverterTask(std::move(out_branch_name), std::move(match_to)) {
15  in_branches_.emplace_back("MCTrack");
16  };
17 
18  ~CbmSimTracksConverter() final;
19 
20  void Init(std::map<std::string, void*>&) final;
21  void Exec() final;
22  void Finish() final {};
23 
24 private:
25  AnalysisTree::Particles* sim_tracks_ {nullptr};
26  TClonesArray* cbm_mc_tracks_ {nullptr};
27 
28  ClassDef(CbmSimTracksConverter, 1)
29 };
30 
31 #endif
CbmSimTracksConverter::Finish
void Finish() final
Definition: CbmSimTracksConverter.h:22
CbmConverterTask.h
CbmSimTracksConverter::Exec
void Exec() final
Definition: CbmSimTracksConverter.cxx:29
CbmSimTracksConverter
Definition: CbmSimTracksConverter.h:10
CbmSimTracksConverter::~CbmSimTracksConverter
~CbmSimTracksConverter() final
Definition: CbmSimTracksConverter.cxx:68
CbmSimTracksConverter::CbmSimTracksConverter
CbmSimTracksConverter(std::string out_branch_name, std::string match_to="")
Definition: CbmSimTracksConverter.h:12
CbmSimTracksConverter::cbm_mc_tracks_
TClonesArray * cbm_mc_tracks_
Definition: CbmSimTracksConverter.h:26
CbmSimTracksConverter::Init
void Init(std::map< std::string, void * > &) final
CbmSimTracksConverter::sim_tracks_
AnalysisTree::Particles * sim_tracks_
Definition: CbmSimTracksConverter.h:25
CbmConverterTask
Definition: CbmConverterTask.h:8