ATLAS Offline Software
Loading...
Searching...
No Matches
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
22public:
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
30private:
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
Scalar eta() const
pseudorapidity method
Header file to be included by clients of the Monitored infrastructure.
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
SG::ReadHandleKey< xAOD::ElectronContainer > m_ParticleContainerKey
Regions GetRegion(Float_t eta) const
MonitorFwdElectronAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::string > m_WithTrigger
Gaudi::Property< std::string > m_ParticlePrefix
virtual StatusCode initialize() override
initialize
virtual ~MonitorFwdElectronAlgorithm()=default
StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Gaudi::Property< std::string > m_RecoName
Property holding a SG store/key/clid from which a ReadHandle is made.