/[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.12 by pam-rm2, Tue Oct 24 08:23:17 2006 UTC revision 1.13 by pam-rm2, Thu Mar 8 09:53:44 2007 UTC
# Line 59  Line 59 
59  *  *
60  * Description: changed the scale in the second and third graph of the first canvas; added a pad of text in the second canvas  * Description: changed the scale in the second and third graph of the first canvas; added a pad of text in the second canvas
61  *  *
62    * Version 1.9
63    * Date 7 March 2007 - Malvezzi
64    *
65    * Description: to read correctly the OBT changed the type of time variables from signed to unsigned
66    *
67  */  */
68    
69    
# Line 179  void HeaderScan(TString base, TString ou Line 184  void HeaderScan(TString base, TString ou
184    //------------------- fill vectors and histogram -----------------------------//    //------------------- fill vectors and histogram -----------------------------//
185    Double_t *PscuCounter = new Double_t[size];    Double_t *PscuCounter = new Double_t[size];
186    Double_t *PacketLenght = new Double_t[size];    Double_t *PacketLenght = new Double_t[size];
187    Double_t *OBTime = new Double_t[size];    ULong_t utile=0;
188      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;    Int_t max=0;
# Line 189  void HeaderScan(TString base, TString ou Line 195  void HeaderScan(TString base, TString ou
195      h1->Fill(ph->GetOrbitalTime());      h1->Fill(ph->GetOrbitalTime());
196      PscuCounter[k]= ph->GetCounter();      PscuCounter[k]= ph->GetCounter();
197      PacketLenght[k]=ph->GetPacketLenght();      PacketLenght[k]=ph->GetPacketLenght();
198      OBTime[k]=ph->GetOrbitalTime();      utile= ph->GetOrbitalTime();
199        OBTime[k]=utile;
200    }      }  
201    int l=0;    int l=0;
202    while(l<nbin){    while(l<nbin){
# Line 212  void HeaderScan(TString base, TString ou Line 219  void HeaderScan(TString base, TString ou
219    rate1->SetMarkerStyle(21);    rate1->SetMarkerStyle(21);
220    rate->Add(rate1);    rate->Add(rate1);
221    
222    TGraph *packetLength1= new TGraph(nevents, (const Double_t*)OBTime, (const Double_t*)PacketLenght);    TGraph *packetLength1= new TGraph(nevents, (const double*)OBTime, (const double*)PacketLenght);
223    oss2.str("");    oss2.str("");
224    oss2 <<"Lenght of Physic packets";    oss2 <<"Lenght of Physic packets";
225    packetLength1->SetMarkerColor(2);    packetLength1->SetMarkerColor(2);
# Line 399  void HeaderScan(TString base, TString ou Line 406  void HeaderScan(TString base, TString ou
406          ph = eh->GetPscuHeader();            ph = eh->GetPscuHeader();  
407          PscuCounter1[n]= ph->GetCounter();          PscuCounter1[n]= ph->GetCounter();
408          FileOffset1[n]=ph->GetFileOffset();          FileOffset1[n]=ph->GetFileOffset();
409          tempo1[n]=ph->GetOrbitalTime();          utile=ph->GetOrbitalTime();
410            tempo1[n]=utile;
411          if((m==0) && (n==0)){          if((m==0) && (n==0)){
412            primotempo=ph->GetOrbitalTime();            primotempo=ph->GetOrbitalTime();
413            salto=ph->GetOrbitalTime();            salto=ph->GetOrbitalTime();

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

  ViewVC Help
Powered by ViewVC 1.1.23