ATLAS Offline Software
JetCalibrationStep.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 
3 /*
4 JetCalibrationStep
5 A base class for individual pieces of the jet calibration sequence
6 
7 Author: Bill Balunas (balunas@cern.ch)
8 */
9 
10 #ifndef JETCALIBTOOLS_JETCALIBRATIONSTEP_H
11 #define JETCALIBTOOLS_JETCALIBRATIONSTEP_H 1
12 
13 #include "xAODJet/JetContainer.h"
16 #include "AsgMessaging/Check.h"
18 
20 {
21 
22  public:
23 
24  JetCalibrationStep(const char* name = "JetCalibrationStep");
25  virtual ~JetCalibrationStep();
26 
27  virtual StatusCode initialize() = 0;
28  virtual StatusCode calibrate(xAOD::Jet&, JetEventInfo&) const = 0;
29 
30  virtual void setUnitsGeV(bool useGeV) { if (useGeV) m_GeV=1; else m_GeV=1000; }
31 
32  virtual StatusCode getNominalResolutionData(const xAOD::Jet&, double&) const;
33  virtual StatusCode getNominalResolutionMC(const xAOD::Jet&, double&) const;
34 
35 protected:
36 
37  virtual StatusCode setStartP4(xAOD::Jet& jet) const;
38 
39 protected:
40  double m_GeV;
41  std::string m_jetStartScale;
42  std::string m_name;
43 
44 };
45 
46 #endif
JetCalibrationStep::~JetCalibrationStep
virtual ~JetCalibrationStep()
Check.h
JetCalibrationStep::setStartP4
virtual StatusCode setStartP4(xAOD::Jet &jet) const
Definition: JetCalibrationStep.cxx:21
JetCalibrationStep::getNominalResolutionMC
virtual StatusCode getNominalResolutionMC(const xAOD::Jet &, double &) const
Definition: JetCalibrationStep.cxx:38
JetCalibrationStep::calibrate
virtual StatusCode calibrate(xAOD::Jet &, JetEventInfo &) const =0
JetCalibrationStep::m_name
std::string m_name
Definition: JetCalibrationStep.h:42
JetCalibrationStep::initialize
virtual StatusCode initialize()=0
AsgMessaging.h
JetEventInfo
Definition: JetEventInfo.h:8
JetCalibrationStep::JetCalibrationStep
JetCalibrationStep(const char *name="JetCalibrationStep")
Definition: JetCalibrationStep.cxx:12
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
JetCalibrationStep::setUnitsGeV
virtual void setUnitsGeV(bool useGeV)
Definition: JetCalibrationStep.h:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JetCalibrationStep::getNominalResolutionData
virtual StatusCode getNominalResolutionData(const xAOD::Jet &, double &) const
Definition: JetCalibrationStep.cxx:33
StatusCode.h
JetEventInfo.h
JetCalibrationStep::m_jetStartScale
std::string m_jetStartScale
Definition: JetCalibrationStep.h:41
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
asg::AsgMessaging
Class mimicking the AthMessaging class from the offline software.
Definition: AsgMessaging.h:40
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
JetContainer.h
JetCalibrationStep::m_GeV
double m_GeV
Definition: JetCalibrationStep.h:40
JetCalibrationStep
Definition: JetCalibrationStep.h:20