CbmRoot
Loading...
Searching...
No Matches
CbmRecEventHeaderConverter.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_RECEVENTHEADERCONVERTER_H_
6
#define ANALYSIS_TREE_RECEVENTHEADERCONVERTER_H_
7
8
#include "
CbmConverterTask.h
"
9
#include "
CbmDefs.h
"
10
#include "
CbmEvent.h
"
11
#include "
CbmTimeSlice.h
"
12
13
#include "AnalysisTree/EventHeader.hpp"
14
15
class
FairMCEventHeader;
16
class
CbmVertex
;
17
class
TClonesArray;
18
19
class
CbmRecEventHeaderConverter
final :
public
CbmConverterTask
{
20
public
:
21
explicit
CbmRecEventHeaderConverter
(std::string out_branch_name) :
CbmConverterTask
(
std
::move(out_branch_name)) {};
22
~CbmRecEventHeaderConverter
() final = default;
23
24
void
Init
() final;
25
void
ProcessData
(
CbmEvent
* event) final;
26
void
Finish
() final {
delete
rec_event_header_
; };
27
28
private
:
29
float
GetPsdEnergy
(
CbmEvent
* event);
30
31
AnalysisTree::EventHeader*
rec_event_header_
{
nullptr
};
32
33
TClonesArray*
cbm_psd_hits_
{
nullptr
};
34
TClonesArray*
cbm_sts_tracks_
{
nullptr
};
35
FairMCEventHeader*
cbm_header_
{
nullptr
};
36
CbmVertex
*
cbm_prim_vertex_
{
nullptr
};
37
CbmTimeSlice
*
fTimeSlice
{
nullptr
};
38
39
int
ivtx_chi2_
{AnalysisTree::UndefValueInt};
40
int
iEpsd_
{AnalysisTree::UndefValueInt};
41
int
iM_
{AnalysisTree::UndefValueInt};
42
int
iMCEvents_
{AnalysisTree::UndefValueInt};
43
int
ievt_id_
{AnalysisTree::UndefValueInt};
44
int
istart_time_
{AnalysisTree::UndefValueInt};
45
int
iend_time_
{AnalysisTree::UndefValueInt};
46
int
imatch_weight_
{AnalysisTree::UndefValueInt};
47
int
iT0_
{AnalysisTree::UndefValueInt};
48
int
iTStartTS_
{AnalysisTree::UndefValueInt};
49
50
ClassDef(
CbmRecEventHeaderConverter
, 1)
51
};
52
53
#endif
// ANALYSIS_TREE_RECEVENTHEADERCONVERTER_H_
CbmConverterTask.h
CbmDefs.h
CbmEvent.h
CbmTimeSlice.h
CbmConverterTask
Definition
CbmConverterTask.h:18
CbmEvent
Class characterising one event by a collection of links (indices) to data objects,...
Definition
CbmEvent.h:34
CbmRecEventHeaderConverter
Definition
CbmRecEventHeaderConverter.h:19
CbmRecEventHeaderConverter::iT0_
int iT0_
Definition
CbmRecEventHeaderConverter.h:47
CbmRecEventHeaderConverter::rec_event_header_
AnalysisTree::EventHeader * rec_event_header_
Definition
CbmRecEventHeaderConverter.h:31
CbmRecEventHeaderConverter::cbm_psd_hits_
TClonesArray * cbm_psd_hits_
non-owning pointer
Definition
CbmRecEventHeaderConverter.h:33
CbmRecEventHeaderConverter::cbm_header_
FairMCEventHeader * cbm_header_
non-owning pointer
Definition
CbmRecEventHeaderConverter.h:35
CbmRecEventHeaderConverter::ievt_id_
int ievt_id_
Definition
CbmRecEventHeaderConverter.h:43
CbmRecEventHeaderConverter::iend_time_
int iend_time_
Definition
CbmRecEventHeaderConverter.h:45
CbmRecEventHeaderConverter::~CbmRecEventHeaderConverter
~CbmRecEventHeaderConverter() final=default
CbmRecEventHeaderConverter::ProcessData
void ProcessData(CbmEvent *event) final
Definition
CbmRecEventHeaderConverter.cxx:61
CbmRecEventHeaderConverter::iM_
int iM_
Definition
CbmRecEventHeaderConverter.h:41
CbmRecEventHeaderConverter::iEpsd_
int iEpsd_
Definition
CbmRecEventHeaderConverter.h:40
CbmRecEventHeaderConverter::cbm_sts_tracks_
TClonesArray * cbm_sts_tracks_
non-owning pointer
Definition
CbmRecEventHeaderConverter.h:34
CbmRecEventHeaderConverter::CbmRecEventHeaderConverter
CbmRecEventHeaderConverter(std::string out_branch_name)
Definition
CbmRecEventHeaderConverter.h:21
CbmRecEventHeaderConverter::Finish
void Finish() final
Definition
CbmRecEventHeaderConverter.h:26
CbmRecEventHeaderConverter::ivtx_chi2_
int ivtx_chi2_
Definition
CbmRecEventHeaderConverter.h:39
CbmRecEventHeaderConverter::istart_time_
int istart_time_
Definition
CbmRecEventHeaderConverter.h:44
CbmRecEventHeaderConverter::Init
void Init() final
Definition
CbmRecEventHeaderConverter.cxx:22
CbmRecEventHeaderConverter::iMCEvents_
int iMCEvents_
Definition
CbmRecEventHeaderConverter.h:42
CbmRecEventHeaderConverter::iTStartTS_
int iTStartTS_
Definition
CbmRecEventHeaderConverter.h:48
CbmRecEventHeaderConverter::GetPsdEnergy
float GetPsdEnergy(CbmEvent *event)
Definition
CbmRecEventHeaderConverter.cxx:112
CbmRecEventHeaderConverter::cbm_prim_vertex_
CbmVertex * cbm_prim_vertex_
non-owning pointer
Definition
CbmRecEventHeaderConverter.h:36
CbmRecEventHeaderConverter::imatch_weight_
int imatch_weight_
Definition
CbmRecEventHeaderConverter.h:46
CbmRecEventHeaderConverter::fTimeSlice
CbmTimeSlice * fTimeSlice
non-owning pointer
Definition
CbmRecEventHeaderConverter.h:37
CbmTimeSlice
Bookkeeping of time-slice content.
Definition
CbmTimeSlice.h:33
CbmVertex
Definition
CbmVertex.h:32
std
Hash for CbmL1LinkKey.
Definition
algo/base/Options.cxx:21
analysis
common
analysis_tree_converter
CbmRecEventHeaderConverter.h
Generated on Sun Dec 22 2024 23:04:05 for CbmRoot by
1.12.0