ATLAS Offline Software
TauCellVariables.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TAURECTOOLS_TAUCELLVARIABLES_H
6 #define TAURECTOOLS_TAUCELLVARIABLES_H
7 
9 
17 
18  public:
19 
21 
23  TauCellVariables(const std::string& name);
24 
26  virtual ~TauCellVariables() = default;
27 
29  virtual StatusCode execute(xAOD::TauJet& pTau) const override;
30 
31  private:
32 
34  bool isEMLayer(const CaloSampling::CaloSample& calo) const;
35 
37  bool isStripLayer(const CaloSampling::CaloSample& calo) const;
38 
39  Gaudi::Property<double> m_stripEthr {this, "StripEthreshold", 0.2 * Gaudi::Units::GeV, "energy threshould for strip cell"};
40  Gaudi::Property<double> m_cellCone {this, "CellCone", 0.2, "outer cone for cells used in calculation"};
41  Gaudi::Property<bool> m_doVertexCorrection {this, "VertexCorrection", true, "switch of vertex correction"};
42 };
43 
44 //______________________________________________________________________________
45 inline bool TauCellVariables::isEMLayer(const CaloSampling::CaloSample& calo) const {
46  if ((calo == CaloSampling::PreSamplerB) ||
47  (calo == CaloSampling::PreSamplerE) ||
48  (calo == CaloSampling::EMB1) ||
49  (calo == CaloSampling::EME1) ||
50  (calo == CaloSampling::EMB2) ||
51  (calo == CaloSampling::EME2)) {
52  return true;
53  }
54  else {
55  return false;
56  }
57 }
58 
59 //______________________________________________________________________________
61  if ((calo == CaloSampling::EMB1) ||
62  (calo == CaloSampling::EME1)) {
63  return true;
64  }
65  else {
66  return false;
67  }
68 }
69 
70 #endif // TAURECTOOLS_TAUCELLVARIABLES_H
GeV
#define GeV
Definition: PhysicsAnalysis/TauID/TauAnalysisTools/Root/HelperFunctions.cxx:17
constants.EMB1
int EMB1
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:53
TauRecToolBase.h
TauRecToolBase
The base class for all tau tools.
Definition: TauRecToolBase.h:21
constants.EMB2
int EMB2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:54
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
TauCellVariables::m_doVertexCorrection
Gaudi::Property< bool > m_doVertexCorrection
Definition: TauCellVariables.h:41
TauCellVariables::m_cellCone
Gaudi::Property< double > m_cellCone
Definition: TauCellVariables.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::TauJet_v3
Class describing a tau jet.
Definition: TauJet_v3.h:41
TauCellVariables::m_stripEthr
Gaudi::Property< double > m_stripEthr
Definition: TauCellVariables.h:39
constants.EME1
int EME1
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:55
TauCellVariables::~TauCellVariables
virtual ~TauCellVariables()=default
Destructor.
TauCellVariables::ASG_TOOL_CLASS2
ASG_TOOL_CLASS2(TauCellVariables, TauRecToolBase, ITauToolBase)
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TauCellVariables
Calculate tau calorimeter variables from cell information.
Definition: TauCellVariables.h:16
TauCellVariables::isStripLayer
bool isStripLayer(const CaloSampling::CaloSample &calo) const
Check whether the CaloSample is a Strip layer.
Definition: TauCellVariables.h:60
ITauToolBase
The base class for all tau tools.
Definition: ITauToolBase.h:30
TauCellVariables::execute
virtual StatusCode execute(xAOD::TauJet &pTau) const override
Perform the calculation of cell variables for each tau candidate.
Definition: TauCellVariables.cxx:24
CaloCell_ID_FCS::PreSamplerE
@ PreSamplerE
Definition: FastCaloSim_CaloCell_ID.h:23
CaloCell_ID_FCS::PreSamplerB
@ PreSamplerB
Definition: FastCaloSim_CaloCell_ID.h:19
TauCellVariables::isEMLayer
bool isEMLayer(const CaloSampling::CaloSample &calo) const
Check whether the CaloSample is a EM layer.
Definition: TauCellVariables.h:45
TauCellVariables::TauCellVariables
TauCellVariables(const std::string &name)
Constructor.
Definition: TauCellVariables.cxx:18
constants.EME2
int EME2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:56