Changeset d870fc5 in git for converters/root2lhco.cpp
- Timestamp:
- Dec 21, 2014, 4:03:35 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- d77b51d
- Parents:
- 7f12612 (diff), e5767b57 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
converters/root2lhco.cpp
r7f12612 rd870fc5 2 2 * Delphes: a framework for fast simulation of a generic collider experiment 3 3 * Copyright (C) 2012-2014 Universite catholique de Louvain (UCL), Belgium 4 * 4 * 5 5 * This program is free software: you can redistribute it and/or modify 6 6 * it under the terms of the GNU General Public License as published by 7 7 * the Free Software Foundation, either version 3 of the License, or 8 8 * (at your option) any later version. 9 * 9 * 10 10 * This program is distributed in the hope that it will be useful, 11 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 13 * GNU General Public License for more details. 14 * 14 * 15 15 * You should have received a copy of the GNU General Public License 16 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. … … 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.