Fork me on GitHub

Changeset 286 in svn


Ignore:
Timestamp:
Mar 3, 2009, 12:44:32 AM (16 years ago)
Author:
Xavier Rouby
Message:

charge added in Taujets

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/interface/JetsUtil.h

    r260 r286  
    8181  vector<fastjet::PseudoJet> RunJets(const vector<fastjet::PseudoJet>&  input_particles);
    8282  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);
    8485
    8586 private:
  • trunk/src/JetsUtil.cc

    r260 r286  
    157157}
    158158
    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)
     160void JetsUtil::RunTauJets(ExRootTreeWriter *treeWriter, ExRootTreeBranch *branchTauJet,const vector<fastjet::PseudoJet> & sorted_jets,const vector<PhysicsTower> & towers, const vector<TRootTracks> & TrackCentral)
    160161{
    161162  TRootTauJet *elementTauJet;
    162163  TLorentzVector JET;
     164  float charge=0;
    163165  for (unsigned int i = 0; i < sorted_jets.size(); i++) {
    164166    JET.SetPxPyPzE(sorted_jets[i].px(),sorted_jets[i].py(),sorted_jets[i].pz(),sorted_jets[i].E());
     
    168170      if(
    169171         ( 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 ) &&
    171174         ( JET.Pt() > DET->PTCUT_taujet)
    172175         ) {
    173176        elementTauJet = (TRootTauJet*) branchTauJet->NewEntry();
    174177        elementTauJet->Set(JET);
     178        elementTauJet->Charge = charge;
    175179      } // if tau jet
    176180    } // if JET.eta < tracker - tau_cone : Tau jet identification
Note: See TracChangeset for help on using the changeset viewer.