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

Diff of /quicklook/QLflightS4_ND/S4_Calibration_QL.cpp

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

revision 1.4 by pam-rm2, Tue Sep 5 13:06:41 2006 UTC revision 1.5 by pam-rm2, Mon Mar 12 14:34:12 2007 UTC
# Line 67  void S4_Calibration_QL(TString base, TSt Line 67  void S4_Calibration_QL(TString base, TSt
67    Double_t obt;    Double_t obt;
68    TString status;    TString status;
69    Int_t IPM1status, IPM2status;    Int_t IPM1status, IPM2status;
70    ULong_t lastime, firstime, obt1;    ULong_t lastime, firstime, obt1, utile;
71    double obmin=0.;    double obmin=0.;
72    double obmax=0.;    double obmax=0.;
73    double limitdown=0;    double limitdown=0;
# Line 197  void S4_Calibration_QL(TString base, TSt Line 197  void S4_Calibration_QL(TString base, TSt
197      for(Int_t kk = 0; kk<nevents; kk++){      for(Int_t kk = 0; kk<nevents; kk++){
198        headBr->GetEntry(kk);        headBr->GetEntry(kk);
199        ph = eh->GetPscuHeader();        ph = eh->GetPscuHeader();
200        if(obmin >= ph->GetOrbitalTime())obmin=ph->GetOrbitalTime();        utile=ph->GetOrbitalTime();
201        if(obmax <= ph->GetOrbitalTime())obmax=ph->GetOrbitalTime();        if(obmin >= utile)obmin=utile;
202          if(obmax <= utile)obmax=utile;
203      }      }
204     limitdown= obmin - 1000000;     limitdown= obmin - 1000000;
205     limitup= obmax + 1000000;     limitup= obmax + 1000000;
# Line 206  void S4_Calibration_QL(TString base, TSt Line 207  void S4_Calibration_QL(TString base, TSt
207      for(Int_t kk = 0; kk<nevents; kk++){      for(Int_t kk = 0; kk<nevents; kk++){
208        headBr->GetEntry(kk);        headBr->GetEntry(kk);
209        ph = eh->GetPscuHeader();        ph = eh->GetPscuHeader();
210          utile=ph->GetOrbitalTime();
211        //cout<<"OrbitalTime()"<<ph->GetOrbitalTime()<<"\n";        //cout<<"OrbitalTime()"<<ph->GetOrbitalTime()<<"\n";
212        if(obmin >= ph->GetOrbitalTime())obmin=ph->GetOrbitalTime();        if(obmin >= utile)obmin=utile;
213        if(obmax <= ph->GetOrbitalTime())obmax=ph->GetOrbitalTime();        if(obmax <= utile)obmax=utile;
214      }      }
215      limitdown=obmin;      limitdown=obmin;
216      limitup=obmax;      limitup=obmax;
# Line 257  void S4_Calibration_QL(TString base, TSt Line 259  void S4_Calibration_QL(TString base, TSt
259          }          }
260        }        }
261      }      }
262        utile=ph->GetOrbitalTime();
263      //obt=ph->GetOrbitalTime();      //obt=ph->GetOrbitalTime();
264      calib_1_MEAN=calib_1/128;      calib_1_MEAN=calib_1/128;
265      //calib_1_RMS=calibS4_1->GetRMS(1);      //calib_1_RMS=calibS4_1->GetRMS(1);
# Line 265  void S4_Calibration_QL(TString base, TSt Line 267  void S4_Calibration_QL(TString base, TSt
267      //calib_2_RMS=calibS4_2->GetRMS(1);      //calib_2_RMS=calibS4_2->GetRMS(1);
268      calib_4_MEAN=calib_4/128;      calib_4_MEAN=calib_4/128;
269      //calib_4_RMS=calibS4_4->GetRMS(1);      //calib_4_RMS=calibS4_4->GetRMS(1);
270      cal1->Fill(ph->GetOrbitalTime(),calib_1_MEAN);      cal1->Fill(utile,calib_1_MEAN);
271      cal2->Fill(ph->GetOrbitalTime(),calib_2_MEAN);      cal2->Fill(utile,calib_2_MEAN);
272      cal4->Fill(ph->GetOrbitalTime(),calib_4_MEAN);      cal4->Fill(utile,calib_4_MEAN);
273      calib_1=calib_2=calib_4=0;      calib_1=calib_2=calib_4=0;
274    
275    }    }

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

  ViewVC Help
Powered by ViewVC 1.1.23