ATLAS Offline Software
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
TrigEgammaMonitorTopoAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
=========================================================================
Definition: TrigEgammaMonitorTopoAlgorithm.cxx:39
TrigEgammaMonitorTopoAlgorithm::m_offPhotonKey
SG::ReadHandleKey< xAOD::PhotonContainer > m_offPhotonKey
Definition: TrigEgammaMonitorTopoAlgorithm.h:47
TrigEgammaMonitorTopoAlgorithm::make_legs
void make_legs(const std::string &trigger, std::string key_leg0, std::string key_leg1, std::vector< Legs > &) const
Get all combinations.
Definition: TrigEgammaMonitorTopoAlgorithm.cxx:162
TrigEgammaMonitorTopoAlgorithm::Legs::leg0
const xAOD::IParticle * leg0
Definition: TrigEgammaMonitorTopoAlgorithm.h:20
TrigEgammaMonitorTopoAlgorithm::m_dR
Gaudi::Property< float > m_dR
Min Delta R between online and offline.
Definition: TrigEgammaMonitorTopoAlgorithm.h:44
SG::ReadHandleKey< xAOD::ElectronContainer >
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
TrigEgammaMonitorTopoAlgorithm::m_offElectronKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_offElectronKey
Event Wise offline ElectronContainer Access and end iterator.
Definition: TrigEgammaMonitorTopoAlgorithm.h:46
TrigEgammaMonitorTopoAlgorithm::initialize
virtual StatusCode initialize() override
=========================================================================
Definition: TrigEgammaMonitorTopoAlgorithm.cxx:25
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrigEgammaMonitorTopoAlgorithm::TrigEgammaMonitorTopoAlgorithm
TrigEgammaMonitorTopoAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrigEgammaMonitorTopoAlgorithm.cxx:14
IParticleContainer.h
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TrigEgammaMonitorTopoAlgorithm::Legs
Definition: TrigEgammaMonitorTopoAlgorithm.h:19
TrigEgammaMonitorBaseAlgorithm::match
const ToolHandle< TrigEgammaMatchingToolMT > & match() const
Get the e/g match tool.
Definition: TrigEgammaMonitorBaseAlgorithm.h:135
TrigEgammaMonitorTopoAlgorithm
Definition: TrigEgammaMonitorTopoAlgorithm.h:16
TrigEgammaMonitorBaseAlgorithm
Definition: TrigEgammaMonitorBaseAlgorithm.h:66
TrigEgammaMonitorBaseAlgorithm.h
TrigEgammaMonitorTopoAlgorithm::~TrigEgammaMonitorTopoAlgorithm
virtual ~TrigEgammaMonitorTopoAlgorithm() override
=========================================================================
Definition: TrigEgammaMonitorTopoAlgorithm.cxx:20
TrigEgammaMonitorTopoAlgorithm::m_trigListConfig
Gaudi::Property< std::vector< std::map< std::string, std::string > > > m_trigListConfig
List of configurations.
Definition: TrigEgammaMonitorTopoAlgorithm.h:42
TrigEgammaMonitorTopoAlgorithm::Legs::leg1
const xAOD::IParticle * leg1
Definition: TrigEgammaMonitorTopoAlgorithm.h:21