BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnFillTrigInfoDst.h
Go to the documentation of this file.
1
/********************************************************************************
2
* BmnFillTrigInfoDst.h *
3
* Fill Trigger information from DIGI chain into DST chain *
4
* Sergei Merts *
5
* Created: May 26 2023 *
6
*******************************************************************************/
7
#ifndef BMNFILLTRIGINFODST_H
8
#define BMNFILLTRIGINFODST_H
9
10
#include "BmnEventHeader.h"
11
#include "BmnTask.h"
12
#include "
BmnTrigInfoDst.h
"
13
#include "DigiRunHeader.h"
14
#include "
TClonesArray.h
"
15
#include "
TF1.h
"
16
#include "
TGraph.h
"
17
18
class
BmnFillTrigInfoDst
:
public
BmnTask
19
{
20
public
:
21
/** Default constructor **/
22
BmnFillTrigInfoDst
();
23
/** Constructor with flag whether experimental data are used **/
24
BmnFillTrigInfoDst
(
Bool_t
isExp);
25
26
/** Destructor **/
27
~BmnFillTrigInfoDst
();
28
29
/** Initialization of task at the beginning **/
30
virtual
InitStatus
Init
();
31
32
/** Executed for each event **/
33
virtual
void
Exec
(
Option_t
* opt);
34
35
/** Finish task called at the end **/
36
virtual
void
Finish
();
37
38
private
:
39
// flag whether experimental data are used in the reconstruction
40
Bool_t
isExpData
;
41
bool
doProcessTriggers
;
42
43
// input data
44
BmnEventHeader
*
fDigiEventHeader
;
45
TClonesArray
*
fVCDigits
;
46
TClonesArray
*
fBC0Digits
;
47
TClonesArray
*
fBC1Digits
;
48
TClonesArray
*
fBC2Digits
;
49
TClonesArray
*
fBDDigits
;
50
TClonesArray
*
fSiMDDigits
;
51
TClonesArray
*
fFDDigits
;
52
/** Arrays for T0 calculation**/
53
DigiRunHeader
*
fDigiRunHeader
;
54
TClonesArray
*
fBC1Digits_Top
;
55
TClonesArray
*
fBC1Digits_Bottom
;
56
57
// output data
58
BmnTrigInfoDst
*
fTrigInfo
;
59
60
// variables and methods for T0 calculation
61
Float_t
CalculateT0
(
Float_t
* amp);
62
Double_t
FindTimeFromVector
(vector<Double_t> vtime);
63
void
ClearTGraph
(
TGraph
* g1);
64
bool
GetT0SlewingFromDb
();
65
TGraph
*
fGr4FitBC1Top
, *
fGr4FitBC1Bottom
;
66
TF1
*
f_gaus
;
67
TF1
*
f_BC1
;
68
Double_t
LimitTdcLow
,
LimitTdcHgh
;
69
Double_t
GateFitLow
,
GateFitHgh
;
70
Double_t
LimitWvLow
,
LimitWvHgh
;
71
Double_t
LimitLowAmpBC1T
,
LimitLowAmpBC1B
;
72
Int_t
fnRun
,
fnPeriod
;
73
74
ClassDef
(
BmnFillTrigInfoDst
, 4);
75
};
76
77
#endif
Bool_t
bool Bool_t
Int_t
int Int_t
Float_t
float Float_t
Double_t
double Double_t
Option_t
const char Option_t
ClassDef
#define ClassDef(name, id)
TClonesArray.h
TF1.h
TGraph.h
BmnEventHeader
Definition
BmnEventHeader.h:24
BmnFillTrigInfoDst
Definition
BmnFillTrigInfoDst.h:19
BmnFillTrigInfoDst::f_gaus
TF1 * f_gaus
Definition
BmnFillTrigInfoDst.h:66
BmnFillTrigInfoDst::fBDDigits
TClonesArray * fBDDigits
Definition
BmnFillTrigInfoDst.h:49
BmnFillTrigInfoDst::FindTimeFromVector
Double_t FindTimeFromVector(vector< Double_t > vtime)
BmnFillTrigInfoDst::fVCDigits
TClonesArray * fVCDigits
Definition
BmnFillTrigInfoDst.h:45
BmnFillTrigInfoDst::fBC1Digits_Bottom
TClonesArray * fBC1Digits_Bottom
Definition
BmnFillTrigInfoDst.h:55
BmnFillTrigInfoDst::fDigiRunHeader
DigiRunHeader * fDigiRunHeader
Arrays for T0 calculation.
Definition
BmnFillTrigInfoDst.h:53
BmnFillTrigInfoDst::LimitLowAmpBC1T
Double_t LimitLowAmpBC1T
Definition
BmnFillTrigInfoDst.h:71
BmnFillTrigInfoDst::fGr4FitBC1Bottom
TGraph * fGr4FitBC1Bottom
Definition
BmnFillTrigInfoDst.h:65
BmnFillTrigInfoDst::~BmnFillTrigInfoDst
~BmnFillTrigInfoDst()
Destructor.
BmnFillTrigInfoDst::CalculateT0
Float_t CalculateT0(Float_t *amp)
BmnFillTrigInfoDst::doProcessTriggers
bool doProcessTriggers
Definition
BmnFillTrigInfoDst.h:41
BmnFillTrigInfoDst::fnPeriod
Int_t fnPeriod
Definition
BmnFillTrigInfoDst.h:72
BmnFillTrigInfoDst::fFDDigits
TClonesArray * fFDDigits
Definition
BmnFillTrigInfoDst.h:51
BmnFillTrigInfoDst::BmnFillTrigInfoDst
BmnFillTrigInfoDst(Bool_t isExp)
Constructor with flag whether experimental data are used.
BmnFillTrigInfoDst::fSiMDDigits
TClonesArray * fSiMDDigits
Definition
BmnFillTrigInfoDst.h:50
BmnFillTrigInfoDst::fGr4FitBC1Top
TGraph * fGr4FitBC1Top
Definition
BmnFillTrigInfoDst.h:65
BmnFillTrigInfoDst::fBC1Digits
TClonesArray * fBC1Digits
Definition
BmnFillTrigInfoDst.h:47
BmnFillTrigInfoDst::GateFitHgh
Double_t GateFitHgh
Definition
BmnFillTrigInfoDst.h:69
BmnFillTrigInfoDst::ClearTGraph
void ClearTGraph(TGraph *g1)
BmnFillTrigInfoDst::GetT0SlewingFromDb
bool GetT0SlewingFromDb()
BmnFillTrigInfoDst::LimitTdcHgh
Double_t LimitTdcHgh
Definition
BmnFillTrigInfoDst.h:68
BmnFillTrigInfoDst::fDigiEventHeader
BmnEventHeader * fDigiEventHeader
Definition
BmnFillTrigInfoDst.h:44
BmnFillTrigInfoDst::LimitLowAmpBC1B
Double_t LimitLowAmpBC1B
Definition
BmnFillTrigInfoDst.h:71
BmnFillTrigInfoDst::fBC2Digits
TClonesArray * fBC2Digits
Definition
BmnFillTrigInfoDst.h:48
BmnFillTrigInfoDst::Init
virtual InitStatus Init()
Initialization of task at the beginning.
BmnFillTrigInfoDst::fnRun
Int_t fnRun
Definition
BmnFillTrigInfoDst.h:72
BmnFillTrigInfoDst::LimitTdcLow
Double_t LimitTdcLow
Definition
BmnFillTrigInfoDst.h:68
BmnFillTrigInfoDst::Exec
virtual void Exec(Option_t *opt)
Executed for each event.
BmnFillTrigInfoDst::LimitWvLow
Double_t LimitWvLow
Definition
BmnFillTrigInfoDst.h:70
BmnFillTrigInfoDst::f_BC1
TF1 * f_BC1
Definition
BmnFillTrigInfoDst.h:67
BmnFillTrigInfoDst::fTrigInfo
BmnTrigInfoDst * fTrigInfo
Definition
BmnFillTrigInfoDst.h:58
BmnFillTrigInfoDst::fBC1Digits_Top
TClonesArray * fBC1Digits_Top
Definition
BmnFillTrigInfoDst.h:54
BmnFillTrigInfoDst::Finish
virtual void Finish()
Finish task called at the end.
BmnFillTrigInfoDst::isExpData
Bool_t isExpData
Definition
BmnFillTrigInfoDst.h:40
BmnFillTrigInfoDst::LimitWvHgh
Double_t LimitWvHgh
Definition
BmnFillTrigInfoDst.h:70
BmnFillTrigInfoDst::BmnFillTrigInfoDst
BmnFillTrigInfoDst()
Default constructor.
BmnFillTrigInfoDst::GateFitLow
Double_t GateFitLow
Definition
BmnFillTrigInfoDst.h:69
BmnFillTrigInfoDst::fBC0Digits
TClonesArray * fBC0Digits
Definition
BmnFillTrigInfoDst.h:46
BmnTask
BmnTask.
Definition
BmnTask.h:13
BmnTrigInfoDst
Definition
BmnTrigInfoDst.h:18
DigiRunHeader
Definition
DigiRunHeader.h:21
TClonesArray
TF1
TGraph
BmnTrigInfoDst.h
reconstruction
dst
BmnFillTrigInfoDst.h
Generated on
for BmnRoot by
1.17.0