Changeset 567 in svn for trunk/src/JetsUtil.cc
- Timestamp:
- Jun 16, 2010, 11:05:05 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/JetsUtil.cc
r547 r567 122 122 } 123 123 124 vector<fastjet::PseudoJet> JetsUtil::RunJets(const vector<fastjet::PseudoJet>& input_particles, const vector<TRootTracks> & TrackCentral, vector<int> &NTrackJet, vector<float> &EHADEEM,D_CaloTowerList list_of_active_towers )124 vector<fastjet::PseudoJet> JetsUtil::RunJets(const vector<fastjet::PseudoJet>& input_particles, const vector<TRootTracks> & TrackCentral, vector<int> &NTrackJet, vector<float> &EHADEEM,D_CaloTowerList list_of_active_towers, vector<int> &NCALO) 125 125 { 126 126 inclusive_jets.clear(); … … 144 144 DET->BinEtaPhi(TrackCentral[t].PhiOuter,TrackCentral[t].EtaOuter,iPhiTrack[t],iEtaTrack[t]); 145 145 else { 146 iPhiTrack[t] = TrackCentral[t].Phi Outer; iEtaTrack[t] = TrackCentral[t].EtaOuter;146 iPhiTrack[t] = TrackCentral[t].Phi; iEtaTrack[t] = TrackCentral[t].Eta; // should NOT be PhiOuter and EtaOuter 147 147 } 148 148 } … … 163 163 //now, get EHad over EEm 164 164 float EmVal=0,HadVal=0; 165 NCALO.push_back(constituents.size()); 165 166 for (unsigned int j = 0; j < constituents.size(); j++) 166 167 { … … 197 198 198 199 199 void JetsUtil::RunJetBtagging(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchJet,const vector<fastjet::PseudoJet> & sorted_jets,const TSimpleArray<TRootC::GenParticle>& NFCentralQ, const vector<int> &NTrackJet, const vector<float> &EHADEEM )200 void JetsUtil::RunJetBtagging(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchJet,const vector<fastjet::PseudoJet> & sorted_jets,const TSimpleArray<TRootC::GenParticle>& NFCentralQ, const vector<int> &NTrackJet, const vector<float> &EHADEEM, const vector<int> &NCALO) 200 201 { 201 202 TRootJet *elementJet; … … 209 210 elementJet->NTracks = NTrackJet[i]; 210 211 elementJet->EHoverEE = EHADEEM[i]; 212 elementJet->NCalo = NCALO[i]; 211 213 212 214 // b-jets … … 218 220 } 219 221 220 void JetsUtil::RunTauJets(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchTauJet,const vector<fastjet::PseudoJet> & sorted_jets,const vector<PhysicsTower> & towers, const vector<TRootTracks> & TrackCentral, const vector<int> &NTrackJet, const vector<float> &EHADEEM )222 void JetsUtil::RunTauJets(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchTauJet,const vector<fastjet::PseudoJet> & sorted_jets,const vector<PhysicsTower> & towers, const vector<TRootTracks> & TrackCentral, const vector<int> &NTrackJet, const vector<float> &EHADEEM,const vector<int> &NCALO) 221 223 { 222 224 TRootTauJet *elementTauJet; … … 240 242 elementTauJet->Charge = charge; 241 243 elementTauJet->EHoverEE = EHADEEM[i]; 244 elementTauJet->NCalo = NCALO[i]; 242 245 } // if tau jet 243 246 } // if JET.eta < tracker - tau_cone : Tau jet identification
Note:
See TracChangeset
for help on using the changeset viewer.