ATLAS Offline Software
Loading...
Searching...
No Matches
ClosebyUncertaintyComponent.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8namespace jet
9{
10
12// //
13// Constructor/destructor/initialization //
14// //
16
22
24 : UncertaintyComponent(component)
25{
26 ATH_MSG_DEBUG(Form("Creating ClosebyUncertaintyComponent named %s",m_uncHistName.Data()));
27}
28
30 : UncertaintyComponent(toCopy)
31{
32 ATH_MSG_DEBUG(Form("Creating copy of ClosebyUncertaintyComponent named %s",m_uncHistName.Data()));
33}
34
39
40
42// //
43// Validity and uncertainty retrieval //
44// //
46
51
56
58{
59 static const SG::AuxElement::Accessor<float> accMinDR("MinDR");
60
61 if (!accMinDR.isAvailable(jet))
62 {
63 ATH_MSG_ERROR("Failed to retrieve MinDR attribute from the jet");
64 return JESUNC_ERROR_CODE;
65 }
66 return accMinDR(jet);
67}
68
69} // end jet namespace
70
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:572
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
virtual bool getValidityImpl(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
ClosebyUncertaintyComponent(const ComponentHelper &component)
virtual ClosebyUncertaintyComponent * clone() const
virtual double getUncertaintyImpl(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
float getMinDR(const xAOD::Jet &jet) const
UncertaintyComponent(const ComponentHelper &component, const size_t numHist=1)
virtual bool getValidBool(const double validity) const
UncertaintyHistogram * m_validHist
UncertaintyHistogram * m_uncHist
Jet_v1 Jet
Definition of the current "jet version".
EventInfo_v1 EventInfo
Definition of the latest event info version.