CbmRoot
CbmRecEventHeaderConverter.h
Go to the documentation of this file.
1 #ifndef ANALYSIS_TREE_RECEVENTHEADERCONVERTER_H_
2 #define ANALYSIS_TREE_RECEVENTHEADERCONVERTER_H_
3 
4 #include "AnalysisTree/EventHeader.hpp"
5 
6 #include "CbmConverterTask.h"
7 
8 class FairMCEventHeader;
9 class CbmVertex;
10 
12 public:
13  explicit CbmRecEventHeaderConverter(std::string out_branch_name)
14  : CbmConverterTask(std::move(out_branch_name)) {
15  in_branches_.emplace_back("MCEventHeader.");
16  in_branches_.emplace_back("PrimaryVertex.");
17  };
18  ~CbmRecEventHeaderConverter() final = default;
19 
20  void Init(std::map<std::string, void*>&) final;
21  void Exec() final;
22  void Finish() final { delete rec_event_header_; };
23 
24 private:
25  AnalysisTree::EventHeader* rec_event_header_ {nullptr};
26 
27  FairMCEventHeader* cbm_header_ {nullptr};
29 
30  ClassDef(CbmRecEventHeaderConverter, 1)
31 };
32 
33 #endif // ANALYSIS_TREE_RECEVENTHEADERCONVERTER_H_
CbmRecEventHeaderConverter::Finish
void Finish() final
Definition: CbmRecEventHeaderConverter.h:22
CbmRecEventHeaderConverter::cbm_prim_vertex_
CbmVertex * cbm_prim_vertex_
Definition: CbmRecEventHeaderConverter.h:28
CbmConverterTask.h
CbmRecEventHeaderConverter::cbm_header_
FairMCEventHeader * cbm_header_
Definition: CbmRecEventHeaderConverter.h:27
CbmRecEventHeaderConverter::~CbmRecEventHeaderConverter
~CbmRecEventHeaderConverter() final=default
CbmVertex
Definition: CbmVertex.h:26
CbmRecEventHeaderConverter::rec_event_header_
AnalysisTree::EventHeader * rec_event_header_
Definition: CbmRecEventHeaderConverter.h:25
CbmRecEventHeaderConverter::CbmRecEventHeaderConverter
CbmRecEventHeaderConverter(std::string out_branch_name)
Definition: CbmRecEventHeaderConverter.h:13
CbmRecEventHeaderConverter::Init
void Init(std::map< std::string, void * > &) final
CbmRecEventHeaderConverter::Exec
void Exec() final
Definition: CbmRecEventHeaderConverter.cxx:34
CbmRecEventHeaderConverter
Definition: CbmRecEventHeaderConverter.h:11
CbmConverterTask
Definition: CbmConverterTask.h:8