ATLAS Offline Software
TrackJet.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3  */
4 
6 
7 namespace top {
8  TrackJet::TrackJet(const double ptcut, const double etamax) :
9  m_ptcut(ptcut),
10  m_etamax(etamax) {
11  }
12 
14  }
15 
17  if (jet.pt() < m_ptcut) return false;
18 
19  if (std::fabs(jet.eta()) > m_etamax) return false;
20 
21  // See https://twiki.cern.ch/twiki/bin/view/AtlasProtected/TrackJetSelectionRecAndGuide
22  if (jet.numConstituents() < 2) return false;
23 
24  return true;
25  }
26 
27  void TrackJet::print(std::ostream& os) const {
28  os << "TrackJet\n"
29  << " * pT > " << m_ptcut << "\n"
30  << " * |eta| < " << m_etamax << "\n"
31  << " * >= 2 tracks \n";
32  }
33 }
top
TopConfig A simple configuration that is NOT a singleton.
Definition: AnalysisTrackingHelper.cxx:58
top::TrackJet::m_ptcut
double m_ptcut
Definition: PhysicsAnalysis/TopPhys/xAOD/TopObjectSelectionTools/TopObjectSelectionTools/TrackJet.h:18
Pythia8_A14_NNPDF23LO_forMGHT_EvtGen.ptcut
float ptcut
Definition: Pythia8_A14_NNPDF23LO_forMGHT_EvtGen.py:9
top::TrackJet::~TrackJet
~TrackJet()
Definition: TrackJet.cxx:13
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
top::TrackJet::print
virtual void print(std::ostream &os) const override
Definition: TrackJet.cxx:27
TrackJet.h
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
top::TrackJet::m_etamax
double m_etamax
Definition: PhysicsAnalysis/TopPhys/xAOD/TopObjectSelectionTools/TopObjectSelectionTools/TrackJet.h:19
top::TrackJet::TrackJet
TrackJet(const double ptcut, const double etamax)
Definition: TrackJet.cxx:8
top::TrackJet::passSelection
virtual bool passSelection(const xAOD::Jet &jet) override
Definition: TrackJet.cxx:16