ATLAS Offline Software
Loading...
Searching...
No Matches
TrigEgammaMonitorTopoAlgorithm.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TrigEgammaMonitorTopoAlgorithm_H
6#define TrigEgammaMonitorTopoAlgorithm_H
7
8
11
12
13
14
16{
17
18
19 struct Legs{
20 const xAOD::IParticle *leg0; // online electron leg 0
21 const xAOD::IParticle *leg1; // online electron leg 1
22 };
23
24 public:
25
26 TrigEgammaMonitorTopoAlgorithm( const std::string& name, ISvcLocator* pSvcLocator );
27
28 virtual ~TrigEgammaMonitorTopoAlgorithm() override;
29
30 virtual StatusCode initialize() override;
31
32 virtual StatusCode fillHistograms( const EventContext& ctx) const override;
33
34
35
36 private:
37
42 Gaudi::Property<std::vector<std::map<std::string, std::string>>> m_trigListConfig{this, "TriggerListConfig", {}};
44 Gaudi::Property<float> m_dR{this, "DeltaR", 0.07};
46 SG::ReadHandleKey<xAOD::ElectronContainer> m_offElectronKey{ this, "ElectronKey", "Electrons", ""};
47 SG::ReadHandleKey<xAOD::PhotonContainer> m_offPhotonKey{ this, "PhotonKey", "Photons", ""};
48
50 void make_legs( const std::string& trigger, std::string key_leg0, std::string key_leg1, std::vector<Legs> &) const;
51 bool match( const xAOD::IParticleContainer &container,const xAOD::IParticle *part_on , const xAOD::IParticle *&part_off) const;
52
53};
54
55#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
TrigEgammaMonitorBaseAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
const ToolHandle< TrigEgammaMatchingToolMT > & match() const
Get the e/g match tool.
virtual StatusCode fillHistograms(const EventContext &ctx) const override
=========================================================================
TrigEgammaMonitorTopoAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< float > m_dR
Min Delta R between online and offline.
virtual ~TrigEgammaMonitorTopoAlgorithm() override
=========================================================================
SG::ReadHandleKey< xAOD::PhotonContainer > m_offPhotonKey
void make_legs(const std::string &trigger, std::string key_leg0, std::string key_leg1, std::vector< Legs > &) const
Get all combinations.
Gaudi::Property< std::vector< std::map< std::string, std::string > > > m_trigListConfig
List of configurations.
SG::ReadHandleKey< xAOD::ElectronContainer > m_offElectronKey
Event Wise offline ElectronContainer Access and end iterator.
virtual StatusCode initialize() override
=========================================================================
Class providing the definition of the 4-vector interface.
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.