| 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> |
| 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 |
|
|
| 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); |