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

Diff of /quicklook/QLflightTmtc_Header/PacketScan.cpp

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

revision 1.2 by pam-rm2, Wed Aug 9 09:01:23 2006 UTC revision 1.3 by pam-rm2, Tue Oct 24 08:23:17 2006 UTC
# Line 42  Line 42 
42  */  */
43    
44    
45    #include <stdio.h>
46    #include <string.h>
47  #include <fstream>  #include <fstream>
48  #include <sstream>  #include <sstream>
49  #include <iostream>  #include <iostream>
# Line 60  Line 61 
61    
62  using namespace std;  using namespace std;
63    
64  void PacketScan(TString base, TString outDir, TString format)  void PacketScan(TString base, TString outDir, TString format){
 {  
65    
66    TFile *file = new TFile(base.Data());    TFile *file = new TFile(base.Data());
67        
# Line 110  void PacketScan(TString base, TString ou Line 110  void PacketScan(TString base, TString ou
110    TMultiGraph *mg3 = new TMultiGraph();    TMultiGraph *mg3 = new TMultiGraph();
111    mg3->SetTitle(oss.str().c_str());    mg3->SetTitle(oss.str().c_str());
112    TLegend *leg3 = new TLegend(0.87,0.65,0.99,0.99, "");    TLegend *leg3 = new TLegend(0.87,0.65,0.99,0.99, "");
     
113    
114      TObject *key = new TObject;
115      const char *name;
116      char *SoftInfo="SoftInfo";
117    for (Int_t i=0; i<numkey; i++){    for (Int_t i=0; i<numkey; i++){
118      TObject *key = list->At(i);      key = list->At(i);
119      char *name=(char *)(key->GetName());      name=(char *)(key->GetName());
120        if(strcmp(name,SoftInfo)==0)continue;
121      TTree* tr = (TTree*)file->Get(name);      TTree* tr = (TTree*)file->Get(name);
122      while((tr->IsZombie())){      if (tr->IsZombie()) continue;
       i++;  
       TObject *key = list->At(i);  
       char *name=(char *)(key->GetName());  
       TTree* tr = (TTree*)file->Get(name);  
     }  
123      Long64_t nevents = tr->GetEntries();      Long64_t nevents = tr->GetEntries();
124      const Int_t size = nevents;      const Int_t size = nevents;
125      tr->SetBranchAddress("Header", &eh);        tr->SetBranchAddress("Header", &eh);  

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

  ViewVC Help
Powered by ViewVC 1.1.23