1 ReadTree(Int_t runnum=0)
4 gStyle->SetOptFit(1111);
5 gStyle->SetCanvasColor(0);
6 gStyle->SetPadColor(0);
7 gStyle->SetFillColor(0);
8 gStyle->SetStatBorderSize(0);
17 sprintf(tname,
"run%d.*tree.root",runnum);
19 TChain* tFgt=
new TChain(
"tFgt");
49 tFgt->SetBranchAddress(
"iEvt",&iEvt);
50 tFgt->SetBranchAddress(
"rdo",&rdo);
51 tFgt->SetBranchAddress(
"arm",&arm);
52 tFgt->SetBranchAddress(
"apv",&apv);
53 tFgt->SetBranchAddress(
"chn",&chn);
54 tFgt->SetBranchAddress(
"disk",&disk);
55 tFgt->SetBranchAddress(
"quad",&quad);
56 tFgt->SetBranchAddress(
"strip",&strip);
57 tFgt->SetBranchAddress(
"stat",&stat);
58 tFgt->SetBranchAddress(
"ordinate",&ordinate);
59 tFgt->SetBranchAddress(
"lowerSpan",&lowerSpan);
60 tFgt->SetBranchAddress(
"upperSpan",&upperSpan);
61 tFgt->SetBranchAddress(
"layer",&layer);
62 tFgt->SetBranchAddress(
"adc",adc);
63 tFgt->SetBranchAddress(
"ped",&ped);
64 tFgt->SetBranchAddress(
"pedSig",&pedSig);
65 tFgt->SetBranchAddress(
"adcmax",&adcmax);
66 tFgt->SetBranchAddress(
"mmin",&mmin);
67 tFgt->SetBranchAddress(
"mmax",&mmax);
68 tFgt->SetBranchAddress(
"chi2",&chi2);
69 tFgt->SetBranchAddress(
"fmax",&fmax);
70 tFgt->SetBranchAddress(
"norm",&norm);
71 tFgt->SetBranchAddress(
"tau",&tau);
72 tFgt->SetBranchAddress(
"t0",&t0);
73 tFgt->SetBranchAddress(
"offset",&offset);
74 tFgt->SetBranchAddress(
"errCode",&errCode);
77 Int_t nevents=tFgt->GetEntries();
78 printf(
"nevents=%d \n",nevents);
79 for(Int_t i=0;i<nevents;i++)