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