/[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.13 by pam-rm2, Thu Mar 8 09:53:44 2007 UTC revision 1.14 by pam-rm2, Fri Mar 9 10:43:40 2007 UTC
# Line 188  void HeaderScan(TString base, TString ou Line 188  void HeaderScan(TString base, TString ou
188    double *OBTime = new Double_t[size];    double *OBTime = new Double_t[size];
189    Double_t *Eventsperminute= new Double_t[nbin];    Double_t *Eventsperminute= new Double_t[nbin];
190    Double_t *Minute= new Double_t[nbin];    Double_t *Minute= new Double_t[nbin];
191    Int_t max=0;    Double_t max=0;
192    for (Int_t k = 0; k < nevents; k++){    for (Int_t k = 0; k < nevents; k++){
193      headBr->GetEntry(k);      headBr->GetEntry(k);
194      ph = eh->GetPscuHeader();        ph = eh->GetPscuHeader();
195      h1->Fill(ph->GetOrbitalTime());      utile= ph->GetOrbitalTime();
196        h1->Fill(utile);
197      PscuCounter[k]= ph->GetCounter();      PscuCounter[k]= ph->GetCounter();
198      PacketLenght[k]=ph->GetPacketLenght();      PacketLenght[k]=ph->GetPacketLenght();
     utile= ph->GetOrbitalTime();  
199      OBTime[k]=utile;      OBTime[k]=utile;
200    }      }  
201    int l=0;    int l=0;
202    while(l<nbin){    while(l<nbin){
203      Eventsperminute[l]=h1->GetBinContent(l);      Eventsperminute[l]=h1->GetBinContent(l);
204      Minute[l]=firstime+l*60000;      Minute[l]=firstime+l*60000;
205      if(h1->GetBinContent(l) >= max)max =(Int_t)h1->GetBinContent(l);      if(h1->GetBinContent(l) >= max)max =h1->GetBinContent(l);
206      l++;      l++;
207    }    }
208    
# Line 274  void HeaderScan(TString base, TString ou Line 274  void HeaderScan(TString base, TString ou
274      ph = eH->GetPscuHeader();      ph = eH->GetPscuHeader();
275      int ws= reh->RM_ACQ_SETTING_MODE;      int ws= reh->RM_ACQ_SETTING_MODE;
276      int id = ph->GetPacketId1();      int id = ph->GetPacketId1();
277      Int_t obt = ph->GetOrbitalTime();      ULong_t utile1=ph->GetOrbitalTime();
278        Double_t obt = utile1;
279      if (ws==1){      if (ws==1){
280        li.SetLineColor(3);        li.SetLineColor(3);
281        li.DrawLine(obt,0,obt,max);        li.DrawLine(obt,0,obt,max);

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.23