/[PAMELA software]/quicklook/QLflightTmtc_Header/HeaderScan.cpp
ViewVC logotype

Diff of /quicklook/QLflightTmtc_Header/HeaderScan.cpp

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

revision 1.4 by pam-rm2, Tue Jul 11 14:27:33 2006 UTC revision 1.5 by pam-rm2, Wed Jul 12 09:08:19 2006 UTC
# Line 85  void HeaderScan(TString base, TString ou Line 85  void HeaderScan(TString base, TString ou
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;
# Line 144  void HeaderScan(TString base, TString ou Line 144  void HeaderScan(TString base, TString ou
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        

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23