ATLAS Offline Software
TauElectronVetoVariables.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TAURECTOOLS_TAUELECTRONVETOVARIABLES_H
6 #define TAURECTOOLS_TAUELECTRONVETOVARIABLES_H
7 
9 
11 
12 #include "GaudiKernel/ToolHandle.h"
14 
15 namespace Trk {
16  class IParticleCaloExtensionTool;
17 }
18 
28 
29 public:
30 
32 
33  TauElectronVetoVariables(const std::string& name);
34 
35  virtual ~TauElectronVetoVariables() = default;
36 
37  virtual StatusCode initialize() override;
38 
39  virtual StatusCode execute(xAOD::TauJet& pTau) const override;
40 
41 private:
42 
43  Gaudi::Property<bool> m_doVertexCorrection {this, "VertexCorrection", true, "switch of vertex correction"};
44  Gaudi::Property<bool> m_useOldCalo{this,"useOldCalo",false,"If true, it uses the CaloExtensionTool for calculating track extrapolation. Otherwise, it allows the code to read from the cache created by CaloExtensionBuilderalg."};
45  ToolHandle<Trk::IParticleCaloExtensionTool> m_caloExtensionTool {this,
46  "ParticleCaloExtensionTool", "Trk::ParticleCaloExtensionTool/ParticleCaloExtensionTool", "Tool for calculating track extrapolation"};
48  "tauEVParticleCache", "ParticleCaloExtension", "Name of the particle measurement extrapolation cache for TauEV Algorithm"};
49 };
50 
51 #endif // TAURECTOOLS_TAUELECTRONVETOVARIABLES_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TauElectronVetoVariables::m_useOldCalo
Gaudi::Property< bool > m_useOldCalo
Definition: TauElectronVetoVariables.h:44
TauElectronVetoVariables::~TauElectronVetoVariables
virtual ~TauElectronVetoVariables()=default
ASG_TOOL_CLASS2
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
Definition: AsgToolMacros.h:77
TauRecToolBase.h
TauRecToolBase
The base class for all tau tools.
Definition: TauRecToolBase.h:21
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
TauElectronVetoVariables::m_doVertexCorrection
Gaudi::Property< bool > m_doVertexCorrection
Definition: TauElectronVetoVariables.h:43
TauElectronVetoVariables::m_ParticleCacheKey
SG::ReadHandleKey< CaloExtensionCollection > m_ParticleCacheKey
Definition: TauElectronVetoVariables.h:47
TauElectronVetoVariables::execute
virtual StatusCode execute(xAOD::TauJet &pTau) const override
Execute - called for each tau candidate.
Definition: TauElectronVetoVariables.cxx:44
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
TauElectronVetoVariables::TauElectronVetoVariables
TauElectronVetoVariables(const std::string &name)
Definition: TauElectronVetoVariables.cxx:26
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
TauElectronVetoVariables
Calculate variables sensitive on electrons.
Definition: TauElectronVetoVariables.h:27
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ITauToolBase
The base class for all tau tools.
Definition: ITauToolBase.h:30
CaloExtensionCollection.h
TauElectronVetoVariables::initialize
virtual StatusCode initialize() override
Tool initializer.
Definition: TauElectronVetoVariables.cxx:32
TauElectronVetoVariables::m_caloExtensionTool
ToolHandle< Trk::IParticleCaloExtensionTool > m_caloExtensionTool
Definition: TauElectronVetoVariables.h:45