ATLAS Offline Software
Loading...
Searching...
No Matches
SoftElectronDecoratorAlg.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 ELECTRON_DECORATOR_ALG_HH
6#define ELECTRON_DECORATOR_ALG_HH
7
12
15
16namespace 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", m_ElectronContainerKey, "ftag_et",
40 "Transverse energy of the electron"};
41
43 this, "ftag_deltaPOverP", m_ElectronContainerKey, "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", m_ElectronContainerKey, "ftag_ptVarCone30OverPt",
48 "Ratio of isolated pt to pt"};
49
51 this, "ftag_energyOverP", m_ElectronContainerKey, "ftag_energyOverP",
52 "Ratio of cluster energy energy to track momentum"};
53
55 this, "ftag_z0AlongBeamspot", m_ElectronContainerKey, "ftag_z0AlongBeamspot",
56 "Electron z0 along beamspot"};
57
59 this, "ftag_z0AlongBeamspotSignificance", m_ElectronContainerKey, "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
Base class for elements of a container that can have aux data.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
SG::AuxElement::ConstAccessor< float > m_pt_varcone30
SG::ReadHandleKey< xAOD::VertexContainer > m_VertexContainerKey
const xAOD::Vertex * primary(const xAOD::VertexContainer &vertices) const
virtual StatusCode execute(const EventContext &) const override
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_deltaPOverP
SG::ReadHandleKey< xAOD::ElectronContainer > m_ElectronContainerKey
SoftElectronDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_isoPtOverPt
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_z0
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_energyOverP
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_z0_significance
SG::WriteDecorHandleKey< xAOD::ElectronContainer > m_dec_electron_et
SG::ConstAccessor< T, ALLOC > ConstAccessor
Definition AuxElement.h:569
Property holding a SG store/key/clid from which a ReadHandle is made.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Vertex_v1 Vertex
Define the latest version of the vertex class.