CbmRoot
Loading...
Searching...
No Matches
CbmSimEventHeaderConverter.h
Go to the documentation of this file.
1/* Copyright (C) 2020-2021 Physikalisches Institut, Eberhard Karls Universitaet Tuebingen, Tuebingen
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Viktor Klochkov [committer] */
4
5#ifndef ANALYSIS_TREE_SIMEVENTHEADERCONVERTER_H_
6#define ANALYSIS_TREE_SIMEVENTHEADERCONVERTER_H_
7
8#include "CbmConverterTask.h"
9#include "CbmMCEventList.h"
10
11#include "AnalysisTree/EventHeader.hpp"
12
13class FairMCEventHeader;
14class CbmVertex;
16class CbmMCDataArray;
17class CbmMCDataObject;
18
20public:
21 explicit CbmSimEventHeaderConverter(std::string out_branch_name) : CbmConverterTask(std::move(out_branch_name)) {};
22 ~CbmSimEventHeaderConverter() final = default;
23
24 void Init() final;
25 void ProcessData(CbmEvent* event) final;
26 void Finish() final { delete sim_event_header_; };
27
28private:
29 AnalysisTree::EventHeader* sim_event_header_ {nullptr};
30 FairMCEventHeader* cbm_header_ {nullptr};
34
35 int ipsi_RP_ {AnalysisTree::UndefValueInt};
36 int ib_ {AnalysisTree::UndefValueInt};
37 int istart_time_ {AnalysisTree::UndefValueInt};
38 int iend_time_ {AnalysisTree::UndefValueInt};
39 int irun_id_ {AnalysisTree::UndefValueInt};
40 int ievent_id_ {AnalysisTree::UndefValueInt};
41 int iT0_{AnalysisTree::UndefValueInt};
42
44};
45
46#endif // ANALYSIS_TREE_SIMEVENTHEADERCONVERTER_H_
Class characterising one event by a collection of links (indices) to data objects,...
Definition CbmEvent.h:34
Access to a MC data branch for time-based analysis.
Task class creating and managing CbmMCDataArray objects.
Access to a MC data branch for time-based analysis.
Container class for MC events with number, file and start time.
~CbmSimEventHeaderConverter() final=default
void ProcessData(CbmEvent *event) final
AnalysisTree::EventHeader * sim_event_header_
CbmSimEventHeaderConverter(std::string out_branch_name)
Hash for CbmL1LinkKey.