CbmRoot
CbmConverterTask.h
Go to the documentation of this file.
1 #ifndef ANALYSIS_TREE_CONVERTERTASK_H_
2 #define ANALYSIS_TREE_CONVERTERTASK_H_
3 
4 #include "AnalysisTree/FillTask.hpp"
5 
6 class FairRootManager;
7 
8 class CbmConverterTask : public AnalysisTree::FillTask {
9 
10 public:
11  CbmConverterTask() = delete;
12  explicit CbmConverterTask(std::string out_branch_name,
13  std::string match_to = "") {
14  out_branch_ = std::move(out_branch_name);
15  match_to_ = std::move(match_to);
16  };
17 
18  ~CbmConverterTask() override = default;
19 
20  // void SetIoMan(FairRootManager* man) { ioman_ = man; }
21  const std::map<int, int>& GetOutIndexesMap() const {
22  return out_indexes_map_;
23  }
24 
25  void SetIndexesMap(std::map<std::string, std::map<int, int>>* indexes_map) {
26  indexes_map_ = indexes_map;
27  }
28 
29 protected:
30  // FairRootManager* ioman_{nullptr};
31  std::map<int, int> out_indexes_map_ {};
32  std::map<std::string, std::map<int, int>>*
35  std::string match_to_ {};
37 };
38 
39 #endif // ANALYSIS_TREE_CONVERTERTASK_H_
CbmConverterTask::CbmConverterTask
CbmConverterTask()=delete
CbmConverterTask::match_to_
std::string match_to_
AT branch to match.
Definition: CbmConverterTask.h:36
CbmConverterTask::SetIndexesMap
void SetIndexesMap(std::map< std::string, std::map< int, int >> *indexes_map)
Definition: CbmConverterTask.h:25
CbmConverterTask::indexes_map_
std::map< std::string, std::map< int, int > > * indexes_map_
Definition: CbmConverterTask.h:34
CbmConverterTask::CbmConverterTask
CbmConverterTask(std::string out_branch_name, std::string match_to="")
Definition: CbmConverterTask.h:12
CbmConverterTask::out_indexes_map_
std::map< int, int > out_indexes_map_
Definition: CbmConverterTask.h:31
CbmConverterTask::~CbmConverterTask
~CbmConverterTask() override=default
CbmConverterTask::GetOutIndexesMap
const std::map< int, int > & GetOutIndexesMap() const
Definition: CbmConverterTask.h:21
CbmConverterTask
Definition: CbmConverterTask.h:8