| 2 |
* FTrkCalibQLookExpert.cxx |
* FTrkCalibQLookExpert.cxx |
| 3 |
* |
* |
| 4 |
* autor: D.Fedele |
* autor: D.Fedele |
| 5 |
* version v1r08 |
* version v1r11 |
| 6 |
* Parameters: |
* Parameters: |
| 7 |
* file - the data file to analyze |
* file - the data file to analyze |
| 8 |
* step - select =1 in order to analyze one event at time |
* step - select =1 in order to analyze one event at time |
| 176 |
} else if (toevent > nevents) { |
} else if (toevent > nevents) { |
| 177 |
maxevent = nevents; |
maxevent = nevents; |
| 178 |
} else { |
} else { |
| 179 |
maxevent = fromevent; |
maxevent = nevents; |
| 180 |
}; |
}; |
| 181 |
}; |
}; |
| 182 |
|
|
| 187 |
//********************************************************************** |
//********************************************************************** |
| 188 |
|
|
| 189 |
Int_t hcevent=hotr->GetEntries(); |
Int_t hcevent=hotr->GetEntries(); |
| 190 |
ULong64_t HOBT[hcevent], TOBT[hcevent]; |
Int_t tcevent=totr->GetEntries(); |
| 191 |
|
ULong64_t HOBT[hcevent], TOBT[tcevent]; |
| 192 |
for (Int_t i = 0; i < hcevent; i++){ |
for (Int_t i = 0; i < hcevent; i++){ |
|
totr->GetEntry(i); |
|
| 193 |
hotr->GetEntry(i); |
hotr->GetEntry(i); |
| 194 |
ph = eh4->GetPscuHeader(); |
ph = eh4->GetPscuHeader(); |
| 195 |
HOBT[i]= ph->GetOrbitalTime(); |
HOBT[i]= ph->GetOrbitalTime(); |
| 196 |
|
} |
| 197 |
|
for (Int_t i = 0; i < tcevent; i++){ |
| 198 |
|
totr->GetEntry(i); |
| 199 |
ph = eh3->GetPscuHeader(); |
ph = eh3->GetPscuHeader(); |
| 200 |
TOBT[i]= ph->GetOrbitalTime(); |
TOBT[i]= ph->GetOrbitalTime(); |
| 201 |
} |
} |
| 268 |
Int_t risposta=0; |
Int_t risposta=0; |
| 269 |
stringstream fromfile; |
stringstream fromfile; |
| 270 |
|
|
| 271 |
fromfile<<"FTrkCalibQLook_EXPERT File: "<<ffile<<" -- CalibHeader OBT= "<<HOBT[(cod->Get(pctp->CalibHeader))-1]<<" -- Calib pkt OBT= "<<FOBT[0]<<" -- CalibTrailer OBT= "<<TOBT[(cod->Get(pctp->CalibTrailer))-1]<<" --"; |
fromfile<<"FTrkCalibQLook_EXPERT File: "<<ffile<<" -- CalibHeader OBT= "<<HOBT[(cod->Get(pctp->CalibHeader))-1]<<" -- Calib pkt OBT= "<<FOBT[0]<<" -- CalibTrailer OBT= "<<TOBT[(cod->Get(pctp->CalibTrailer))]<<" --"; |
| 272 |
|
|
| 273 |
gStyle->SetLabelSize(0.07,"x"); |
gStyle->SetLabelSize(0.07,"x"); |
| 274 |
gStyle->SetLabelSize(0.07,"y"); |
gStyle->SetLabelSize(0.07,"y"); |
| 534 |
b.DrawBox(2816.,700.,2944.,maxhist); |
b.DrawBox(2816.,700.,2944.,maxhist); |
| 535 |
b.DrawBox(2048.,700.,2176.,maxhist); |
b.DrawBox(2048.,700.,2176.,maxhist); |
| 536 |
} |
} |
| 537 |
|
else if(nn==4){ |
| 538 |
|
maxhist=histoped[nn]->GetMaximum(); |
| 539 |
|
b.SetFillColor(107); |
| 540 |
|
b.SetFillStyle(3954); |
| 541 |
|
b.DrawBox(384.,2200.,512.,maxhist); |
| 542 |
|
} |
| 543 |
else if(nn==6){ |
else if(nn==6){ |
| 544 |
maxhist=histoped[nn]->GetMaximum(); |
maxhist=histoped[nn]->GetMaximum(); |
| 545 |
b.SetFillColor(6); |
b.SetFillColor(6); |
| 546 |
b.SetFillStyle(3945); |
b.SetFillStyle(3945); |
| 547 |
b.DrawBox(2560.,2200.,2816.,maxhist); |
b.DrawBox(2560.,2200.,2816.,maxhist); |
| 548 |
b.DrawBox(1024.,2200.,1792.,maxhist); |
b.DrawBox(1024.,2200.,1535.,maxhist); |
| 549 |
|
|
| 550 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 551 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 552 |
b.DrawBox(512.,2200.,768.,maxhist); |
b.DrawBox(512.,2200.,768.,maxhist); |
| 553 |
|
b.DrawBox(1536.,2200.,1792.,maxhist); |
| 554 |
} |
} |
| 555 |
else if(nn==7){ |
else if(nn==7){ |
| 556 |
maxhist=histoped[nn]->GetMaximum(); |
maxhist=histoped[nn]->GetMaximum(); |
| 568 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 569 |
b.DrawBox(0.,700.,512.,maxhist); |
b.DrawBox(0.,700.,512.,maxhist); |
| 570 |
b.DrawBox(1920.,700.,2048.,maxhist); |
b.DrawBox(1920.,700.,2048.,maxhist); |
| 571 |
|
b.DrawBox(2176.,700.,2304.,maxhist); |
| 572 |
} |
} |
| 573 |
} |
} |
| 574 |
else histoped[nn]->Draw("axis"); |
else histoped[nn]->Draw("axis"); |
| 616 |
b.DrawBox(2816.,0.,2944.,maxhist); |
b.DrawBox(2816.,0.,2944.,maxhist); |
| 617 |
b.DrawBox(2048.,0.,2176.,maxhist); |
b.DrawBox(2048.,0.,2176.,maxhist); |
| 618 |
} |
} |
| 619 |
|
else if(nn==4){ |
| 620 |
|
maxhist=histosig[nn]->GetMaximum(); |
| 621 |
|
b.SetFillColor(107); |
| 622 |
|
b.SetFillStyle(3954); |
| 623 |
|
b.DrawBox(384.,0.,512.,maxhist); |
| 624 |
|
} |
| 625 |
else if(nn==6){ |
else if(nn==6){ |
| 626 |
maxhist=histosig[nn]->GetMaximum(); |
maxhist=histosig[nn]->GetMaximum(); |
| 627 |
b.SetFillColor(6); |
b.SetFillColor(6); |
| 628 |
b.SetFillStyle(3945); |
b.SetFillStyle(3945); |
| 629 |
b.DrawBox(2560.,0.,2816.,maxhist); |
b.DrawBox(2560.,0.,2816.,maxhist); |
| 630 |
b.DrawBox(1024.,0.,1792.,maxhist); |
b.DrawBox(1024.,0.,1535.,maxhist); |
| 631 |
|
|
| 632 |
b.SetFillColor(107); |
b.SetFillColor(107); |
| 633 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 634 |
b.DrawBox(512.,0.,768.,maxhist); |
b.DrawBox(512.,0.,768.,maxhist); |
| 635 |
|
b.DrawBox(1536.,0.,1792.,maxhist); |
| 636 |
} |
} |
| 637 |
else if(nn==7){ |
else if(nn==7){ |
| 638 |
maxhist=histosig[nn]->GetMaximum(); |
maxhist=histosig[nn]->GetMaximum(); |
| 650 |
b.SetFillStyle(3954); |
b.SetFillStyle(3954); |
| 651 |
b.DrawBox(0.,0.,512.,maxhist); |
b.DrawBox(0.,0.,512.,maxhist); |
| 652 |
b.DrawBox(1920.,0.,2048.,maxhist); |
b.DrawBox(1920.,0.,2048.,maxhist); |
| 653 |
|
b.DrawBox(2176.,0.,2304.,maxhist); |
| 654 |
} |
} |
| 655 |
} |
} |
| 656 |
else histosig[nn]->Draw("axis"); |
else histosig[nn]->Draw("axis"); |