ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
ElectronPhotonID
ElectronPhotonSelectorTools
ElectronPhotonSelectorTools
ForwardElectronToolsTestAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef FORWARDELECTRONTOOLSTESTALG_H
6
#define FORWARDELECTRONTOOLSTESTALG_H
7
8
//#include "AthenaBaseComps/AthAlgorithm.h"
9
#include "
AnaAlgorithm/AnaReentrantAlgorithm.h
"
10
#include "
AsgTools/ToolHandle.h
"
11
#include "
AsgDataHandles/ReadHandleKey.h
"
12
#include "
xAODEgamma/ElectronContainer.h
"
13
#include "
xAODTruth/TruthParticleContainer.h
"
14
#include "
EgammaAnalysisInterfaces/IAsgElectronLikelihoodTool.h
"
15
#include "
ElectronPhotonSelectorTools/AsgForwardElectronCalibrationTool.h
"
16
#include <atomic>
17
18
//class ForwardElectronToolsTestAlg : public AthAlgorithm {
19
class
ForwardElectronToolsTestAlg
:
public
EL::AnaReentrantAlgorithm
{
20
public
:
21
ForwardElectronToolsTestAlg
(
const
std::string& name, ISvcLocator* pSvcLocator) ;
22
virtual
~ForwardElectronToolsTestAlg
() =
default
;
23
virtual
StatusCode
initialize
()
override
;
24
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
25
virtual
StatusCode
finalize
()
override
;
26
27
private
:
28
ToolHandle<AsgForwardElectronCalibrationTool>
m_calibTool
{
29
this
,
"CalibrationTool"
,
"FwdCalibTool"
,
""
};
30
ToolHandle<IAsgElectronLikelihoodTool>
m_looseTool
{
31
this
,
"LooseTool"
,
"FwdSelectorTool_Loose"
,
""
};
32
ToolHandle<IAsgElectronLikelihoodTool>
m_mediumTool
{
33
this
,
"MediumTool"
,
"FwdSelectorTool_Medium"
,
""
};
34
ToolHandle<IAsgElectronLikelihoodTool>
m_tightTool
{
35
this
,
"TightTool"
,
"FwdSelectorTool_Tight"
,
""
};
36
37
SG::ReadHandleKey<xAOD::ElectronContainer>
m_electronKey
{
38
this
,
"ElectronContainerKey"
,
"ForwardElectrons"
,
""
};
39
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_truthKey
{
40
this
,
"TruthParticleKey"
,
"TruthParticles"
,
""
};
41
42
mutable
std::atomic<long>
m_nEvents
{0},
m_nElectrons
{0};
43
mutable
std::atomic<long>
m_nLoose
{0},
m_nMedium
{0},
m_nTight
{0};
44
};
45
46
#endif
AnaReentrantAlgorithm.h
AsgForwardElectronCalibrationTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ElectronContainer.h
TruthParticleContainer.h
IAsgElectronLikelihoodTool.h
ToolHandle.h
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition
AnaReentrantAlgorithm.h:51
ForwardElectronToolsTestAlg::m_electronKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronKey
Definition
ForwardElectronToolsTestAlg.h:37
ForwardElectronToolsTestAlg::m_nTight
std::atomic< long > m_nTight
Definition
ForwardElectronToolsTestAlg.h:43
ForwardElectronToolsTestAlg::m_nMedium
std::atomic< long > m_nMedium
Definition
ForwardElectronToolsTestAlg.h:43
ForwardElectronToolsTestAlg::m_tightTool
ToolHandle< IAsgElectronLikelihoodTool > m_tightTool
Definition
ForwardElectronToolsTestAlg.h:34
ForwardElectronToolsTestAlg::finalize
virtual StatusCode finalize() override
Definition
ForwardElectronToolsTestAlg.cxx:192
ForwardElectronToolsTestAlg::ForwardElectronToolsTestAlg
ForwardElectronToolsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
ForwardElectronToolsTestAlg.cxx:13
ForwardElectronToolsTestAlg::~ForwardElectronToolsTestAlg
virtual ~ForwardElectronToolsTestAlg()=default
ForwardElectronToolsTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
ForwardElectronToolsTestAlg.cxx:38
ForwardElectronToolsTestAlg::m_looseTool
ToolHandle< IAsgElectronLikelihoodTool > m_looseTool
Definition
ForwardElectronToolsTestAlg.h:30
ForwardElectronToolsTestAlg::m_calibTool
ToolHandle< AsgForwardElectronCalibrationTool > m_calibTool
Definition
ForwardElectronToolsTestAlg.h:28
ForwardElectronToolsTestAlg::m_nLoose
std::atomic< long > m_nLoose
Definition
ForwardElectronToolsTestAlg.h:43
ForwardElectronToolsTestAlg::m_truthKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthKey
Definition
ForwardElectronToolsTestAlg.h:39
ForwardElectronToolsTestAlg::initialize
virtual StatusCode initialize() override
Definition
ForwardElectronToolsTestAlg.cxx:18
ForwardElectronToolsTestAlg::m_nEvents
std::atomic< long > m_nEvents
Definition
ForwardElectronToolsTestAlg.h:42
ForwardElectronToolsTestAlg::m_nElectrons
std::atomic< long > m_nElectrons
Definition
ForwardElectronToolsTestAlg.h:42
ForwardElectronToolsTestAlg::m_mediumTool
ToolHandle< IAsgElectronLikelihoodTool > m_mediumTool
Definition
ForwardElectronToolsTestAlg.h:32
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
Generated on
for ATLAS Offline Software by
1.17.0