59 |
* |
* |
60 |
* Description: changed the scale in the second and third graph of the first canvas; added a pad of text in the second canvas |
* Description: changed the scale in the second and third graph of the first canvas; added a pad of text in the second canvas |
61 |
* |
* |
62 |
|
* Version 1.9 |
63 |
|
* Date 7 March 2007 - Malvezzi |
64 |
|
* |
65 |
|
* Description: to read correctly the OBT changed the type of time variables from signed to unsigned |
66 |
|
* |
67 |
*/ |
*/ |
68 |
|
|
69 |
|
|
184 |
//------------------- fill vectors and histogram -----------------------------// |
//------------------- fill vectors and histogram -----------------------------// |
185 |
Double_t *PscuCounter = new Double_t[size]; |
Double_t *PscuCounter = new Double_t[size]; |
186 |
Double_t *PacketLenght = new Double_t[size]; |
Double_t *PacketLenght = new Double_t[size]; |
187 |
Double_t *OBTime = new Double_t[size]; |
ULong_t utile=0; |
188 |
|
double *OBTime = new Double_t[size]; |
189 |
Double_t *Eventsperminute= new Double_t[nbin]; |
Double_t *Eventsperminute= new Double_t[nbin]; |
190 |
Double_t *Minute= new Double_t[nbin]; |
Double_t *Minute= new Double_t[nbin]; |
191 |
Int_t max=0; |
Double_t max=0; |
192 |
for (Int_t k = 0; k < nevents; k++){ |
for (Int_t k = 0; k < nevents; k++){ |
193 |
headBr->GetEntry(k); |
headBr->GetEntry(k); |
194 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
195 |
h1->Fill(ph->GetOrbitalTime()); |
utile= ph->GetOrbitalTime(); |
196 |
|
h1->Fill(utile); |
197 |
PscuCounter[k]= ph->GetCounter(); |
PscuCounter[k]= ph->GetCounter(); |
198 |
PacketLenght[k]=ph->GetPacketLenght(); |
PacketLenght[k]=ph->GetPacketLenght(); |
199 |
OBTime[k]=ph->GetOrbitalTime(); |
OBTime[k]=utile; |
200 |
} |
} |
201 |
int l=0; |
int l=0; |
202 |
while(l<nbin){ |
while(l<nbin){ |
203 |
Eventsperminute[l]=h1->GetBinContent(l); |
Eventsperminute[l]=h1->GetBinContent(l); |
204 |
Minute[l]=firstime+l*60000; |
Minute[l]=firstime+l*60000; |
205 |
if(h1->GetBinContent(l) >= max)max =(Int_t)h1->GetBinContent(l); |
if(h1->GetBinContent(l) >= max)max =h1->GetBinContent(l); |
206 |
l++; |
l++; |
207 |
} |
} |
208 |
|
|
219 |
rate1->SetMarkerStyle(21); |
rate1->SetMarkerStyle(21); |
220 |
rate->Add(rate1); |
rate->Add(rate1); |
221 |
|
|
222 |
TGraph *packetLength1= new TGraph(nevents, (const Double_t*)OBTime, (const Double_t*)PacketLenght); |
TGraph *packetLength1= new TGraph(nevents, (const double*)OBTime, (const double*)PacketLenght); |
223 |
oss2.str(""); |
oss2.str(""); |
224 |
oss2 <<"Lenght of Physic packets"; |
oss2 <<"Lenght of Physic packets"; |
225 |
packetLength1->SetMarkerColor(2); |
packetLength1->SetMarkerColor(2); |
274 |
ph = eH->GetPscuHeader(); |
ph = eH->GetPscuHeader(); |
275 |
int ws= reh->RM_ACQ_SETTING_MODE; |
int ws= reh->RM_ACQ_SETTING_MODE; |
276 |
int id = ph->GetPacketId1(); |
int id = ph->GetPacketId1(); |
277 |
Int_t obt = ph->GetOrbitalTime(); |
ULong_t utile1=ph->GetOrbitalTime(); |
278 |
|
Double_t obt = utile1; |
279 |
if (ws==1){ |
if (ws==1){ |
280 |
li.SetLineColor(3); |
li.SetLineColor(3); |
281 |
li.DrawLine(obt,0,obt,max); |
li.DrawLine(obt,0,obt,max); |
407 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
408 |
PscuCounter1[n]= ph->GetCounter(); |
PscuCounter1[n]= ph->GetCounter(); |
409 |
FileOffset1[n]=ph->GetFileOffset(); |
FileOffset1[n]=ph->GetFileOffset(); |
410 |
tempo1[n]=ph->GetOrbitalTime(); |
utile=ph->GetOrbitalTime(); |
411 |
|
tempo1[n]=utile; |
412 |
if((m==0) && (n==0)){ |
if((m==0) && (n==0)){ |
413 |
primotempo=ph->GetOrbitalTime(); |
primotempo=ph->GetOrbitalTime(); |
414 |
salto=ph->GetOrbitalTime(); |
salto=ph->GetOrbitalTime(); |