| 85 |
|
|
| 86 |
//------------------- Variables initilization -------------------------// |
//------------------- Variables initilization -------------------------// |
| 87 |
Long64_t nevents=0; |
Long64_t nevents=0; |
| 88 |
ULong_t lastime, firstime,obt;// offset, lastoffset, firstoffset; |
ULong_t lastime, firstime;// offset, lastoffset, firstoffset; |
| 89 |
double obmin=0.; |
double obmin=0.; |
| 90 |
double obmax=0.; |
double obmax=0.; |
| 91 |
stringstream oss, oss1, oss2, oss3, noentries; |
stringstream oss, oss1, oss2, oss3, noentries; |
| 144 |
} |
} |
| 145 |
|
|
| 146 |
//-------------- to know the max and min OBT ----------------------------// |
//-------------- to know the max and min OBT ----------------------------// |
| 147 |
|
headBr->GetEntry(0); |
| 148 |
|
ph = eh->GetPscuHeader(); |
| 149 |
|
firstime = ph->GetOrbitalTime(); |
| 150 |
|
|
| 151 |
for (Int_t i = 0; i < nevents; i++){ |
for (Int_t i = 0; i < nevents; i++){ |
| 152 |
headBr->GetEntry(i); |
headBr->GetEntry(i); |
| 153 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
| 154 |
obt = ph->GetOrbitalTime(); |
if((ph->GetOrbitalTime()) <= firstime) firstime=ph->GetOrbitalTime(); |
| 155 |
//if(obt <= firstime) firstime=obt; |
if((ph->GetOrbitalTime()) >= lastime) lastime=ph->GetOrbitalTime(); |
|
if(obt >= lastime) lastime=obt; |
|
| 156 |
} |
} |
| 157 |
|
|
| 158 |
//------------------------ First histogram -----------------------------------// |
//------------------------ First histogram -----------------------------------// |
| 159 |
headBr->GetEntry(0); |
|
|
ph = eh->GetPscuHeader(); |
|
|
firstime = ph->GetOrbitalTime(); |
|
| 160 |
obmin=firstime; |
obmin=firstime; |
| 161 |
obmax=lastime; |
obmax=lastime; |
| 162 |
|
|