/[PAMELA software]/quicklook/QLflightS4_ND/ND_QL.cpp
ViewVC logotype

Diff of /quicklook/QLflightS4_ND/ND_QL.cpp

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

revision 1.2 by pam-rm2, Fri Jun 23 16:06:09 2006 UTC revision 1.3 by pam-rm2, Wed Jul 12 09:06:35 2006 UTC
# Line 61  void ND_QL(TString base, TString outDir, Line 61  void ND_QL(TString base, TString outDir,
61    Int_t    yTrig=0;    Int_t    yTrig=0;
62    Int_t    yUpperBackground=0;    Int_t    yUpperBackground=0;
63    Int_t    yBottomBackground=0;    Int_t    yBottomBackground=0;
64    ULong_t  lastime=0, firstime=0, obt1=0;    ULong_t  lastime=0, firstime=0;
65    Double_t scale= 1./DeltaTevtime;    Double_t scale= 1./DeltaTevtime;
66    stringstream title, title1;    stringstream title, title1;
67    double obt;      double obt;  
   Float_t     cut;  
68    stringstream oss, noentries;    stringstream oss, noentries;
69    stringstream oss1, oss2, oss3;    stringstream oss1, oss2, oss3;
70    
# Line 132  void ND_QL(TString base, TString outDir, Line 131  void ND_QL(TString base, TString outDir,
131    }    }
132    
133    //------------ first and last  events ->  nbin ---------------------------------//    //------------ first and last  events ->  nbin ---------------------------------//
134     for (Int_t i = 0; i < nevents; i++){    headBr->GetEntry(0);
135      ph = eh->GetPscuHeader();
136      firstime = ph->GetOrbitalTime();
137      
138      for (Int_t i = 0; i < nevents; i++){
139      headBr->GetEntry(i);      headBr->GetEntry(i);
140      ph = eh->GetPscuHeader();      ph = eh->GetPscuHeader();
141      obt1 = ph->GetOrbitalTime();      if((ph->GetOrbitalTime()) <= firstime) firstime=ph->GetOrbitalTime();
142      if(obt1 <= firstime) firstime=obt1;      if((ph->GetOrbitalTime()) >= lastime) lastime=ph->GetOrbitalTime();
     if(obt1 >= lastime) lastime=obt1;  
143     }     }
   
   const Double_t nint=((lastime-firstime)/(DeltaTevtime*60000));  
   const Double_t nint1=((lastime-firstime)/(DeltaT));//  
   const Double_t nint2=lastime-firstime;  
   int nbin=(int)nint;  
   int nbin1=(int)nint1;  
   int nbin2=(int)nint2;  
   double obmin=firstime;  
   double obmax=lastime;  
144    
145       const Double_t nint=((lastime-firstime)/(DeltaTevtime*60000));
146       const Double_t nint1=((lastime-firstime)/(DeltaT));//
147       const Double_t nint2=lastime-firstime;
148       int nbin=(int)nint;
149       int nbin1=(int)nint1;
150       int nbin2=(int)nint2;
151       double obmin=firstime;
152       double obmax=lastime;
153      
154    //************************** HISTOGRAMS ***************************************************//    //************************** HISTOGRAMS ***************************************************//
155    //---------------------------- First histograms -----------------------------------------//    //---------------------------- First histograms -----------------------------------------//
156    oss.str("");    oss.str("");

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23