ATLAS Offline Software
Loading...
Searching...
No Matches
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"
10#include "AsgTools/ToolHandle.h"
16#include <atomic>
17
18//class ForwardElectronToolsTestAlg : public AthAlgorithm {
20public:
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
27private:
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
38 this, "ElectronContainerKey", "ForwardElectrons", ""};
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
Property holding a SG store/key/clid from which a ReadHandle is made.
the base class for EventLoop reentrant algorithms
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronKey
ToolHandle< IAsgElectronLikelihoodTool > m_tightTool
virtual StatusCode finalize() override
ForwardElectronToolsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual ~ForwardElectronToolsTestAlg()=default
virtual StatusCode execute(const EventContext &ctx) const override
ToolHandle< IAsgElectronLikelihoodTool > m_looseTool
ToolHandle< AsgForwardElectronCalibrationTool > m_calibTool
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthKey
virtual StatusCode initialize() override
ToolHandle< IAsgElectronLikelihoodTool > m_mediumTool
Property holding a SG store/key/clid from which a ReadHandle is made.