136 |
void FEVdetector::GetWindow(){ |
void FEVdetector::GetWindow(){ |
137 |
// |
// |
138 |
if ( level.file == 2 ){ |
if ( level.file == 2 ){ |
139 |
|
// printf("0qui\n"); |
140 |
L2->GetEntry(minevent); |
L2->GetEntry(minevent); |
141 |
} else { |
} else { |
142 |
otr->GetEntry(minevent); |
otr->GetEntry(minevent); |
153 |
}; |
}; |
154 |
// |
// |
155 |
if ( level.file == 2 ){ |
if ( level.file == 2 ){ |
156 |
|
// printf("1qui\n"); |
157 |
L2->GetEntry(maxevent); |
L2->GetEntry(maxevent); |
158 |
} else { |
} else { |
159 |
otr->GetEntry(maxevent); |
otr->GetEntry(maxevent); |
195 |
thisentry = i; |
thisentry = i; |
196 |
if ( level.file == 2 ){ |
if ( level.file == 2 ){ |
197 |
L2->Clear(); |
L2->Clear(); |
198 |
|
// printf("qui\n"); |
199 |
L2->GetEntry(i); |
L2->GetEntry(i); |
200 |
ShowInfo("RunInfo"); |
ShowInfo("RunInfo"); |
201 |
ShowInfo("SoftInfo"); |
ShowInfo("SoftInfo"); |
1014 |
// |
// |
1015 |
} |
} |
1016 |
|
|
1017 |
TChain* FEVdetector::Load(TFile &mainfile){ |
TChain* FEVdetector::Load(TString file){ |
1018 |
// |
// |
1019 |
file = &mainfile; |
// file = &mainfile; |
1020 |
// |
// |
1021 |
if ( level.file == 2 ){ |
if ( level.file == 2 ){ |
1022 |
// |
// |
1023 |
printf(" %s \n",ddec.Data()); |
printf(" %s \n",ddec.Data()); |
1024 |
if ( !L2 ){ |
if ( !L2 ){ |
1025 |
L2 = new PamLevel2("",file->GetName(),ddec.Data()); |
L2 = new PamLevel2("",file.Data(),ddec.Data()); |
1026 |
otr = L2->GetPamTree(); |
otr = L2->GetPamTree(); |
1027 |
|
printf(" l2 constructor\n"); |
1028 |
|
// printf(" abst %u obt %u qtot %f \n",L2->GetOrbitalInfo()->absTime,L2->GetOrbitalInfo()->OBT,L2->GetCaloLevel2()->qtot); |
1029 |
} else { |
} else { |
1030 |
// |
// |
1031 |
otr = L2->GetPamTree(gSystem->DirName(file->GetName()),file->GetName(),ddec.Data()); |
printf(" l2 already exist \n"); |
1032 |
L2->GetRunTree(gSystem->DirName(file->GetName()),file->GetName()); |
otr = L2->GetPamTree(gSystem->DirName(file.Data()),file.Data(),ddec.Data()); |
1033 |
|
L2->GetRunTree(gSystem->DirName(file.Data()),file.Data()); |
1034 |
// |
// |
1035 |
}; |
}; |
1036 |
// |
// |
1095 |
tof = new pamela::tof::TofEvent(); |
tof = new pamela::tof::TofEvent(); |
1096 |
// |
// |
1097 |
otr = new TChain("Physics"); |
otr = new TChain("Physics"); |
1098 |
otr->Add(file->GetName(),-1); |
otr->Add(file.Data(),-1); |
1099 |
otr->SetBranchAddress("Trigger", &trigger); |
otr->SetBranchAddress("Trigger", &trigger); |
1100 |
otr->SetBranchAddress("Header", &eh); |
otr->SetBranchAddress("Header", &eh); |
1101 |
}; |
}; |