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
13
class
FairMCEventHeader;
14
class
CbmVertex
;
15
class
CbmMCDataManager
;
16
class
CbmMCDataArray
;
17
class
CbmMCDataObject
;
18
19
class
CbmSimEventHeaderConverter
final :
public
CbmConverterTask
{
20
public
:
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
28
private
:
29
AnalysisTree::EventHeader*
sim_event_header_
{
nullptr
};
30
FairMCEventHeader*
cbm_header_
{
nullptr
};
31
CbmMCDataManager
*
cbm_mc_manager_
{
nullptr
};
32
CbmMCDataObject
*
cbm_header_obj_
{
nullptr
};
33
CbmMCEventList
*
cbm_mc_event_list_
{
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
43
ClassDef(
CbmSimEventHeaderConverter
, 1)
44
};
45
46
#endif
// ANALYSIS_TREE_SIMEVENTHEADERCONVERTER_H_
CbmConverterTask.h
CbmMCEventList.h
CbmConverterTask
Definition
CbmConverterTask.h:18
CbmEvent
Class characterising one event by a collection of links (indices) to data objects,...
Definition
CbmEvent.h:34
CbmMCDataArray
Access to a MC data branch for time-based analysis.
Definition
CbmMCDataArray.h:39
CbmMCDataManager
Task class creating and managing CbmMCDataArray objects.
Definition
CbmMCDataManager.h:31
CbmMCDataObject
Access to a MC data branch for time-based analysis.
Definition
CbmMCDataObject.h:38
CbmMCEventList
Container class for MC events with number, file and start time.
Definition
CbmMCEventList.h:43
CbmSimEventHeaderConverter
Definition
CbmSimEventHeaderConverter.h:19
CbmSimEventHeaderConverter::cbm_header_obj_
CbmMCDataObject * cbm_header_obj_
Definition
CbmSimEventHeaderConverter.h:32
CbmSimEventHeaderConverter::Init
void Init() final
Definition
CbmSimEventHeaderConverter.cxx:24
CbmSimEventHeaderConverter::~CbmSimEventHeaderConverter
~CbmSimEventHeaderConverter() final=default
CbmSimEventHeaderConverter::istart_time_
int istart_time_
Definition
CbmSimEventHeaderConverter.h:37
CbmSimEventHeaderConverter::Finish
void Finish() final
Definition
CbmSimEventHeaderConverter.h:26
CbmSimEventHeaderConverter::cbm_mc_event_list_
CbmMCEventList * cbm_mc_event_list_
Definition
CbmSimEventHeaderConverter.h:33
CbmSimEventHeaderConverter::cbm_mc_manager_
CbmMCDataManager * cbm_mc_manager_
Definition
CbmSimEventHeaderConverter.h:31
CbmSimEventHeaderConverter::iT0_
int iT0_
Definition
CbmSimEventHeaderConverter.h:41
CbmSimEventHeaderConverter::iend_time_
int iend_time_
Definition
CbmSimEventHeaderConverter.h:38
CbmSimEventHeaderConverter::ProcessData
void ProcessData(CbmEvent *event) final
Definition
CbmSimEventHeaderConverter.cxx:57
CbmSimEventHeaderConverter::sim_event_header_
AnalysisTree::EventHeader * sim_event_header_
Definition
CbmSimEventHeaderConverter.h:29
CbmSimEventHeaderConverter::ievent_id_
int ievent_id_
Definition
CbmSimEventHeaderConverter.h:40
CbmSimEventHeaderConverter::cbm_header_
FairMCEventHeader * cbm_header_
Definition
CbmSimEventHeaderConverter.h:30
CbmSimEventHeaderConverter::CbmSimEventHeaderConverter
CbmSimEventHeaderConverter(std::string out_branch_name)
Definition
CbmSimEventHeaderConverter.h:21
CbmSimEventHeaderConverter::ipsi_RP_
int ipsi_RP_
Definition
CbmSimEventHeaderConverter.h:35
CbmSimEventHeaderConverter::irun_id_
int irun_id_
Definition
CbmSimEventHeaderConverter.h:39
CbmSimEventHeaderConverter::ib_
int ib_
Definition
CbmSimEventHeaderConverter.h:36
CbmVertex
Definition
CbmVertex.h:32
std
Hash for CbmL1LinkKey.
Definition
algo/base/Options.cxx:21
analysis
common
analysis_tree_converter
CbmSimEventHeaderConverter.h
Generated on Sun Dec 22 2024 23:04:05 for CbmRoot by
1.12.0