| 77 |
TString trcss[100]=""; |
TString trcss[100]=""; |
| 78 |
TString trgconf[31]={"TOF1","TOF2","TOF3","TOF4","TOF5","TOF6","TOF7","S4","CALO","CALO-S4","TOF1-S4","TOF2-S4","TOF3-S4","TOF4-S4","TOF5-S4","TOF6-S4","TOF7-S4","TOF1-CALO","TOF2-CALO","TOF3-CALO","TOF4-CALO","TOF5-CALO","TOF6-CALO","TOF7-CALO","TOF1-CALO-S4","TOF2-CALO-S4","TOF3-CALO-S4","TOF4-CALO-S4","TOF5-CALO-S4","TOF6-CALO-S4","TOF7-CALO-S4",}; |
TString trgconf[31]={"TOF1","TOF2","TOF3","TOF4","TOF5","TOF6","TOF7","S4","CALO","CALO-S4","TOF1-S4","TOF2-S4","TOF3-S4","TOF4-S4","TOF5-S4","TOF6-S4","TOF7-S4","TOF1-CALO","TOF2-CALO","TOF3-CALO","TOF4-CALO","TOF5-CALO","TOF6-CALO","TOF7-CALO","TOF1-CALO-S4","TOF2-CALO-S4","TOF3-CALO-S4","TOF4-CALO-S4","TOF5-CALO-S4","TOF6-CALO-S4","TOF7-CALO-S4",}; |
| 79 |
stringstream oss, oss1, oss2, oss3, s4soglia, buffer, conftrig, noentries; |
stringstream oss, oss1, oss2, oss3, s4soglia, buffer, conftrig, noentries; |
| 80 |
ULong_t lastime, firstime, obt1; |
ULong_t lastime, firstime; |
| 81 |
Int_t vardumpentries = 0; |
Int_t vardumpentries = 0; |
| 82 |
char S4_TRH[10]; |
char S4_TRH[10]; |
| 83 |
char S4_TRH2[10]; |
char S4_TRH2[10]; |
| 257 |
TH1F *h2 = new TH1F("S4 Triggered events", "S4 distribution for file: "+filename, adcmax, 10, adcmax+(adcmax/10)); |
TH1F *h2 = new TH1F("S4 Triggered events", "S4 distribution for file: "+filename, adcmax, 10, adcmax+(adcmax/10)); |
| 258 |
|
|
| 259 |
//********************** Second Histogram ************************************// |
//********************** Second Histogram ************************************// |
| 260 |
|
headBr->GetEntry(0); |
| 261 |
|
ph = eh->GetPscuHeader(); |
| 262 |
|
firstime = ph->GetOrbitalTime(); |
| 263 |
|
|
| 264 |
for (Int_t i = 0; i < nevents; i++){ |
for (Int_t i = 0; i < nevents; i++){ |
| 265 |
headBr->GetEntry(i); |
headBr->GetEntry(i); |
| 266 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
| 267 |
obt1 = ph->GetOrbitalTime(); |
if((ph->GetOrbitalTime()) <= firstime) firstime=ph->GetOrbitalTime(); |
| 268 |
if(obt1 <= firstime) firstime=obt1; |
if((ph->GetOrbitalTime()) >= lastime) lastime=ph->GetOrbitalTime(); |
|
if(obt1 >= lastime) lastime=obt1; |
|
| 269 |
} |
} |
| 270 |
obmin=firstime; |
obmin=firstime; |
| 271 |
obmax=lastime; |
obmax=lastime; |