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

Go to the source code of this file.

Functions

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

Function Documentation

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

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

Definition at line 110 of file OverlapRemovalTestAlg.cxx.

111{
112 // Label bjets
113 const static ort::inputDecorator_t bJetDec(m_bJetLabel);
114 bJetDec(jet) = false;
115 double mv2c10 = 0.;
117 if(btag && btag->MVx_discriminant("MV2c10", mv2c10)){
118 if(mv2c10 > -0.1416) bJetDec(jet) = true;
119 }
120 else ATH_MSG_WARNING("BTag info unavailable!");
121 if(jet.pt() < 20.*GeV) return false;
122 if(std::abs(jet.eta()) > 2.5) return false;
123 return true;
124}
#define ATH_MSG_WARNING(x)
const ort::inputDecorator_t bJetDec(bJetLabel)
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.

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

Definition at line 127 of file OverlapRemovalTestAlg.cxx.

128{
129 if(obj.pt() < 20.*GeV) return false;
130 if(std::abs(obj.eta()) > 2.5) return false;
131 return true;
132}