BmnRoot
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 "TClonesArray.h"
14#include "TF1.h"
15#include "TGraph.h"
16
18{
19 public:
23 BmnFillTrigInfoDst(Bool_t isExp);
24
27
29 virtual InitStatus Init();
30
32 virtual void Exec(Option_t* opt);
33
35 virtual void Finish();
36
37 private:
38 // flag whether experimental data are used in the reconstruction
39 Bool_t isExpData;
40 bool doProcessTriggers;
41
42 // input data
43 BmnEventHeader* fDigiEventHeader;
44 TClonesArray* fVCDigits;
45 TClonesArray* fBC0Digits;
46 TClonesArray* fBC1Digits;
47 TClonesArray* fBC2Digits;
48 TClonesArray* fBDDigits;
49 TClonesArray* fSiMDDigits;
50 TClonesArray* fFDDigits;
52 TClonesArray* fBC1Digits_Top;
53 TClonesArray* fBC1Digits_Bottom;
54
55 // output data
56 BmnTrigInfoDst* fTrigInfo;
57
58 // variables and methods for T0 calculation
59 Float_t CalculateT0(Float_t* amp);
60 Double_t FindTimeFromVector(vector<Double_t> vtime);
61 void ClearTGraph(TGraph* g1);
62 TGraph *fGr4FitBC1Top, *fGr4FitBC1Bottom;
63 TF1* f_gaus;
64 TF1* f_BC1;
65 Double_t LimitTdcLow;
66 Double_t LimitTdcHgh;
67 Double_t GateFitLow;
68 Double_t GateFitHgh;
69 Int_t LimitWvLow;
70 Int_t LimitWvHgh;
71
72 ClassDef(BmnFillTrigInfoDst, 4);
73};
74
75#endif
virtual void Exec(Option_t *opt)
virtual InitStatus Init()
BmnTask.
Definition BmnTask.h:13