ATLAS Offline Software
Loading...
Searching...
No Matches
PtUncertaintyComponent.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 PtUncertaintyComponent named %s",m_uncHistName.Data()));
27}
28
30 : UncertaintyComponent(toCopy)
31{
32 ATH_MSG_DEBUG(Form("Creating copy of PtUncertaintyComponent named %s",m_uncHistName.Data()));
33}
34
39
40
42// //
43// Uncertainty/validity retrieval methods //
44// //
46
48{
49 return !m_validHist ? true : getValidBool(m_validHist->getValue(jet.pt()*m_energyScale));
50}
51
53{
54 return m_uncHist->getValue(jet.pt()*m_energyScale);
55}
56
57} // end jet namespace
58
#define ATH_MSG_DEBUG(x)
PtUncertaintyComponent(const ComponentHelper &component)
virtual bool getValidityImpl(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
virtual double getUncertaintyImpl(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
virtual PtUncertaintyComponent * clone() 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.