Fork me on GitHub

Changeset 567 in svn for trunk/src/JetsUtil.cc


Ignore:
Timestamp:
Jun 16, 2010, 11:05:05 AM (14 years ago)
Author:
Xavier Rouby
Message:

version 1.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/JetsUtil.cc

    r547 r567  
    122122}
    123123
    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)
     124vector<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)
    125125{
    126126  inclusive_jets.clear();
     
    144144            DET->BinEtaPhi(TrackCentral[t].PhiOuter,TrackCentral[t].EtaOuter,iPhiTrack[t],iEtaTrack[t]);
    145145          else {
    146             iPhiTrack[t] = TrackCentral[t].PhiOuter;    iEtaTrack[t] = TrackCentral[t].EtaOuter;
     146            iPhiTrack[t] = TrackCentral[t].Phi;    iEtaTrack[t] = TrackCentral[t].Eta;  // should NOT be PhiOuter and EtaOuter
    147147          }
    148148        }
     
    163163            //now, get EHad over EEm
    164164            float EmVal=0,HadVal=0;
     165            NCALO.push_back(constituents.size());
    165166            for (unsigned int j = 0; j < constituents.size(); j++)
    166167                {
     
    197198
    198199
    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)
     200void 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)
    200201{
    201202  TRootJet *elementJet;
     
    209210        elementJet->NTracks = NTrackJet[i];
    210211        elementJet->EHoverEE = EHADEEM[i];
     212        elementJet->NCalo = NCALO[i];
    211213
    212214        // b-jets
     
    218220}
    219221
    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)
     222void 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)
    221223{
    222224  TRootTauJet *elementTauJet;
     
    240242        elementTauJet->Charge = charge;
    241243        elementTauJet->EHoverEE = EHADEEM[i];
     244        elementTauJet->NCalo = NCALO[i];
    242245      } // if tau jet
    243246    } // if JET.eta < tracker - tau_cone : Tau jet identification
Note: See TracChangeset for help on using the changeset viewer.