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