Changeset c59be54 in git
- Timestamp:
- Dec 19, 2014, 11:05:37 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- b594101
- Parents:
- df04eb1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
converters/root2lhco.cpp
rdf04eb1 rc59be54 108 108 109 109 LHCOWriter::LHCOWriter(ExRootTreeReader *treeReader, FILE *outputFile) : 110 fTriggerWord(0), fEventNumber(1), fTreeReader(0), fOutputFile(0) 110 fTriggerWord(0), fEventNumber(1), fTreeReader(0), fOutputFile(0), 111 fBranchEvent(0), fBranchTrack(0), fBranchTower(0), fBranchPhoton(0), 112 fBranchElectron(0), fBranchMuon(0), fBranchJet(0), fBranchMissingET(0) 111 113 { 112 114 fTreeReader = treeReader; … … 117 119 // reconstructed tracks 118 120 fBranchTrack = fTreeReader->UseBranch("Track"); 119 fItTrack = fBranchTrack->MakeIterator();120 121 // calorimeter towers 121 122 fBranchTower = fTreeReader->UseBranch("Tower"); 122 fItTower = fBranchTower->MakeIterator();123 123 // reconstructed photons 124 124 fBranchPhoton = fTreeReader->UseBranch("Photon"); 125 fItPhoton = fBranchPhoton->MakeIterator();126 125 // reconstructed electrons 127 126 fBranchElectron = fTreeReader->UseBranch("Electron"); 128 fItElectron = fBranchElectron->MakeIterator();129 127 // reconstructed muons 130 128 fBranchMuon = fTreeReader->UseBranch("Muon"); 131 fItMuon = fBranchMuon->MakeIterator();132 129 // reconstructed jets 133 130 fBranchJet = fTreeReader->UseBranch("Jet"); 134 fItJet = fBranchJet->MakeIterator();135 131 // missing transverse energy 136 132 fBranchMissingET = fTreeReader->UseBranch("MissingET"); 133 134 if(!fBranchEvent || !fBranchTrack || !fBranchTower || !fBranchPhoton || 135 !fBranchElectron || !fBranchMuon || !fBranchJet || !fBranchMissingET) 136 { 137 throw runtime_error("ROOT file doesn't contain all required branches"); 138 } 139 140 fItTrack = fBranchTrack->MakeIterator(); 141 fItTower = fBranchTower->MakeIterator(); 142 fItPhoton = fBranchPhoton->MakeIterator(); 143 fItElectron = fBranchElectron->MakeIterator(); 144 fItMuon = fBranchMuon->MakeIterator(); 145 fItJet = fBranchJet->MakeIterator(); 137 146 } 138 147
Note:
See TracChangeset
for help on using the changeset viewer.