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
15class FairMCEventHeader;
16class CbmVertex;
17class TClonesArray;
18
20public:
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
28private:
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};
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
51};
52
53#endif // ANALYSIS_TREE_RECEVENTHEADERCONVERTER_H_
Class characterising one event by a collection of links (indices) to data objects,...
Definition CbmEvent.h:34
AnalysisTree::EventHeader * rec_event_header_
TClonesArray * cbm_psd_hits_
non-owning pointer
FairMCEventHeader * cbm_header_
non-owning pointer
~CbmRecEventHeaderConverter() final=default
void ProcessData(CbmEvent *event) final
TClonesArray * cbm_sts_tracks_
non-owning pointer
CbmRecEventHeaderConverter(std::string out_branch_name)
CbmVertex * cbm_prim_vertex_
non-owning pointer
CbmTimeSlice * fTimeSlice
non-owning pointer
Bookkeeping of time-slice content.
Hash for CbmL1LinkKey.