64 void SetDir(TFile* outFile, TTree* recoTree);
76 void InitHistsFromArr(vector<TClonesArray*>* trigAr);
78 void InitTrigMasked();
81 void SetDir(TDirectory* Dir);
82 const Int_t MaxTimeTDC = 6000;
83 const Int_t MaxAmpTDC = 50;
84 const Int_t MaxAmpTDC_BD = 25;
85 const Int_t MaxTimeTQDC = 600;
86 const Int_t MaxAmpTQDC = 15000;
87 const Int_t MaxAmpTQDC_Corr = 10000;
88 const Int_t MaxAmpTQDC_Beam = 35000;
89 const Int_t MaxAmpTQDC_BC2 = 15000;
90 const Int_t MaxAmpTQDC_Unit = 60000;
91 const Int_t MaxAmpTQDC_x10 = 33000;
92 const vector<string> ScalerNames{
"BC1L_Busy",
"pBT_Busy",
"BT_Busy",
"NiT_Busy",
93 "CCT1_Busy",
"MBT_Busy",
"BT&nBUSY_Busy",
"CCT2_Busy"};
94 const vector<TrigStateDesc> TrigState{{
"BT", kCyan}, {
"MBT", kGreen + 1}, {
"nFD", kRed}};
96 vector<uint16_t> trig_state_bit_index;
100 vector<TString> trigNames;
101 vector<TString> shortNames;
102 TH2I* histBDAmpByChannel;
103 TH1I* histBDChannels;
105 TH1I* histBDCircular;
113 const vector<pair<string, string>> TrigNameCorrTQDC{{
"BC1T",
"BC1B"}, {
"BC2T",
"BC2B"}, {
"VCT",
"VCB"},
114 {
"BC1",
"BC2"}, {
"VC",
"BC2"}, {
"FD",
"BC2"}};
115 vector<double> storeAmpTQDC;
116 vector<pair<uint32_t, uint32_t>> idxCorrTQDC;
117 vector<TH2I*> histCorrTQDC;
125 unique_ptr<TCanvas> canGridBD;
126 unique_ptr<TCanvas> canGridND;
127 unique_ptr<TCanvas> canTrigStates;
128 unique_ptr<TCanvas> canCorrTQDC;
129 unique_ptr<TCanvas> canScalers;
130 map<string, UInt_t> mapArrayNames;
131 map<UInt_t, PadInfo*> mapGridND;
132 map<UInt_t, PadInfo*> mapAmpLin;
133 map<UInt_t, PadInfo*> mapAmpLog;
134 map<UInt_t, PadInfo*> mapTBLin;
135 map<UInt_t, PadInfo*> mapTBLog;
136 map<UInt_t, TH1*> mapTime;
137 vector<TH1*> histsGridBD;
139 vector<vector<TH1*>> histsAux;
140 vector<PadInfo*> padsGridBD;
141 vector<PadInfo*> padsGridND;
142 vector<PadInfo*> padsTrigStates;
143 vector<PadInfo*> padsCorrTQDC;
144 vector<PadInfo*> padsScalers;
145 vector<PadInfo*> canProfilePads;
146 vector<PadInfo*> canTimesPads;
147 vector<PadInfo*> can2dPads;
148 vector<PadInfo*> padsCanAmp;
149 Int_t fSelectedBDChannel;
151 vector<pair<uint16_t, PadInfo*>> fill_scaler_vec_profile;
152 vector<pair<uint16_t, PadInfo*>> fill_scaler_vec_spill;
154 TTimeStamp fLastSpillStartTS;