ATLAS Offline Software
Loading...
Searching...
No Matches
TauCellVariables.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_TAUCELLVARIABLES_H
6#define TAURECTOOLS_TAUCELLVARIABLES_H
7
9
15
17
18 public:
19
21
23 TauCellVariables(const std::string& name);
24
26 virtual ~TauCellVariables() = default;
27
30 virtual StatusCode executeTool(xAOD::TauJet& pTau,
31 const EventContext& ctx) const override;
32
33 private:
34
36 bool isEMLayer(const CaloSampling::CaloSample& calo) const;
37
38 Gaudi::Property<double> m_cellCone {this, "CellCone", 0.2, "outer cone for cells used in calculation"};
39 Gaudi::Property<bool> m_doVertexCorrection {this, "VertexCorrection", true, "switch of vertex correction"};
40};
41
42//______________________________________________________________________________
44 if ((calo == CaloSampling::PreSamplerB) ||
45 (calo == CaloSampling::PreSamplerE) ||
46 (calo == CaloSampling::EMB1) ||
47 (calo == CaloSampling::EME1) ||
48 (calo == CaloSampling::EMB2) ||
49 (calo == CaloSampling::EME2)) {
50 return true;
51 }
52 else {
53 return false;
54 }
55}
56
57#endif // TAURECTOOLS_TAUCELLVARIABLES_H
The base class for all tau tools.
bool isEMLayer(const CaloSampling::CaloSample &calo) const
Check whether the CaloSample is a EM layer.
Gaudi::Property< double > m_cellCone
Gaudi::Property< bool > m_doVertexCorrection
virtual StatusCode executeTool(xAOD::TauJet &pTau, const EventContext &ctx) const override
Execute - called for each tau candidate.
TauCellVariables(const std::string &name)
Constructor.
virtual ~TauCellVariables()=default
Destructor.
ASG_TOOL_CLASS2(TauCellVariables, TauRecToolBase, ITauToolBase)
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