ATLAS Offline Software
ELogMassEtaUncertaintyComponent.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 namespace jet
9 {
10 
12 // //
13 // Constructor/destructor/initialization //
14 // //
16 
19  , m_absEta(false)
20  , m_massDef(CompMassDef::UNKNOWN)
21 {
23 }
24 
26  : UncertaintyComponent(component)
27  , m_absEta(CompParametrization::isAbsEta(component.parametrization))
28  , m_massDef(component.massDef)
29 {
30  ATH_MSG_DEBUG(Form("Creating ELogMassEtaUncertaintyComponent named %s",m_uncHistName.Data()));
31 }
32 
34  : UncertaintyComponent(toCopy)
35  , m_absEta(toCopy.m_absEta)
36  , m_massDef(toCopy.m_massDef)
37 {
38  ATH_MSG_DEBUG(Form("Creating copy of ELogMassEtaUncertaintyComponent named %s",m_uncHistName.Data()));
39 }
40 
42 {
43  return new ELogMassEtaUncertaintyComponent(*this);
44 }
45 
46 
48 // //
49 // Validity and uncertainty retrieval //
50 // //
52 
54 {
55  return !m_validHist ? true : getValidBool(m_validHist->getValue(jet.e()*m_energyScale,log(getMassOverE(jet,m_massDef)),m_absEta ? fabs(jet.eta()) : jet.eta()));
56 }
57 
59 {
60  return m_uncHist->getValue(jet.e()*m_energyScale,log(getMassOverE(jet,m_massDef)),m_absEta ? fabs(jet.eta()) : jet.eta());
61 }
62 
63 } // end jet namespace
64 
jet::UncertaintyComponent::getMassOverE
virtual double getMassOverE(const xAOD::Jet &jet, const CompMassDef::TypeEnum massDef) const
Definition: UncertaintyComponent.cxx:360
jet::ELogMassEtaUncertaintyComponent::ELogMassEtaUncertaintyComponent
ELogMassEtaUncertaintyComponent(const ComponentHelper &component)
Definition: ELogMassEtaUncertaintyComponent.cxx:25
jet::UncertaintyComponent::m_energyScale
const float m_energyScale
Definition: UncertaintyComponent.h:55
jet::ComponentHelper
Definition: ConfigHelper.h:24
jet::UncertaintyComponent::m_uncHistName
const TString m_uncHistName
Definition: UncertaintyComponent.h:51
jet::CompParametrization::isAbsEta
bool isAbsEta(const TypeEnum type)
Definition: UncertaintyEnum.cxx:143
jet::UncertaintyComponent::getValidBool
virtual bool getValidBool(const double validity) const
Definition: UncertaintyComponent.cxx:301
jet::UncertaintyHistogram::getValue
double getValue(const double var1) const
Definition: UncertaintyHistogram.cxx:141
Helpers.h
jet::UncertaintyComponent
Definition: UncertaintyComponent.h:25
ELogMassEtaUncertaintyComponent.h
jet::ELogMassEtaUncertaintyComponent::clone
virtual ELogMassEtaUncertaintyComponent * clone() const
Definition: ELogMassEtaUncertaintyComponent.cxx:41
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
jet::UncertaintyComponent::m_validHist
UncertaintyHistogram * m_validHist
Definition: UncertaintyComponent.h:61
jet::ELogMassEtaUncertaintyComponent::m_massDef
const CompMassDef::TypeEnum m_massDef
Definition: ELogMassEtaUncertaintyComponent.h:31
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
jet::ELogMassEtaUncertaintyComponent::getValidityImpl
virtual bool getValidityImpl(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
Definition: ELogMassEtaUncertaintyComponent.cxx:53
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
JESUNC_NO_DEFAULT_CONSTRUCTOR
#define JESUNC_NO_DEFAULT_CONSTRUCTOR
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/Helpers.h:24
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
jet::ELogMassEtaUncertaintyComponent::m_absEta
const bool m_absEta
Definition: ELogMassEtaUncertaintyComponent.h:30
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
jet::UncertaintyComponent::m_uncHist
UncertaintyHistogram * m_uncHist
Definition: UncertaintyComponent.h:60
jet::ELogMassEtaUncertaintyComponent::getUncertaintyImpl
virtual double getUncertaintyImpl(const xAOD::Jet &jet, const xAOD::EventInfo &eInfo) const
Definition: ELogMassEtaUncertaintyComponent.cxx:58
jet::ELogMassEtaUncertaintyComponent
Definition: ELogMassEtaUncertaintyComponent.h:14
LArG4GenerateShowerLib.parametrization
parametrization
Definition: LArG4GenerateShowerLib.py:19