ATLAS Offline Software
Loading...
Searching...
No Matches
TauCalibrateLC.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 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 virtual StatusCode execute(xAOD::TauJet& tau) const override;
36
37
38 private:
39 static const int s_nProngBins = 2;
40
41 std::vector<std::vector<std::unique_ptr<TF1>>> m_calibFunc;
42 std::vector<std::unique_ptr<TH1>> m_slopeNPVHist;
43 std::unique_ptr<TH1> m_etaBinHist = {};
44
46 double m_averageNPV=0;
47
48 Gaudi::Property<std::string> m_calibrationFile{this, "calibrationFile", ""};
49 Gaudi::Property<bool> m_doVertexCorrection{this, "VertexCorrection", true};
50
52 "Key_vertexInputContainer",
53 "PrimaryVertices",
54 "input vertex container key"};
55};
56
57#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 execute(xAOD::TauJet &tau) 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
std::vector< std::unique_ptr< TH1 > > m_slopeNPVHist
Gaudi::Property< bool > m_doVertexCorrection
TauRecToolBase(const std::string &name)
TauJet_v3 TauJet
Definition of the current "tau version".