89 |
last_file_entry = 0; |
last_file_entry = 0; |
90 |
file_entries = 0; |
file_entries = 0; |
91 |
version = new SoftInfo(); |
version = new SoftInfo(); |
92 |
|
// glrun = new GL_RUN(); |
93 |
norun = 0; |
norun = 0; |
94 |
totnorun = 0; |
totnorun = 0; |
95 |
runlist = new TArrayI(500); |
runlist = new TArrayI(500); |
100 |
|
|
101 |
TChain *ItoRunInfo::LoadRunInfoTree(TList *fl){ |
TChain *ItoRunInfo::LoadRunInfoTree(TList *fl){ |
102 |
// |
// |
103 |
TChain *Tout=0; |
TChain *Tout = new TChain("Run"); |
|
// |
|
|
TChain *RI = 0; |
|
|
RI = new TChain("Run"); |
|
104 |
// loop over files and create chains |
// loop over files and create chains |
105 |
TIter next(fl); |
TIter next(fl); |
106 |
TSystemFile *questo = 0; |
TSystemFile *questo = 0; |
107 |
while ( (questo = (TSystemFile*) next()) ) { |
while ( (questo = (TSystemFile*) next()) ) { |
108 |
TString name = questo->GetName(); |
TString name = questo->GetName(); |
109 |
RI->Add(name); |
Tout->Add(name); |
110 |
}; |
}; |
111 |
// |
// |
112 |
RI->SetBranchAddress("RunInfo", GetPointerToRI()); |
Tout->SetBranchAddress("RunInfo", GetPointerToRI()); |
113 |
RI->SetBranchAddress("SoftInfo", GetPointerToSI()); |
printf("Run : set branch address RunInfo\n"); |
114 |
Tout = RI; |
Tout->SetBranchAddress("SoftInfo", GetPointerToSI()); |
115 |
|
printf("Software : set branch address SoftInfo\n"); |
116 |
// |
// |
117 |
return Tout; |
return Tout; |
118 |
// |
// |