21#ifndef XAOD_STANDALONE
31 return StatusCode::SUCCESS;
47 if (!truthHSJetsHandle.
isValid()){
49 return StatusCode::FAILURE;
59 for (
const xAOD::Jet *truthJet : *truthHSJets) {
60 float dr =
jet->p4().DeltaR(truthJet->p4());
61 if (dr < m_hsMaxDR && truthJet->pt() >
m_hsMinPt)
63 if (dr < m_puMinDR && truthJet->pt() >
m_puMinPt)
68 isHSJetHandle(*
jet) = isHS;
69 isPUJetHandle(*
jet) = isPU;
72 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
Handle class for adding a decoration to an object.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".