/[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.12 by pam-fi, Mon Aug 28 14:33:19 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);
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();
# Line 605  void FTrkCalibQLook_EXPERT(TString file, Line 615  void FTrkCalibQLook_EXPERT(TString file,
615            b.DrawBox(2816.,0.,2944.,maxhist);            b.DrawBox(2816.,0.,2944.,maxhist);
616            b.DrawBox(2048.,0.,2176.,maxhist);            b.DrawBox(2048.,0.,2176.,maxhist);
617          }          }
618            else if(nn==4){
619              maxhist=histosig[nn]->GetMaximum();
620              b.SetFillColor(107);
621              b.SetFillStyle(3954);
622              b.DrawBox(384.,0.,512.,maxhist);
623            }
624          else if(nn==6){          else if(nn==6){
625            maxhist=histosig[nn]->GetMaximum();            maxhist=histosig[nn]->GetMaximum();
626            b.SetFillColor(6);            b.SetFillColor(6);
627            b.SetFillStyle(3945);            b.SetFillStyle(3945);
628            b.DrawBox(2560.,0.,2816.,maxhist);            b.DrawBox(2560.,0.,2816.,maxhist);
629            b.DrawBox(1024.,0.,1792.,maxhist);            b.DrawBox(1024.,0.,1535.,maxhist);
630                        
631            b.SetFillColor(107);            b.SetFillColor(107);
632            b.SetFillStyle(3954);            b.SetFillStyle(3954);
633            b.DrawBox(512.,0.,768.,maxhist);            b.DrawBox(512.,0.,768.,maxhist);
634              b.DrawBox(1536.,0.,1792.,maxhist);
635          }          }
636          else if(nn==7){          else if(nn==7){
637            maxhist=histosig[nn]->GetMaximum();            maxhist=histosig[nn]->GetMaximum();

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

  ViewVC Help
Powered by ViewVC 1.1.23