/[PAMELA software]/quicklook/tracker/flight/macros/FTrkCalibQLook_EXPERT.cxx
ViewVC logotype

Diff of /quicklook/tracker/flight/macros/FTrkCalibQLook_EXPERT.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by pam-fi, Fri Aug 11 10:38:59 2006 UTC revision 1.11 by pam-fi, Tue Aug 22 15:47:48 2006 UTC
# Line 2  Line 2 
2   * FTrkCalibQLookExpert.cxx   * FTrkCalibQLookExpert.cxx
3   *   *
4   * autor: D.Fedele   * autor: D.Fedele
5   * version v1r08   * version v1r10
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
# Line 187  void FTrkCalibQLook_EXPERT(TString file, Line 187  void FTrkCalibQLook_EXPERT(TString file,
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    }    }
# Line 265  void FTrkCalibQLook_EXPERT(TString file, Line 268  void FTrkCalibQLook_EXPERT(TString file,
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");
# Line 531  void FTrkCalibQLook_EXPERT(TString file, Line 534  void FTrkCalibQLook_EXPERT(TString file,
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);
# Line 605  void FTrkCalibQLook_EXPERT(TString file, Line 614  void FTrkCalibQLook_EXPERT(TString file,
614            b.DrawBox(2816.,0.,2944.,maxhist);            b.DrawBox(2816.,0.,2944.,maxhist);
615            b.DrawBox(2048.,0.,2176.,maxhist);            b.DrawBox(2048.,0.,2176.,maxhist);
616          }          }
617            else if(nn==4){
618              maxhist=histosig[nn]->GetMaximum();
619              b.SetFillColor(107);
620              b.SetFillStyle(3954);
621              b.DrawBox(384.,0.,512.,maxhist);
622            }
623          else if(nn==6){          else if(nn==6){
624            maxhist=histosig[nn]->GetMaximum();            maxhist=histosig[nn]->GetMaximum();
625            b.SetFillColor(6);            b.SetFillColor(6);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.23