ATLAS Offline Software
Loading...
Searching...
No Matches
ORToolBoxTestAlg.cxx File Reference
Include dependency graph for ORToolBoxTestAlg.cxx:

Go to the source code of this file.

Functions

template<>
bool ORToolBoxTestAlg::selectObject< xAOD::Jet > (const xAOD::Jet &jet)
template<>
bool ORToolBoxTestAlg::selectObject< xAOD::TauJet > (const xAOD::TauJet &obj)

Function Documentation

◆ ORToolBoxTestAlg::selectObject< xAOD::Jet >()

template<>
bool ORToolBoxTestAlg::selectObject< xAOD::Jet > ( const xAOD::Jet & jet)

Definition at line 104 of file ORToolBoxTestAlg.cxx.

105{
106 // Label bjets
107 const static ort::inputDecorator_t bJetDec(m_flags.bJetLabel);
108 bJetDec(jet) = false;
109 double mv2c10 = 0.;
111 if(btag->MVx_discriminant("MV2c10", mv2c10)){
112 if(mv2c10 > -0.1416) bJetDec(jet) = true;
113 }
114 else ATH_MSG_WARNING("BTag info unavailable!");
115 if(jet.pt() < 20.*GeV) return false;
116 if(std::abs(jet.eta()) > 2.5) return false;
117 return true;
118}
#define ATH_MSG_WARNING(x)
const ort::inputDecorator_t bJetDec(bJetLabel)
bool MVx_discriminant(const std::string &taggername, double &value) const
SG::AuxElement::Decorator< inputFlag_t > inputDecorator_t
Input object decorator (for convenience if users want it)
const BTagging * getBTagging(const SG::AuxElement &part)
Access the default xAOD::BTagging object associated to an object.
BTagging_v1 BTagging
Definition of the current "BTagging version".
Definition BTagging.h:17

◆ ORToolBoxTestAlg::selectObject< xAOD::TauJet >()

template<>
bool ORToolBoxTestAlg::selectObject< xAOD::TauJet > ( const xAOD::TauJet & obj)

Definition at line 121 of file ORToolBoxTestAlg.cxx.

122{
123 if(obj.pt() < 20.*GeV) return false;
124 if(std::abs(obj.eta()) > 2.5) return false;
125 return true;
126}