ATLAS Offline Software
Loading...
Searching...
No Matches
ElectronSiHitDecAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6// ElectronSiHitDecAlg
7// Author: RD Schaffer, R.D.Schaffer@cern.ch
8// Algorithm to decorate SiHit electrons with extra information
9// from tracks and clusters to avoid writing them out
11
12#ifndef ASG_ANALYSIS_ALGORITHMS__ELECTRON_SIHIT_DEC_ALGORITHM__H
13#define ASG_ANALYSIS_ALGORITHMS__ELECTRON_SIHIT_DEC_ALGORITHM__H
14
22
23
24namespace CP
25{
28 {
30 public:
32
33 StatusCode initialize() override;
34 StatusCode execute(const EventContext& ctx) override;
35
36 private:
37
40
41 // EventInfo key
42 SysReadHandle<xAOD::EventInfo> m_eventInfoKey{this, "EventInfo", "EventInfo", "Input event information"};
43
44 // Primary vertex key
45 SysReadHandle<xAOD::VertexContainer> m_vertexKey{this, "VertexContainer", "PrimaryVertices", "Primary vertex container"};
46
47 // Electron container key
48 SysReadHandle<xAOD::ElectronContainer> m_electronContainerKey{this, "ElectronContainer", "AnalysisSiHitElectrons", "Sihit electrons to decorate"};
49
50 // Muon container key for event selection
51 SysReadHandle<xAOD::MuonContainer> m_analMuonContKey{this, "AnalMuonContKey", "AnalysisMuons", "Muons use for event selection to decorate SiHit electrons"};
52
53 // Electron container key for event selection
54 SysReadHandle<xAOD::ElectronContainer> m_analElectronContKey{this, "AnalElectronContKey", "AnalysisElectrons", "Electrons use for event selection to decorate SiHit electrons"};
55
56 // Apply event veto - require at least two muons or electrons to be present
57 Gaudi::Property<bool> m_requireTwoLeptons {this, "RequireTwoLeptons", true, "boolean to select events with at least a pair of electrons or muons which pass the basic cuts, i.e. are in their corresponding analysis containers"};
58
60 CP::SysWriteDecorHandle<float> m_z0stheta{this, "z0stheta", "z0stheta", "the decoration for z0 x sin(theta) of electron track"};
61 CP::SysWriteDecorHandle<float> m_d0Normalized{this, "d0Normalized", "d0Normalized", "the decoration for d0Normalized of the electron track"};
62 CP::SysWriteDecorHandle<int> m_nInnerExpPix{this, "nInnerExpPix", "nInnerExpPix", "the decoration for number of inner pixel hits of the electron track"};
63 CP::SysWriteDecorHandle<float> m_clEta{this, "clEta", "clEta", "the decoration for eta of the electron cluster"};
64 CP::SysWriteDecorHandle<float> m_clPhi{this, "clPhi", "clPhi", "the decoration for phi of the electron cluster"};
65
67 CP::SysWriteDecorHandle<char> m_evtOKDec{this, "selectionName", "", "the decoration flagging SiHit electrons in events with at least one pair of analysis electrons or muons"};
68
69 };
70}
71#endif
this decorates electrons with extra information from the track and cluster to avoid writing them out ...
StatusCode initialize() override
SysReadHandle< xAOD::ElectronContainer > m_electronContainerKey
SysReadHandle< xAOD::VertexContainer > m_vertexKey
CP::SysWriteDecorHandle< float > m_clEta
CP::SysWriteDecorHandle< float > m_z0stheta
Decorators for the extra information from clusters and tracks for SiHit electrons.
CP::SysWriteDecorHandle< int > m_nInnerExpPix
CP::SysWriteDecorHandle< float > m_d0Normalized
SysReadHandle< xAOD::ElectronContainer > m_analElectronContKey
CP::SysWriteDecorHandle< char > m_evtOKDec
Decorator for SiHit electron for event requirement on a pair of leptons.
CP::SysWriteDecorHandle< float > m_clPhi
Gaudi::Property< bool > m_requireTwoLeptons
SysReadHandle< xAOD::EventInfo > m_eventInfoKey
SysReadHandle< xAOD::MuonContainer > m_analMuonContKey
SysListHandle m_systematicsList
the systematics list we run
a class managing the property to configure the list of systematics to process
a data handle for reading systematics varied input data
a data handle for reading systematics varied input data
the (new) base class for EventLoop algorithms
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
virtual::StatusCode execute()
execute this algorithm
Select isolated Photons, Electrons and Muons.