ATLAS Offline Software
MonitorFwdElectronAlgorithm.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 
4  Author : B. Laforge (laforge@lpnhe.in2p3.fr)
5  4 May 2020
6 */
7 
8 
9 #ifndef MonitorFwdElectronAlgorithm_H
10 #define MonitorFwdElectronAlgorithm_H
11 
14 
15 #include "xAODEgamma/Electron.h"
18 
19 #include <string>
20 
22 public:
23  MonitorFwdElectronAlgorithm( const std::string& name, ISvcLocator* pSvcLocator );
24  virtual ~MonitorFwdElectronAlgorithm() = default;
25  virtual StatusCode initialize() override;
26  StatusCode fillHistograms( const EventContext& ctx ) const override;
27 
28  enum Regions : int { ENDCAP=0, FORWARD, NREGIONS };
29 
30 private:
31 
32  SG::ReadHandleKey<xAOD::ElectronContainer> m_ParticleContainerKey {this, "ParticleContainerName", "ForwardElectrons", "Name of electron container" };
33  Gaudi::Property<std::string> m_ParticlePrefix {this,"ParticlePrefix","FwdElectron","Name of the particle prefix to be used to define hists"};
34  Gaudi::Property<std::string> m_RecoName {this,"RecoName","LHTight","Name of particle flavor in egamma reco"};
35  Gaudi::Property<std::string> m_WithTrigger {this,"WithTrigger","","Name extension when electrons are chosen from triggered events"};
36 
37  Regions GetRegion(Float_t eta) const {
38  Float_t aeta = fabs(eta);
39  // check if object is in barrel
40  if( aeta < 3.2 ) return MonitorFwdElectronAlgorithm::ENDCAP;
42  }
43 
44 };
45 #endif
MonitorFwdElectronAlgorithm::GetRegion
Regions GetRegion(Float_t eta) const
Definition: MonitorFwdElectronAlgorithm.h:37
MonitorFwdElectronAlgorithm::FORWARD
@ FORWARD
Definition: MonitorFwdElectronAlgorithm.h:28
MonitorFwdElectronAlgorithm::Regions
Regions
Definition: MonitorFwdElectronAlgorithm.h:28
MonitorFwdElectronAlgorithm::~MonitorFwdElectronAlgorithm
virtual ~MonitorFwdElectronAlgorithm()=default
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
ElectronxAODHelpers.h
MonitorFwdElectronAlgorithm::m_RecoName
Gaudi::Property< std::string > m_RecoName
Definition: MonitorFwdElectronAlgorithm.h:34
MonitorFwdElectronAlgorithm::m_WithTrigger
Gaudi::Property< std::string > m_WithTrigger
Definition: MonitorFwdElectronAlgorithm.h:35
SG::ReadHandleKey< xAOD::ElectronContainer >
MonitorFwdElectronAlgorithm::m_ParticleContainerKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_ParticleContainerKey
Definition: MonitorFwdElectronAlgorithm.h:32
MonitorFwdElectronAlgorithm::m_ParticlePrefix
Gaudi::Property< std::string > m_ParticlePrefix
Definition: MonitorFwdElectronAlgorithm.h:33
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
ElectronContainer.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
MonitorFwdElectronAlgorithm::MonitorFwdElectronAlgorithm
MonitorFwdElectronAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MonitorFwdElectronAlgorithm.cxx:10
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
MonitorFwdElectronAlgorithm::ENDCAP
@ ENDCAP
Definition: MonitorFwdElectronAlgorithm.h:28
MonitorFwdElectronAlgorithm::fillHistograms
StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: MonitorFwdElectronAlgorithm.cxx:22
MonitorFwdElectronAlgorithm::NREGIONS
@ NREGIONS
Definition: MonitorFwdElectronAlgorithm.h:28
MonitorFwdElectronAlgorithm
Definition: MonitorFwdElectronAlgorithm.h:21
Electron.h
MonitorFwdElectronAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: MonitorFwdElectronAlgorithm.cxx:15