ATLAS Offline Software
TrigEgammaTLAPhotonReAlgo.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 TrigEgammaTLAPhotonReAlgo_h
6 #define TrigEgammaTLAPhotonReAlgo_h
7 
8 
9 #include "Gaudi/Property.h"
10 
11 // athena stuff
12 #include "GaudiKernel/ToolHandle.h"
13 
14 // Base class
18 
19 // trigger EDM
21 #include "xAODEgamma/Photon.h"
24 
25 
27 
28  public:
29  TrigEgammaTLAPhotonReAlgo(const std::string & name, ISvcLocator* pSvcLocator);
30 
31  virtual StatusCode initialize() override;
32  virtual StatusCode execute(const EventContext& ctx) const override;
33 
34 
35  private:
36  // declaration of the object keys necessary for accessing data
37  // This initializer list syntax also informs the scheduler of the
38  // data dependency, obviating the need for a separate declareProperty(...)
39 
41  this,
42  "TLAInputPhotonContainer",
43  "Photons",
44  "input Photon container name"
45  };
46 
48  this,
49  "TLAOutputPhotonContainer",
50  "TLAPhotons",
51  "output Photon container name"
52  };
53 
54  Gaudi::Property<float> m_photonPtThreshold {
55  this,
56  "photonPtThreshold", // name
57  0. , // default value
58  "Threshold for saving Photons in TLA container"
59  };
60 
61  Gaudi::Property<int> m_maxNPhotons {
62  this,
63  "maxNPhotons",
64  -1 ,
65  "Maximum number of Photons saved in TLA container"
66  };
67 
68 
69 };
70 
71 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TrigEgammaTLAPhotonReAlgo::m_TLAOutPhotonsKey
SG::WriteHandleKey< xAOD::PhotonContainer > m_TLAOutPhotonsKey
Definition: TrigEgammaTLAPhotonReAlgo.h:47
TrigEgammaTLAPhotonReAlgo
Definition: TrigEgammaTLAPhotonReAlgo.h:26
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
TrigEgammaTLAPhotonReAlgo::m_photonPtThreshold
Gaudi::Property< float > m_photonPtThreshold
Definition: TrigEgammaTLAPhotonReAlgo.h:54
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
TrigEgammaTLAPhotonReAlgo::TrigEgammaTLAPhotonReAlgo
TrigEgammaTLAPhotonReAlgo(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrigEgammaTLAPhotonReAlgo.cxx:35
TrigPhoton.h
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
Photon.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrigPhotonContainer.h
AthReentrantAlgorithm.h
TrigEgammaTLAPhotonReAlgo::m_maxNPhotons
Gaudi::Property< int > m_maxNPhotons
Definition: TrigEgammaTLAPhotonReAlgo.h:61
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrigEgammaTLAPhotonReAlgo::m_inputPhotonsKeys
SG::ReadHandleKey< xAOD::PhotonContainer > m_inputPhotonsKeys
Definition: TrigEgammaTLAPhotonReAlgo.h:40
TrigEgammaTLAPhotonReAlgo::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: TrigEgammaTLAPhotonReAlgo.cxx:63
TrigEgammaTLAPhotonReAlgo::initialize
virtual StatusCode initialize() override
Definition: TrigEgammaTLAPhotonReAlgo.cxx:41
PhotonContainer.h