ATLAS Offline Software
SoftElectronDecoratorAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ELECTRON_DECORATOR_ALG_HH
6 #define ELECTRON_DECORATOR_ALG_HH
7 
12 
15 
16 namespace FlavorTagDiscriminants {
17 
19  public:
20  SoftElectronDecoratorAlg(const std::string& name,
21  ISvcLocator* pSvcLocator );
22 
23  virtual StatusCode initialize() override;
24  virtual StatusCode execute(const EventContext& ) const override;
25 
26  private:
27 
28  // Input Containers
30  this, "electronContainer", "Electrons",
31  "Key for the input electron collection"};
33  this, "vertexContainer", "PrimaryVertices",
34  "Key for the input electron collection"};
35 
36  // Decorators for electrons
37 
39  this, "ftag_et", "ftag_et",
40  "Transverse energy of the electron"};
41 
43  this, "ftag_deltaPOverP", "ftag_deltaPOverP",
44  "Momentum lost by the electron track between the perigee and the last measurement point divided by the momentum at the perigee"};
45 
47  this, "ftag_ptVarCone30OverPt", "ftag_ptVarCone30OverPt",
48  "Ratio of isolated pt to pt"};
49 
51  this, "ftag_energyOverP", "ftag_energyOverP",
52  "Ratio of cluster energy energy to track momentum"};
53 
55  this, "ftag_z0AlongBeamspot", "ftag_z0AlongBeamspot",
56  "Electron z0 along beamspot"};
57 
59  this, "ftag_z0AlongBeamspotSignificance", "ftag_z0AlongBeamspotSignificance",
60  "Electron z0 significance along beamspot"};
61 
62  SG::AuxElement::ConstAccessor<float> m_pt_varcone30{"ptvarcone30_Nonprompt_All_MaxWeightTTVALooseCone_pt1000"};
63 
64  const xAOD::Vertex* primary(const xAOD::VertexContainer& vertices) const;
65  };
66 }
67 
68 #endif
SG::WriteDecorHandleKey< xAOD::ElectronContainer >
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
FlavorTagDiscriminants
This file contains "getter" functions used for accessing tagger inputs from the EDM.
Definition: AssociationEnums.h:11
FlavorTagDiscriminants::SoftElectronDecoratorAlg::m_dec_electron_z0_significance
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_z0_significance
Definition: SoftElectronDecoratorAlg.h:58
FlavorTagDiscriminants::SoftElectronDecoratorAlg
Definition: SoftElectronDecoratorAlg.h:18
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:54
SG::ReadHandleKey< xAOD::ElectronContainer >
FlavorTagDiscriminants::SoftElectronDecoratorAlg::initialize
virtual StatusCode initialize() override
Definition: SoftElectronDecoratorAlg.cxx:22
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
FlavorTagDiscriminants::SoftElectronDecoratorAlg::m_dec_electron_energyOverP
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_energyOverP
Definition: SoftElectronDecoratorAlg.h:50
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
ElectronContainer.h
FlavorTagDiscriminants::SoftElectronDecoratorAlg::m_dec_electron_deltaPOverP
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_deltaPOverP
Definition: SoftElectronDecoratorAlg.h:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
FlavorTagDiscriminants::SoftElectronDecoratorAlg::primary
const xAOD::Vertex * primary(const xAOD::VertexContainer &vertices) const
Definition: SoftElectronDecoratorAlg.cxx:135
FlavorTagDiscriminants::SoftElectronDecoratorAlg::m_ElectronContainerKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_ElectronContainerKey
Definition: SoftElectronDecoratorAlg.h:29
FlavorTagDiscriminants::SoftElectronDecoratorAlg::SoftElectronDecoratorAlg
SoftElectronDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SoftElectronDecoratorAlg.cxx:18
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
AthReentrantAlgorithm.h
FlavorTagDiscriminants::SoftElectronDecoratorAlg::m_VertexContainerKey
SG::ReadHandleKey< xAOD::VertexContainer > m_VertexContainerKey
Definition: SoftElectronDecoratorAlg.h:32
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
FlavorTagDiscriminants::SoftElectronDecoratorAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition: SoftElectronDecoratorAlg.cxx:60
VertexContainer.h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
FlavorTagDiscriminants::SoftElectronDecoratorAlg::m_dec_electron_z0
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_z0
Definition: SoftElectronDecoratorAlg.h:54
FlavorTagDiscriminants::SoftElectronDecoratorAlg::m_dec_electron_et
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_et
Definition: SoftElectronDecoratorAlg.h:38
AuxElement.h
Base class for elements of a container that can have aux data.
FlavorTagDiscriminants::SoftElectronDecoratorAlg::m_dec_electron_isoPtOverPt
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_isoPtOverPt
Definition: SoftElectronDecoratorAlg.h:46
FlavorTagDiscriminants::SoftElectronDecoratorAlg::m_pt_varcone30
SG::AuxElement::ConstAccessor< float > m_pt_varcone30
Definition: SoftElectronDecoratorAlg.h:62