ATLAS Offline Software
Loading...
Searching...
No Matches
TauCalibrateLC.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TAURECTOOLS_TAUCALIBRATELC_H
6#define TAURECTOOLS_TAUCALIBRATELC_H
7
13
14class TH1;
15class TF1;
16
24
26
27 public:
28
30
31 TauCalibrateLC(const std::string& name="TauCalibrateLC");
33
34 virtual StatusCode initialize() override;
35
37 virtual StatusCode executeTool(xAOD::TauJet& tau,
38 const EventContext& ctx) const override;
39
40
41 private:
42 static const int s_nProngBins = 2;
43
44 std::vector<std::vector<std::unique_ptr<TF1>>> m_calibFunc;
45 std::vector<std::unique_ptr<TH1>> m_slopeNPVHist;
46 std::unique_ptr<TH1> m_etaBinHist = {};
47
49 double m_averageNPV=0;
50
51 Gaudi::Property<std::string> m_calibrationFile{this, "calibrationFile", ""};
52 Gaudi::Property<bool> m_doVertexCorrection{this, "VertexCorrection", true};
53 Gaudi::Property<bool> m_doForceZeroMass{this, "ForceZeroMass", false};
54
56 "Key_vertexInputContainer",
57 "PrimaryVertices",
58 "input vertex container key"};
59};
60
61#endif // TAURECTOOLS_TAUCALIBRATELC_H
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
The base class for all tau tools.
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexInputContainer
Gaudi::Property< std::string > m_calibrationFile
virtual StatusCode executeTool(xAOD::TauJet &tau, const EventContext &ctx) const override
Execute - called for each tau candidate.
TauCalibrateLC(const std::string &name="TauCalibrateLC")
std::unique_ptr< TH1 > m_etaBinHist
static const int s_nProngBins
virtual StatusCode initialize() override
Tool initializer.
std::vector< std::vector< std::unique_ptr< TF1 > > > m_calibFunc
Gaudi::Property< bool > m_doForceZeroMass
std::vector< std::unique_ptr< TH1 > > m_slopeNPVHist
Gaudi::Property< bool > m_doVertexCorrection
TauRecToolBase(const std::string &name)
virtual StatusCode executeTool(xAOD::TauJet &, const EventContext &) const override
Execute - called for each tau candidate.
TauJet_v3 TauJet
Definition of the current "tau version".
Definition TauJet.h:17