--- quicklook/QLflightTmtc_Header/PacketScan.cpp 2006/08/09 09:01:23 1.2 +++ quicklook/QLflightTmtc_Header/PacketScan.cpp 2006/10/24 08:23:17 1.3 @@ -42,7 +42,8 @@ */ - +#include +#include #include #include #include @@ -60,8 +61,7 @@ using namespace std; -void PacketScan(TString base, TString outDir, TString format) -{ +void PacketScan(TString base, TString outDir, TString format){ TFile *file = new TFile(base.Data()); @@ -110,18 +110,16 @@ TMultiGraph *mg3 = new TMultiGraph(); mg3->SetTitle(oss.str().c_str()); TLegend *leg3 = new TLegend(0.87,0.65,0.99,0.99, ""); - + TObject *key = new TObject; + const char *name; + char *SoftInfo="SoftInfo"; for (Int_t i=0; iAt(i); - char *name=(char *)(key->GetName()); + key = list->At(i); + name=(char *)(key->GetName()); + if(strcmp(name,SoftInfo)==0)continue; TTree* tr = (TTree*)file->Get(name); - while((tr->IsZombie())){ - i++; - TObject *key = list->At(i); - char *name=(char *)(key->GetName()); - TTree* tr = (TTree*)file->Get(name); - } + if (tr->IsZombie()) continue; Long64_t nevents = tr->GetEntries(); const Int_t size = nevents; tr->SetBranchAddress("Header", &eh);