BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnFillDstTask.h
Go to the documentation of this file.
1
/********************************************************************************
2
* BmnFillDstTask.h *
3
* BM@N Fill DST Task class declaration *
4
* Add necessary data and event header to the DST file after reconstruction *
5
*******************************************************************************/
6
7
#ifndef BMNFILLDSTTASK_H
8
#define BMNFILLDSTTASK_H
9
10
#include "
BmnEventHeader.h
"
11
#include "
BmnMCInfoDst.h
"
12
#include "
BmnTask.h
"
13
#include "
CbmVertex.h
"
14
#include "
DstEventHeader.h
"
15
#include "
DstRunHeader.h
"
16
#include "FairMCEventHeader.h"
17
#include "
TClonesArray.h
"
18
19
#include <map>
20
21
class
BmnFillDstTask
:
public
BmnTask
22
{
23
public
:
24
/** Default constructor **/
25
BmnFillDstTask
();
26
27
/** Constructor with start event and event number to be processed, and autodefinition whether experimental data are
28
* used **/
29
BmnFillDstTask
(
Long64_t
nStartEvent,
Long64_t
nEvents);
30
31
/** Constructor with start event and event number to be processed, experimental data flag, period and run numbers
32
* **/
33
BmnFillDstTask
(
Long64_t
nStartEvent,
34
Long64_t
nEvents,
35
Bool_t
isExp,
36
Int_t
period_number = -1,
37
Int_t
run_number = -1);
38
39
/** Destructor **/
40
~BmnFillDstTask
();
41
42
/** Initialization of task at the beginning **/
43
virtual
InitStatus
Init
();
44
45
/** ReInitialization of task when the runID/file changes **/
46
virtual
InitStatus
ReInit
();
47
48
/** Executed for each event **/
49
virtual
void
Exec
(
Option_t
* opt);
50
51
/** Load the parameter container from the runtime database **/
52
virtual
void
SetParContainers
();
53
54
/** Finish task called at the end **/
55
virtual
void
Finish
();
56
57
/** Setting period-number information to fill RunHeader **/
58
void
SetRunNumber
(
Int_t
period_number,
Int_t
run_number)
59
{
60
fPeriodNumber
= period_number;
61
fRunNumber
= run_number;
62
}
63
void
DoZCalibration
(
Bool_t
cal) {
fDoCalibration
= cal; }
64
65
/** Fill map with weight-charge of possible particles **/
66
void
InitParticleInfo
();
67
68
struct
stParticleInfo
69
{
70
Int_t
A
;
71
Int_t
Z
;
72
};
73
74
private
:
75
int
isExpData
;
76
/** period number **/
77
Int_t
fPeriodNumber
;
78
/** run number **/
79
Int_t
fRunNumber
;
80
81
/** Input MCEventHeader from Simulation File **/
82
FairMCEventHeader
*
fMCEventHeader
;
//!
83
/** Input Monte-Carlo tracks from Simulation File **/
84
TClonesArray
*
fMCTracks
;
//!
85
/** Output MC Information for physics analysis **/
86
BmnMCInfoDst
*
fMCInfoDst
;
//!
87
/** Input BmnEventHeader from Experimental Digit File **/
88
BmnEventHeader
*
fEventHeader
;
//!
89
/** Output DstEventHeader prepared in FairRunAna **/
90
DstEventHeader
*
fDstHeader
;
//!
91
/** Output BmnRunHeader **/
92
DstRunHeader
*
fRunHeader
;
//!
93
/** start event from which the processing is started **/
94
Long64_t
fNStartEvent
;
95
/** event count to be processed **/
96
Long64_t
fNEvents
;
97
/** current event being processed for progress bar **/
98
Long64_t
fIEvent
;
99
/** pointer to primary vertex in the current event **/
100
CbmVertex
*
fPrimaryVertex
;
101
/** pointer to global tracks in the current event **/
102
TClonesArray
*
fGlobalTracks
;
103
104
/** z calibration parameters: **/
105
Double_t
fZCalib1
;
106
Double_t
fZCalib2
;
107
Double_t
fBC1Calib
;
108
Double_t
fBC2Calib
;
109
Bool_t
fDoCalibration
;
110
111
/*For ADC, charge calculation*/
112
TClonesArray
*
fT0
, *
fBC1
, *
fBC2
, *
fBC3
, *
fBC4
;
//!
113
114
/** map with particle names and corresponding weight-charge pairs **/
115
map<TString, stParticleInfo>
mapParticleInfo
;
116
117
BmnFillDstTask
(
const
BmnFillDstTask
&) =
delete
;
118
BmnFillDstTask
operator=
(
const
BmnFillDstTask
&) =
delete
;
119
120
/** Reset variables between events **/
121
void
Reset
();
122
123
void
applyZCalibration
();
124
/** set headers with autodefinition whether experimental or simulation data are used **/
125
bool
autoSetHeaders
();
126
127
ClassDef
(
BmnFillDstTask
, 2);
128
};
129
130
#endif
Bool_t
bool Bool_t
Int_t
int Int_t
Double_t
double Double_t
Long64_t
long long Long64_t
Option_t
const char Option_t
ClassDef
#define ClassDef(name, id)
TClonesArray.h
BmnEventHeader
Definition
BmnEventHeader.h:24
BmnFillDstTask::fBC2Calib
Double_t fBC2Calib
Definition
BmnFillDstTask.h:108
BmnFillDstTask::SetParContainers
virtual void SetParContainers()
Load the parameter container from the runtime database.
Definition
BmnFillDstTask.cxx:574
BmnFillDstTask::Finish
virtual void Finish()
Finish task called at the end.
Definition
BmnFillDstTask.cxx:562
BmnFillDstTask::fBC4
TClonesArray * fBC4
Definition
BmnFillDstTask.h:112
BmnFillDstTask::fDoCalibration
Bool_t fDoCalibration
Definition
BmnFillDstTask.h:109
BmnFillDstTask::fBC2
TClonesArray * fBC2
Definition
BmnFillDstTask.h:112
BmnFillDstTask::fBC1Calib
Double_t fBC1Calib
Definition
BmnFillDstTask.h:107
BmnFillDstTask::fRunHeader
DstRunHeader * fRunHeader
Output BmnRunHeader.
Definition
BmnFillDstTask.h:92
BmnFillDstTask::InitParticleInfo
void InitParticleInfo()
Fill map with weight-charge of possible particles.
Definition
BmnFillDstTask.cxx:639
BmnFillDstTask::fRunNumber
Int_t fRunNumber
run number
Definition
BmnFillDstTask.h:79
BmnFillDstTask::fNStartEvent
Long64_t fNStartEvent
start event from which the processing is started
Definition
BmnFillDstTask.h:94
BmnFillDstTask::Reset
void Reset()
Reset variables between events.
Definition
BmnFillDstTask.cxx:384
BmnFillDstTask::fMCTracks
TClonesArray * fMCTracks
Input Monte-Carlo tracks from Simulation File.
Definition
BmnFillDstTask.h:84
BmnFillDstTask::fNEvents
Long64_t fNEvents
event count to be processed
Definition
BmnFillDstTask.h:96
BmnFillDstTask::fEventHeader
BmnEventHeader * fEventHeader
Input BmnEventHeader from Experimental Digit File.
Definition
BmnFillDstTask.h:88
BmnFillDstTask::fT0
TClonesArray * fT0
Definition
BmnFillDstTask.h:112
BmnFillDstTask::Init
virtual InitStatus Init()
Initialization of task at the beginning.
Definition
BmnFillDstTask.cxx:173
BmnFillDstTask::SetRunNumber
void SetRunNumber(Int_t period_number, Int_t run_number)
Setting period-number information to fill RunHeader.
Definition
BmnFillDstTask.h:58
BmnFillDstTask::fMCEventHeader
FairMCEventHeader * fMCEventHeader
Input MCEventHeader from Simulation File.
Definition
BmnFillDstTask.h:82
BmnFillDstTask::DoZCalibration
void DoZCalibration(Bool_t cal)
Definition
BmnFillDstTask.h:63
BmnFillDstTask::fBC1
TClonesArray * fBC1
Definition
BmnFillDstTask.h:112
BmnFillDstTask::fDstHeader
DstEventHeader * fDstHeader
Output DstEventHeader prepared in FairRunAna.
Definition
BmnFillDstTask.h:90
BmnFillDstTask::fPrimaryVertex
CbmVertex * fPrimaryVertex
pointer to primary vertex in the current event
Definition
BmnFillDstTask.h:100
BmnFillDstTask::fZCalib2
Double_t fZCalib2
Definition
BmnFillDstTask.h:106
BmnFillDstTask::autoSetHeaders
bool autoSetHeaders()
set headers with autodefinition whether experimental or simulation data are used
Definition
BmnFillDstTask.cxx:148
BmnFillDstTask::Exec
virtual void Exec(Option_t *opt)
Executed for each event.
Definition
BmnFillDstTask.cxx:392
BmnFillDstTask::fIEvent
Long64_t fIEvent
current event being processed for progress bar
Definition
BmnFillDstTask.h:98
BmnFillDstTask::isExpData
int isExpData
Definition
BmnFillDstTask.h:75
BmnFillDstTask::BmnFillDstTask
BmnFillDstTask(const BmnFillDstTask &)=delete
BmnFillDstTask::operator=
BmnFillDstTask operator=(const BmnFillDstTask &)=delete
BmnFillDstTask::fPeriodNumber
Int_t fPeriodNumber
period number
Definition
BmnFillDstTask.h:77
BmnFillDstTask::fGlobalTracks
TClonesArray * fGlobalTracks
pointer to global tracks in the current event
Definition
BmnFillDstTask.h:102
BmnFillDstTask::fZCalib1
Double_t fZCalib1
z calibration parameters:
Definition
BmnFillDstTask.h:105
BmnFillDstTask::fBC3
TClonesArray * fBC3
Definition
BmnFillDstTask.h:112
BmnFillDstTask::BmnFillDstTask
BmnFillDstTask()
Default constructor.
Definition
BmnFillDstTask.cxx:37
BmnFillDstTask::fMCInfoDst
BmnMCInfoDst * fMCInfoDst
Output MC Information for physics analysis.
Definition
BmnFillDstTask.h:86
BmnFillDstTask::applyZCalibration
void applyZCalibration()
Definition
BmnFillDstTask.cxx:587
BmnFillDstTask::mapParticleInfo
map< TString, stParticleInfo > mapParticleInfo
map with particle names and corresponding weight-charge pairs
Definition
BmnFillDstTask.h:115
BmnFillDstTask::ReInit
virtual InitStatus ReInit()
ReInitialization of task when the runID/file changes.
Definition
BmnFillDstTask.cxx:377
BmnFillDstTask::~BmnFillDstTask
~BmnFillDstTask()
Destructor.
Definition
BmnFillDstTask.cxx:138
BmnMCInfoDst
Definition
BmnMCInfoDst.h:12
BmnTask::BmnTask
BmnTask()
Default constructor.
Definition
BmnTask.cxx:3
CbmVertex
CbmVertex.h.
Definition
CbmVertex.h:21
DstEventHeader
Definition
DstEventHeader.h:10
DstRunHeader
Definition
DstRunHeader.h:9
FairMCEventHeader
TClonesArray
BmnEventHeader.h
BmnMCInfoDst.h
BmnTask.h
CbmVertex.h
DstEventHeader.h
DstRunHeader.h
BmnFillDstTask::stParticleInfo
Definition
BmnFillDstTask.h:69
BmnFillDstTask::stParticleInfo::A
Int_t A
Definition
BmnFillDstTask.h:70
BmnFillDstTask::stParticleInfo::Z
Int_t Z
Definition
BmnFillDstTask.h:71
install
include
BmnFillDstTask.h
Generated on
for BmnRoot by
1.17.0