ATLAS Offline Software
Loading...
Searching...
No Matches
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
40 SG::ReadHandleKey < xAOD::PhotonContainer > m_inputPhotonsKeys{
41 this,
42 "TLAInputPhotonContainer",
43 "Photons",
44 "input Photon container name"
45 };
46
47 SG::WriteHandleKey < xAOD::PhotonContainer > m_TLAOutPhotonsKey{
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
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteHandleKey< xAOD::PhotonContainer > m_TLAOutPhotonsKey
virtual StatusCode initialize() override
Gaudi::Property< float > m_photonPtThreshold
virtual StatusCode execute(const EventContext &ctx) const override
TrigEgammaTLAPhotonReAlgo(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< xAOD::PhotonContainer > m_inputPhotonsKeys
Gaudi::Property< int > m_maxNPhotons