ATLAS Offline Software
ValidityHistogram.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 #include <math.h>
9 
10 namespace jet
11 {
12 
13 
15 // //
16 // Validity information helpers //
17 // //
19 
21 {
22  public:
23  InfoHelper(const ValidityHistogram& validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
24  : m_validHist(validHist), m_energyScale(energyScale), m_massDef(massDef) {}
25  virtual ~InfoHelper() = default;
26  virtual InfoHelper* clone() const = 0;
27 
28  virtual bool isValid(const xAOD::Jet& jet) const = 0;
29 
30  protected:
32  const float m_energyScale;
34 
35  double getAbsMass(const xAOD::Jet& jet) const;
36  double getMassOverPt(const xAOD::Jet& jet) const;
37  double getMassOverE(const xAOD::Jet& jet) const;
38 };
39 
40 class InfoHelperPt : public InfoHelper
41 {
42  public:
43  InfoHelperPt(const ValidityHistogram& validHist, const float energyScale)
44  : InfoHelper(validHist,energyScale,CompMassDef::UNKNOWN) {}
45  virtual InfoHelperPt* clone() const { return new InfoHelperPt(*this); }
46 
47  virtual bool isValid(const xAOD::Jet& jet) const
48  {
50  }
51 };
52 
54 {
55  public:
56  InfoHelperPtEta(const ValidityHistogram& validHist, const float energyScale)
57  : InfoHelper(validHist,energyScale,CompMassDef::UNKNOWN) {}
58  virtual InfoHelperPtEta* clone() const { return new InfoHelperPtEta(*this); }
59 
60  virtual bool isValid(const xAOD::Jet& jet) const
61  {
62  return m_validHist.getValue(jet.pt()*m_energyScale,jet.eta());
63  }
64 };
65 
67 {
68  public:
69  InfoHelperPtAbsEta(const ValidityHistogram& validHist, const float energyScale)
70  : InfoHelper(validHist,energyScale,CompMassDef::UNKNOWN) {}
71  virtual InfoHelperPtAbsEta* clone() const { return new InfoHelperPtAbsEta(*this); }
72 
73  virtual bool isValid(const xAOD::Jet& jet) const
74  {
75  return m_validHist.getValue(jet.pt()*m_energyScale,fabs(jet.eta()));
76  }
77 };
78 
80 {
81  public:
82  InfoHelperPtAbsMass(const ValidityHistogram& validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
83  : InfoHelper(validHist,energyScale,massDef) {}
84  virtual InfoHelperPtAbsMass* clone() const { return new InfoHelperPtAbsMass(*this); }
85 
86  virtual bool isValid(const xAOD::Jet& jet) const
87  {
89  }
90 };
91 
93 {
94  public:
95  InfoHelperPtMass(const ValidityHistogram& validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
96  : InfoHelper(validHist,energyScale,massDef) {}
97  virtual InfoHelperPtMass* clone() const { return new InfoHelperPtMass(*this); }
98 
99  virtual bool isValid(const xAOD::Jet& jet) const
100  {
102  }
103 };
104 
106 {
107  public:
108  InfoHelperPtMassEta(const ValidityHistogram& validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
109  : InfoHelper(validHist,energyScale,massDef) {}
110  virtual InfoHelperPtMassEta* clone() const { return new InfoHelperPtMassEta(*this); }
111 
112  virtual bool isValid(const xAOD::Jet& jet) const
113  {
115  }
116 };
117 
119 {
120  public:
121  InfoHelperPtMassAbsEta(const ValidityHistogram& validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
122  : InfoHelper(validHist,energyScale,massDef) {}
123  virtual InfoHelperPtMassAbsEta* clone() const { return new InfoHelperPtMassAbsEta(*this); }
124 
125  virtual bool isValid(const xAOD::Jet& jet) const
126  {
127  return m_validHist.getValue(jet.pt()*m_energyScale,getMassOverPt(jet),fabs(jet.eta()));
128  }
129 };
130 
132 {
133  public:
134  InfoHelperPtAbsMassEta(const ValidityHistogram& validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
135  : InfoHelper(validHist,energyScale,massDef) {}
136  virtual InfoHelperPtAbsMassEta* clone() const { return new InfoHelperPtAbsMassEta(*this); }
137 
138  virtual bool isValid(const xAOD::Jet& jet) const
139  {
141  }
142 };
143 
145 {
146  public:
147  InfoHelperPtAbsMassAbsEta(const ValidityHistogram& validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
148  : InfoHelper(validHist,energyScale,massDef) {}
149  virtual InfoHelperPtAbsMassAbsEta* clone() const { return new InfoHelperPtAbsMassAbsEta(*this); }
150 
151  virtual bool isValid(const xAOD::Jet& jet) const
152  {
154  }
155 };
156 
158 {
159  public:
160  InfoHelpereLOGmOe(const ValidityHistogram& validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
161  : InfoHelper(validHist,energyScale,massDef) {}
162  virtual InfoHelpereLOGmOe* clone() const { return new InfoHelpereLOGmOe(*this); }
163 
164  virtual bool isValid(const xAOD::Jet& jet) const
165  {
167  }
168 };
169 
171 {
172  public:
173  InfoHelpereLOGmOeEta(const ValidityHistogram& validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
174  : InfoHelper(validHist,energyScale,massDef) {}
175  virtual InfoHelpereLOGmOeEta* clone() const { return new InfoHelpereLOGmOeEta(*this); }
176 
177  virtual bool isValid(const xAOD::Jet& jet) const
178  {
180  }
181 };
182 
184 {
185  public:
186  InfoHelpereLOGmOeAbsEta(const ValidityHistogram& validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
187  : InfoHelper(validHist,energyScale,massDef) {}
188  virtual InfoHelpereLOGmOeAbsEta* clone() const { return new InfoHelpereLOGmOeAbsEta(*this); }
189 
190  virtual bool isValid(const xAOD::Jet& jet) const
191  {
192  return m_validHist.getValue(jet.e()*m_energyScale,log(getMassOverE(jet)),fabs(jet.eta()));
193  }
194 };
195 
196 
198 {
199  // Check for the simple case (where we want the default four-vector itself)
201  return jet.m();
202 
203  // Not the simple case, check for the specified four-vector instead and return it if it is available
205  if (scale.isAvailable(jet))
206  return scale(jet).M();
207 
208  // Fall-back on the TA moment as a float if applicable (legacy support)
209  SG::AuxElement::ConstAccessor<float> scaleTAMoment("JetTrackAssistedMassCalibrated");
210  if (m_massDef == CompMassDef::TAMass && scaleTAMoment.isAvailable(jet))
211  return scaleTAMoment(jet);
212 
213  // Fall-back on the calo mass as the 4-vec if applicable (legacy support)
215  return jet.m();
216 
217  // Specified scale is not available, error
218  return JESUNC_ERROR_CODE;
219 }
220 
222 {
223  // Check for the simple case (where we want the default four-vector itself)
225  return jet.m()/jet.pt();
226 
227  // Not the simple case, check for the specified four-vector instead and return it if it is available
229  if (scale.isAvailable(jet))
230  return scale(jet).M()/scale(jet).Pt();
231 
232  // Fall-back on the TA moment as a float if applicable (legacy support)
233  SG::AuxElement::ConstAccessor<float> scaleTAMoment("JetTrackAssistedMassCalibrated");
234  if (m_massDef == CompMassDef::TAMass && scaleTAMoment.isAvailable(jet))
235  return scaleTAMoment(jet)/jet.pt();
236 
237  // Fall-back on the calo mass as the 4-vec if applicable (legacy support)
239  return jet.m()/jet.pt();
240 
241  // Specified scale is not available, error
242  return JESUNC_ERROR_CODE;
243 
244 }
245 
247 {
248  // Check for the simple case (where we want the default four-vector itself)
250  return jet.m()/jet.e();
251 
252  // Not the simple case, check for the specified four-vector instead and return it if it is available
254  if (scale.isAvailable(jet))
255  return scale(jet).M()/scale(jet).E();
256 
257  // Fall-back on the TA moment as a float if applicable (legacy support)
258  SG::AuxElement::ConstAccessor<float> scaleTAMoment("JetTrackAssistedMassCalibrated");
259  if (m_massDef == CompMassDef::TAMass && scaleTAMoment.isAvailable(jet))
260  return scaleTAMoment(jet)/jet.e();
261 
262  // Fall-back on the calo mass as the 4-vec if applicable (legacy support)
264  return jet.m()/jet.e();
265 
266  // Specified scale is not available, error
267  return JESUNC_ERROR_CODE;
268 
269 }
270 
271 
272 
273 
275 // //
276 // Constructor/destructor/initialization //
277 // //
279 
282  , m_isInit(false)
283  , m_param(parametrization)
284  , m_energyScale(energyScale)
285  , m_massDef(massDef)
286  , m_helper(nullptr)
287 {
288  ATH_MSG_DEBUG(Form("Creating ValidityHistogram named %s",getName().Data()));
289 }
290 
292  : ValidityHistogram(std::string(histName.Data()),parametrization,energyScale,massDef)
293 { }
294 
296  : ValidityHistogram(std::string(histName),parametrization,energyScale,massDef)
297 { }
298 
300  : UncertaintyHistogram(toCopy)
301  , m_isInit(toCopy.m_isInit)
302  , m_param(toCopy.m_param)
303  , m_energyScale(toCopy.m_energyScale)
304  , m_massDef(toCopy.m_massDef)
305  , m_helper(nullptr)
306 {
307  ATH_MSG_DEBUG("Creating copy of ValidityHistogram named " << getName().Data());
308  m_helper = toCopy.m_helper->clone();
309 }
310 
312 {
314 }
315 
317 {
318  // Ensure it wasn't already initialized
319  if (m_isInit)
320  {
321  ATH_MSG_ERROR("ValidityHistogram was already initialized: " << getName().Data());
322  return StatusCode::FAILURE;
323  }
324 
325  // Initialize the base class
326  if (UncertaintyHistogram::initialize(histFile).isFailure())
327  return StatusCode::FAILURE;
328 
329  // Ensure that the parametrization is sensible
330  switch (m_param)
331  {
333  ATH_MSG_ERROR("ValidityHistogram parametrization is UNKNOWN: " << getName().Data());
334  return StatusCode::FAILURE;
336  //1D
337  if (getNumDim() != 1)
338  {
339  ATH_MSG_ERROR("ValidityHistogram is " << getNumDim() << "D, but parametrization is 1D: " << CompParametrization::enumToString(m_param).Data());
340  return StatusCode::FAILURE;
341  }
342  break;
349  // 2D
350  if (getNumDim() != 2)
351  {
352  ATH_MSG_ERROR("ValidityHistogram is " << getNumDim() << "D, but parametrization is 2D: " << CompParametrization::enumToString(m_param).Data());
353  return StatusCode::FAILURE;
354  }
355  break;
362  // 3D
363  if (getNumDim() != 3)
364  {
365  ATH_MSG_ERROR("ValidityHistogram is " << getNumDim() << "D, but parametrization is 3D: " << CompParametrization::enumToString(m_param).Data());
366  return StatusCode::FAILURE;
367  }
368  break;
369  default:
370  ATH_MSG_ERROR("ValidityHistogram named \"" << getName().Data() << "\" had an unpexted parametrization: " << CompParametrization::enumToString(m_param).Data());
371  return StatusCode::FAILURE;
372  }
373 
374  // Figure out which function helper we want once, right now, so we don't need to switch every time
375  switch (m_param)
376  {
378  m_helper = new InfoHelperPt(*this,m_energyScale);
379  break;
382  break;
385  break;
388  break;
391  break;
394  break;
397  break;
400  break;
403  break;
406  break;
409  break;
412  break;
413  default:
414  ATH_MSG_ERROR("ValidityHistogram named \"" << getName().Data() << "\" was not prepared to handle the provided parametrization: " << CompParametrization::enumToString(m_param).Data());
415  return StatusCode::FAILURE;
416  }
417 
418  // Done
419  m_isInit = true;
420  return StatusCode::SUCCESS;
421 }
422 
423 
425 // //
426 // Validity information access //
427 // //
429 
430 
432 {
433  if (!m_isInit)
434  {
435  ATH_MSG_ERROR("You must initialize the ValidityHistogram before calling getIsValid: " << getName().Data());
436  return false;
437  }
438 
439  const double validity = m_helper->isValid(jet);
440  if (validity < 1.e-5 && validity > -1.e-5)
441  return false;
442  if (validity < 1+1.e-5 && validity > 1-1.e-5)
443  return true;
444 
445  // Validity is neither 0 nor 1
446  ATH_MSG_ERROR("ValidityHistogram \"" << getName().Data() << "\" out of expected range: " << validity);
447  return false;
448 }
449 
450 
451 } // end jet namespace
452 
jet::CompMassDef::TypeEnum
TypeEnum
Definition: UncertaintyEnum.h:71
jet::UncertaintyHistogram::getName
const TString & getName() const
Definition: UncertaintyHistogram.h:36
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
jet::CompParametrization::UNKNOWN
@ UNKNOWN
Definition: UncertaintyEnum.h:46
jet::CompParametrization::PtLOGPtMassForTagSF
@ PtLOGPtMassForTagSF
Definition: UncertaintyEnum.h:59
jet::ValidityHistogram
Definition: ValidityHistogram.h:19
jet::InfoHelpereLOGmOeAbsEta::clone
virtual InfoHelpereLOGmOeAbsEta * clone() const
Definition: ValidityHistogram.cxx:188
jet::CompMassDef::FourVecMass
@ FourVecMass
Definition: UncertaintyEnum.h:73
jet::InfoHelperPtAbsMassAbsEta
Definition: ValidityHistogram.cxx:145
jet::InfoHelperPtEta::InfoHelperPtEta
InfoHelperPtEta(const ValidityHistogram &validHist, const float energyScale)
Definition: ValidityHistogram.cxx:56
jet::UncertaintyHistogram::getNumDim
int getNumDim() const
Definition: UncertaintyHistogram.h:39
jet::InfoHelperPtEta::clone
virtual InfoHelperPtEta * clone() const
Definition: ValidityHistogram.cxx:58
AddEmptyComponent.histName
string histName
Definition: AddEmptyComponent.py:64
jet::InfoHelperPtAbsMassAbsEta::isValid
virtual bool isValid(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:151
jet::ValidityHistogram::m_energyScale
const float m_energyScale
Definition: ValidityHistogram.h:39
jet::InfoHelper::clone
virtual InfoHelper * clone() const =0
jet::InfoHelperPt::isValid
virtual bool isValid(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:47
Data
@ Data
Definition: BaseObject.h:11
jet::InfoHelpereLOGmOeEta::clone
virtual InfoHelpereLOGmOeEta * clone() const
Definition: ValidityHistogram.cxx:175
jet::InfoHelper::m_energyScale
const float m_energyScale
Definition: ValidityHistogram.cxx:32
jet::CompMassDef::CaloMass
@ CaloMass
Definition: UncertaintyEnum.h:74
jet::CompParametrization::Pt
@ Pt
Definition: UncertaintyEnum.h:47
jet::ValidityHistogram::initialize
virtual StatusCode initialize(TFile *histFile)
Definition: ValidityHistogram.cxx:316
jet::InfoHelperPt
Definition: ValidityHistogram.cxx:41
ConvertOldUJHistosToNewHistos.validHist
validHist
Definition: ConvertOldUJHistosToNewHistos.py:110
jet::InfoHelpereLOGmOeAbsEta::isValid
virtual bool isValid(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:190
jet::InfoHelperPtAbsMass::InfoHelperPtAbsMass
InfoHelperPtAbsMass(const ValidityHistogram &validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
Definition: ValidityHistogram.cxx:82
jet::InfoHelperPtEta::isValid
virtual bool isValid(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:60
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:55
jet::InfoHelperPt::InfoHelperPt
InfoHelperPt(const ValidityHistogram &validHist, const float energyScale)
Definition: ValidityHistogram.cxx:43
jet::InfoHelper::m_validHist
const ValidityHistogram & m_validHist
Definition: ValidityHistogram.cxx:31
jet::InfoHelperPtEta
Definition: ValidityHistogram.cxx:54
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
jet::ValidityHistogram::m_massDef
const CompMassDef::TypeEnum m_massDef
Definition: ValidityHistogram.h:40
jet::CompParametrization::PtAbsEta
@ PtAbsEta
Definition: UncertaintyEnum.h:49
jet::InfoHelpereLOGmOe
Definition: ValidityHistogram.cxx:158
jet::InfoHelper::m_massDef
const CompMassDef::TypeEnum m_massDef
Definition: ValidityHistogram.cxx:33
jet::UncertaintyHistogram::getValue
double getValue(const double var1) const
Definition: UncertaintyHistogram.cxx:141
jet::InfoHelpereLOGmOe::isValid
virtual bool isValid(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:164
jet::InfoHelpereLOGmOeEta
Definition: ValidityHistogram.cxx:171
Helpers.h
jet::CompParametrization::PtAbsMassAbsEta
@ PtAbsMassAbsEta
Definition: UncertaintyEnum.h:55
jet::InfoHelperPtMassAbsEta::InfoHelperPtMassAbsEta
InfoHelperPtMassAbsEta(const ValidityHistogram &validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
Definition: ValidityHistogram.cxx:121
jet::UncertaintyHistogram::initialize
virtual StatusCode initialize(TFile *histFile)
Definition: UncertaintyHistogram.cxx:85
jet::InfoHelper::getMassOverE
double getMassOverE(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:246
JESUNC_ERROR_CODE
#define JESUNC_ERROR_CODE
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/Helpers.h:23
jet::InfoHelperPt::clone
virtual InfoHelperPt * clone() const
Definition: ValidityHistogram.cxx:45
jet::CompParametrization::PtMassAbsEta
@ PtMassAbsEta
Definition: UncertaintyEnum.h:53
jet::CompParametrization::eLOGmOeEta
@ eLOGmOeEta
Definition: UncertaintyEnum.h:57
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
jet::CompParametrization::enumToString
TString enumToString(const TypeEnum type)
Definition: UncertaintyEnum.cxx:91
JESUNC_SAFE_DELETE
#define JESUNC_SAFE_DELETE(T)
Definition: Reconstruction/Jet/JetUncertainties/JetUncertainties/Helpers.h:25
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
jet::InfoHelpereLOGmOeAbsEta
Definition: ValidityHistogram.cxx:184
jet::CompMassDef::getJetScaleString
TString getJetScaleString(const TypeEnum type)
Definition: UncertaintyEnum.cxx:225
jet::CompMassDef::TAMass
@ TAMass
Definition: UncertaintyEnum.h:75
jet::ValidityHistogram::m_isInit
bool m_isInit
Definition: ValidityHistogram.h:37
jet::CompParametrization::eLOGmOe
@ eLOGmOe
Definition: UncertaintyEnum.h:56
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
jet::InfoHelper::InfoHelper
InfoHelper(const ValidityHistogram &validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
Definition: ValidityHistogram.cxx:23
jet::ValidityHistogram::~ValidityHistogram
virtual ~ValidityHistogram()
Definition: ValidityHistogram.cxx:311
jet::ValidityHistogram::m_helper
InfoHelper * m_helper
Definition: ValidityHistogram.h:41
jet::InfoHelperPtMass
Definition: ValidityHistogram.cxx:93
jet::InfoHelperPtMassAbsEta::clone
virtual InfoHelperPtMassAbsEta * clone() const
Definition: ValidityHistogram.cxx:123
jet::InfoHelperPtAbsMass::isValid
virtual bool isValid(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:86
jet::ValidityHistogram::m_param
const CompParametrization::TypeEnum m_param
Definition: ValidityHistogram.h:38
jet::JetFourMomAccessor
JetFourMomAccessor is an extension of JetAttributeAccessor::AccessorWrapper<xAOD::JetFourMom_t> Acces...
Definition: JetCalibTools_PlotJESFactors.cxx:32
jet::InfoHelperPtAbsMassEta::clone
virtual InfoHelperPtAbsMassEta * clone() const
Definition: ValidityHistogram.cxx:136
jet::CompParametrization::PtAbsMassEta
@ PtAbsMassEta
Definition: UncertaintyEnum.h:54
jet::InfoHelperPtAbsMassEta::isValid
virtual bool isValid(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:138
jet::InfoHelperPtAbsMassAbsEta::clone
virtual InfoHelperPtAbsMassAbsEta * clone() const
Definition: ValidityHistogram.cxx:149
jet::CompParametrization::PtAbsMass
@ PtAbsMass
Definition: UncertaintyEnum.h:50
jet::CompParametrization::PtEta
@ PtEta
Definition: UncertaintyEnum.h:48
jet::ValidityHistogram::ValidityHistogram
ValidityHistogram(const std::string &histName, const CompParametrization::TypeEnum parametrization, const float energyScale, const CompMassDef::TypeEnum massDef)
Definition: ValidityHistogram.cxx:280
jet::InfoHelperPtMassAbsEta
Definition: ValidityHistogram.cxx:119
jet::InfoHelperPtAbsMassEta
Definition: ValidityHistogram.cxx:132
jet::CompParametrization::TypeEnum
TypeEnum
Definition: UncertaintyEnum.h:45
jet::InfoHelperPtMass::clone
virtual InfoHelperPtMass * clone() const
Definition: ValidityHistogram.cxx:97
jet::InfoHelperPtMassEta
Definition: ValidityHistogram.cxx:106
jet::InfoHelperPtAbsMassAbsEta::InfoHelperPtAbsMassAbsEta
InfoHelperPtAbsMassAbsEta(const ValidityHistogram &validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
Definition: ValidityHistogram.cxx:147
jet::UncertaintyHistogram
Definition: UncertaintyHistogram.h:25
jet::InfoHelperPtAbsMass::clone
virtual InfoHelperPtAbsMass * clone() const
Definition: ValidityHistogram.cxx:84
jet::ValidityHistogram::getValidity
bool getValidity(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:431
jet::InfoHelperPtMassEta::InfoHelperPtMassEta
InfoHelperPtMassEta(const ValidityHistogram &validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
Definition: ValidityHistogram.cxx:108
jet::CompParametrization::PtMass
@ PtMass
Definition: UncertaintyEnum.h:51
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
jet::InfoHelperPtAbsEta::InfoHelperPtAbsEta
InfoHelperPtAbsEta(const ValidityHistogram &validHist, const float energyScale)
Definition: ValidityHistogram.cxx:69
jet::InfoHelper
Definition: ValidityHistogram.cxx:21
jet::InfoHelpereLOGmOe::clone
virtual InfoHelpereLOGmOe * clone() const
Definition: ValidityHistogram.cxx:162
jet::InfoHelperPtMassAbsEta::isValid
virtual bool isValid(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:125
jet::CompMassDef::UNKNOWN
@ UNKNOWN
Definition: UncertaintyEnum.h:72
jet::InfoHelpereLOGmOeEta::isValid
virtual bool isValid(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:177
jet::InfoHelper::getAbsMass
double getAbsMass(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:197
jet::InfoHelpereLOGmOeAbsEta::InfoHelpereLOGmOeAbsEta
InfoHelpereLOGmOeAbsEta(const ValidityHistogram &validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
Definition: ValidityHistogram.cxx:186
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
jet::CompParametrization::PtMassEta
@ PtMassEta
Definition: UncertaintyEnum.h:52
jet::CompParametrization::eLOGmOeAbsEta
@ eLOGmOeAbsEta
Definition: UncertaintyEnum.h:58
SG::ConstAccessor::isAvailable
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
jet::InfoHelperPtMassEta::clone
virtual InfoHelperPtMassEta * clone() const
Definition: ValidityHistogram.cxx:110
jet::InfoHelperPtAbsEta::isValid
virtual bool isValid(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:73
ValidityHistogram.h
jet::InfoHelperPtAbsMass
Definition: ValidityHistogram.cxx:80
jet::InfoHelperPtAbsMassEta::InfoHelperPtAbsMassEta
InfoHelperPtAbsMassEta(const ValidityHistogram &validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
Definition: ValidityHistogram.cxx:134
jet::InfoHelpereLOGmOeEta::InfoHelpereLOGmOeEta
InfoHelpereLOGmOeEta(const ValidityHistogram &validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
Definition: ValidityHistogram.cxx:173
jet::InfoHelper::~InfoHelper
virtual ~InfoHelper()=default
jet::InfoHelper::getMassOverPt
double getMassOverPt(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:221
jet::InfoHelperPtMass::InfoHelperPtMass
InfoHelperPtMass(const ValidityHistogram &validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
Definition: ValidityHistogram.cxx:95
jet::InfoHelpereLOGmOe::InfoHelpereLOGmOe
InfoHelpereLOGmOe(const ValidityHistogram &validHist, const float energyScale, const CompMassDef::TypeEnum massDef)
Definition: ValidityHistogram.cxx:160
jet::InfoHelperPtMassEta::isValid
virtual bool isValid(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:112
LArG4GenerateShowerLib.parametrization
parametrization
Definition: LArG4GenerateShowerLib.py:19
jet::InfoHelperPtAbsEta::clone
virtual InfoHelperPtAbsEta * clone() const
Definition: ValidityHistogram.cxx:71
jet::InfoHelper::isValid
virtual bool isValid(const xAOD::Jet &jet) const =0
TRT_PAI_utils::Interpolate
float Interpolate(const float &xval, const std::vector< float > &xtabulated, const std::vector< float > &ytabulated)
Interpolation function.
Definition: TRT_PAI_utils.cxx:14
jet::InfoHelperPtAbsEta
Definition: ValidityHistogram.cxx:67
jet::InfoHelperPtMass::isValid
virtual bool isValid(const xAOD::Jet &jet) const
Definition: ValidityHistogram.cxx:99