Changeset 286 in svn
- Timestamp:
- Mar 3, 2009, 12:44:32 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/JetsUtil.h
r260 r286 81 81 vector<fastjet::PseudoJet> RunJets(const vector<fastjet::PseudoJet>& input_particles); 82 82 void RunJetBtagging(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchJet,const vector<fastjet::PseudoJet> & sorted_jets,const TSimpleArray<TRootGenParticle> & NFCentralQ); 83 void RunTauJets(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchTauJet,const vector<fastjet::PseudoJet> & sorted_jets,const vector<PhysicsTower> & towers, const vector<TLorentzVector> & TrackCentral); 83 //void RunTauJets(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchTauJet,const vector<fastjet::PseudoJet> & sorted_jets,const vector<PhysicsTower> & towers, const vector<TLorentzVector> & TrackCentral); 84 void RunTauJets(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchTauJet,const vector<fastjet::PseudoJet> & sorted_jets,const vector<PhysicsTower> & towers, const vector<TRootTracks> & TrackCentral); 84 85 85 86 private: -
trunk/src/JetsUtil.cc
r260 r286 157 157 } 158 158 159 void JetsUtil::RunTauJets(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchTauJet,const vector<fastjet::PseudoJet> & sorted_jets,const vector<PhysicsTower> & towers, const vector<TLorentzVector> & TrackCentral) 159 //void JetsUtil::RunTauJets(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchTauJet,const vector<fastjet::PseudoJet> & sorted_jets,const vector<PhysicsTower> & towers, const vector<TLorentzVector> & TrackCentral) 160 void JetsUtil::RunTauJets(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchTauJet,const vector<fastjet::PseudoJet> & sorted_jets,const vector<PhysicsTower> & towers, const vector<TRootTracks> & TrackCentral) 160 161 { 161 162 TRootTauJet *elementTauJet; 162 163 TLorentzVector JET; 164 float charge=0; 163 165 for (unsigned int i = 0; i < sorted_jets.size(); i++) { 164 166 JET.SetPxPyPzE(sorted_jets[i].px(),sorted_jets[i].py(),sorted_jets[i].pz(),sorted_jets[i].E()); … … 168 170 if( 169 171 ( Energie_tau_central/JET.E() > DET->TAU_energy_frac ) && 170 ( DET->NumTracks(TrackCentral,DET->TAU_track_pt,JET.Eta(),JET.Phi()) == 1 ) && 172 //( DET->NumTracks(charge,TrackCentral,DET->TAU_track_pt,JET.Eta(),JET.Phi(),DET->TAU_track_scone) == 1 ) && 173 ( DET->NumTracks(charge,TrackCentral,DET->TAU_track_pt,JET.Eta(),JET.Phi()) == 1 ) && 171 174 ( JET.Pt() > DET->PTCUT_taujet) 172 175 ) { 173 176 elementTauJet = (TRootTauJet*) branchTauJet->NewEntry(); 174 177 elementTauJet->Set(JET); 178 elementTauJet->Charge = charge; 175 179 } // if tau jet 176 180 } // if JET.eta < tracker - tau_cone : Tau jet identification
Note:
See TracChangeset
for help on using the changeset viewer.