32 const int nsheet[nlayer] = {1, 2, 2};
34 int nstrip[nlayer][nview] = {{856, 1173}, {630, 1077}, {832, 1395}};
38 tree = (TTree*)
f->Get(
"tree");
39 tree->SetBranchAddress(
"ROC",&
ROC);
41 tree->SetBranchAddress(
"FEB",&
FEB);
42 tree->SetBranchAddress(
"chip",&
chip);
45 tree->SetBranchAddress(
"side",&
side);
74 general = (TTree*)
f->Get(
"general");
116 for(
int ientry=0; ientry<
tree->GetEntries(); ientry++) {
117 tree->GetEntry(ientry);
141 std::cout <<
"The number of channels not connected to strips is: " << nchannel_off <<
"(i.e. strip X&V = -1)" <<std::endl;
168 std::map<int, int> *mappa =
GetMap(ilayer, isheet, iview);
169 if(mappa == NULL)
return false;
170 std::map<int, int>::iterator it = mappa->find(istrip);
171 if (it != mappa->end()) {
172 int ientry = it->second;
173 tree->GetEntry(ientry);
181 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
182 if(doesexist ==
false)
return -1;
187 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
188 if(doesexist ==
false)
return -1;
193 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
194 if(doesexist ==
false)
return -1;
199 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
200 if(doesexist ==
false)
return -1;
205 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
206 if(doesexist ==
false)
return -1;
211 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
212 if(doesexist ==
false)
return -1;
217 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
218 if(doesexist ==
false)
return -1;
223 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
224 if(doesexist ==
false)
return -1;
229 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
230 if(doesexist ==
false)
return -1;
235 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
236 if(doesexist ==
false)
return -1;
241 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
242 if(doesexist ==
false)
return -1;
247 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
248 if(doesexist ==
false)
return 0.;
253 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
254 if(doesexist ==
false)
return 0.;
259 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
260 if(doesexist ==
false)
return 0.;
265 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
266 if(doesexist ==
false)
return 0.;
271 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
272 if(doesexist ==
false)
return 0.;
277 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
278 if(doesexist ==
false)
return 0.;
283 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
284 if(doesexist ==
false)
return 0.;
289 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
290 if(doesexist ==
false)
return 0.;
295 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
296 if(doesexist ==
false)
return 0.;
301 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
302 if(doesexist ==
false)
return 0.;
307 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
308 if(doesexist ==
false)
return 0.;
313 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
314 if(doesexist ==
false)
return 0.;
319 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
320 if(doesexist ==
false)
return 0.;
325 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
326 if(doesexist ==
false)
return 0.;
331 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
332 if(doesexist ==
false)
return 0.;
337 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
338 if(doesexist ==
false)
return 0.;
343 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
344 if(doesexist ==
false)
return 0.;
349 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
350 if(doesexist ==
false)
return 0.;
355 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
356 if(doesexist ==
false)
return 0.;
361 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
362 if(doesexist ==
false)
return 0.;
367 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
368 if(doesexist ==
false)
return 0.;
373 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
374 if(doesexist ==
false)
return 0.;
379 bool doesexist =
LoadStripInfo(ilayer, isheet, iview, istrip);
380 if(doesexist ==
false)
return -1;
386 std::map<int, int> *mappa =
GetMap(ilayer, isheet, iview);
387 if(mappa == NULL)
return false;
389 int nstrip = mappa->size();
390 std::cout <<
"MAPPING STRIPS of view " << iview <<
" on sheet " << isheet <<
" of layer " << ilayer << std::endl;
391 std::cout <<
"N. OF STRIP " << nstrip << std::endl;
393 std::map<int, int>::iterator it;
394 for(
int istrip=0; istrip < nstrip; istrip++) {
395 it = mappa->find(istrip);
396 int ientry = it->second;
397 tree->GetEntry(ientry);
398 std::cout <<
"strip " << istrip <<
" channel " <<
channel <<
" ROC " <<
ROC <<
" TIGER " <<
TIGER <<
" FEB " <<
FEB << std::endl;
std::map< int, int > map_L3_S2_stripx_to_entry
int GetChip(int ilayer, int isheet, int iview, int istrip)
float GetSignal_StartTime_ns(int ilayer, int isheet, int iview, int istrip)
float GetCalib_QCD_const(int ilayer, int isheet, int iview, int istrip)
int GetQuality(int ilayer, int isheet, int iview, int istrip)
std::map< int, int > map_L1_S1_stripx_to_entry
float signal_startTime_ns
float calib_QDC_saturation
int GetROC(int ilayer, int isheet, int iview, int istrip)
float GetSignal_FEBStopTime_ns(int ilayer, int isheet, int iview, int istrip)
float GetCalib_QCD_saturation(int ilayer, int isheet, int iview, int istrip)
std::map< int, int > map_L2_S2_stripx_to_entry
float signal_FEBstopTime_ns
float GetNoise_Rate_Hz(int ilayer, int isheet, int iview, int istrip)
bool LoadStripInfo(int ilayer, int isheet, int iview, int istrip)
std::map< int, int > map_L2_S1_stripv_to_entry
float Get_thr_T_fC(int ilayer, int isheet, int iview, int istrip)
std::map< int, int > map_L3_S1_stripx_to_entry
float GetSignal_FEBStartTime_ns(int ilayer, int isheet, int iview, int istrip)
float GetCalib_QCD_slope(int ilayer, int isheet, int iview, int istrip)
bool PrintMap(int ilayer, int isheet, int iview)
std::map< int, int > map_L1_S1_stripv_to_entry
float signal_sigmaTime_ns
int GetStrip_x_GRAAL(int ilayer, int isheet, int iview, int istrip)
float GetSignal_MaxQ_fC(int ilayer, int isheet, int iview, int istrip)
std::map< int, int > map_L2_S1_stripx_to_entry
float Get_thr_E_fC(int ilayer, int isheet, int iview, int istrip)
float GetV_thr_E_mV(int ilayer, int isheet, int iview, int istrip)
float GetV_thr_T_mV(int ilayer, int isheet, int iview, int istrip)
int GetSheet(int ilayer, int isheet, int iview, int istrip)
std::map< int, int > map_L3_S1_stripv_to_entry
float GetSignal_MeanQ_fC(int ilayer, int isheet, int iview, int istrip)
float GetSignal_Rate_Hz(int ilayer, int isheet, int iview, int istrip)
int GetStrip_v_GRAAL(int ilayer, int isheet, int iview, int istrip)
int GetChannel(int ilayer, int isheet, int iview, int istrip)
float GetSignal_FEBSigmaTime_ns(int ilayer, int isheet, int iview, int istrip)
std::map< int, int > * GetMap(int ilayer, int isheet, int iview)
float signal_FEBsigmaTime_ns
float GetSignal_SigmaTime_ns(int ilayer, int isheet, int iview, int istrip)
int GetTIGER(int ilayer, int isheet, int iview, int istrip)
int GetSide(int ilayer, int isheet, int iview, int istrip)
float signal_FEBstartTime_ns
float GetBaseline_E_mV(int ilayer, int isheet, int iview, int istrip)
int GetLayer(int ilayer, int isheet, int iview, int istrip)
std::map< int, int > map_L3_S2_stripv_to_entry
int GetStrip_x_BOSS(int ilayer, int isheet, int iview, int istrip)
float GetSignal_StopTime_ns(int ilayer, int isheet, int iview, int istrip)
float Get_thr_fC(int ilayer, int isheet, int iview, int istrip)
int GetStrip_v_BOSS(int ilayer, int isheet, int iview, int istrip)
int GetFEB(int ilayer, int isheet, int iview, int istrip)
float GetNoise_MeanQ_fC(int ilayer, int isheet, int iview, int istrip)
std::map< int, int > map_L2_S2_stripv_to_entry
float GetBaseline_T_mV(int ilayer, int isheet, int iview, int istrip)