ATLAS Offline Software
Loading...
Searching...
No Matches
InSituCalibStep.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5*/
6
7// InSituCalibStep.h
8// Header file for class InSituCalibStep
10#ifndef JETCALIBTOOLS_INSITUCALIBSTEP_H
11#define JETCALIBTOOLS_INSITUCALIBSTEP_H 1
12
13#include <string.h>
14
15#include <TString.h>
16#include <TEnv.h>
17
18#include "AsgTools/AsgTool.h"
20#include "AsgTools/ToolHandle.h"
23
25
31
33 : public asg::AsgTool,
34 virtual public IJetCalibStep {
36
37public:
39 InSituCalibStep(const std::string& name = "InSituCalibStep");
40
41 virtual StatusCode initialize() override;
42 virtual StatusCode calibrate(xAOD::JetContainer&) const override;
43
44
45private:
46
47 Gaudi::Property<bool> m_CalibrateMC {this, "CalibrateMC", false, "force Insitu step for MC sample"};
48 Gaudi::Property<bool> m_isMC {this, "isMC", false, "isMC"};
49
50 Gaudi::Property<std::string> m_jetInScale {this, "InScale", "JetGSCScaleMomentum", "Starting jet scale"};
51 Gaudi::Property<std::string> m_jetOutScale {this, "OutScale", "JetInsituScaleMomentum", "Ending jet scale"};
52
53 // Relative calibration (derived with eta intercalibration)
54 ToolHandleArray<JetHelper::IVarTool> m_histTool_EtaInter{this, "HistoReaderEtaInter", {}, "Instance of HistoInput2D for reading histogram"};
55 // Absolute calibration (derived with |eta| < 0.8)
56 ToolHandleArray<JetHelper::IVarTool> m_histTool_Abs{this, "HistoReaderAbs", {}, "Instance of HistoInput1D for reading histogram"};
57 // vector of run numbers
58 Gaudi::Property<std::vector<unsigned int> > m_RunNumBoundaries{this, "RunNumbers", {} ,""};
59 //ReadHandleKey for event info
60 SG::ReadHandleKey<xAOD::EventInfo> m_evtInfoKey{this, "EventInfoKey", "EventInfo"};
61 // Method to get runNumber
62 StatusCode retrieveEventInfo(unsigned int &r) const;
63
64
65};
66#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
ToolHandleArray< JetHelper::IVarTool > m_histTool_Abs
Gaudi::Property< std::string > m_jetInScale
Gaudi::Property< bool > m_CalibrateMC
StatusCode retrieveEventInfo(unsigned int &r) const
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
virtual StatusCode calibrate(xAOD::JetContainer &) const override
Apply calibration to a jet container.
Gaudi::Property< std::string > m_jetOutScale
ToolHandleArray< JetHelper::IVarTool > m_histTool_EtaInter
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
InSituCalibStep(const std::string &name="InSituCalibStep")
Constructor with parameters:
Gaudi::Property< std::vector< unsigned int > > m_RunNumBoundaries
Gaudi::Property< bool > m_isMC
Property holding a SG store/key/clid from which a ReadHandle is made.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
int r
Definition globals.cxx:22
JetContainer_v1 JetContainer
Definition of the current "jet container version".