ATLAS Offline Software
Loading...
Searching...
No Matches
AsgPhotonIsEMSelector.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5// Dear emacs, this is -*-c++-*-
6
7#ifndef __ASGPHOTONISEMSELECTOR__
8#define __ASGPHOTONISEMSELECTOR__
9
21
22// Atlas includes
24#include "AsgTools/AsgTool.h"
25// Include the interfaces
31
32class EventContext;
33
34namespace Root{
36}
37
39 virtual public IAsgPhotonIsEMSelector
40
41{
44
45 public:
46
48 AsgPhotonIsEMSelector(const std::string& myname);
49
52
54 virtual StatusCode initialize();
55
60 virtual const asg::AcceptInfo& getAcceptInfo() const;
61
63 virtual asg::AcceptData accept( const xAOD::IParticle* part ) const ;
64 virtual asg::AcceptData accept( const EventContext& ctx, const xAOD::IParticle* part ) const ;
65
67 virtual asg::AcceptData accept( const EventContext& ctx, const xAOD::Egamma* part) const ;
68
70 virtual asg::AcceptData accept( const EventContext& ctx, const xAOD::Photon* part ) const ;
71
73 virtual asg::AcceptData accept( const EventContext& ctx, const xAOD::Electron* part ) const ;
74
76 virtual std::string getOperatingPointName( ) const;
77
79 virtual StatusCode execute(const EventContext& ctx, const xAOD::Egamma* eg, unsigned int& isEM) const;
80
81private:
82
84 std::string m_WorkingPoint;
85
87 std::string m_configFile;
88
91
94
98
99 // Skip amboguyity check when emulating the HLT
101
102 // remove TRT converted photon for Run-3
104
105 // To retrieve mu
106 bool m_isMuDep = false;
107 float getMu(const EventContext& ctx) const;
108 int RunNumber(const EventContext& ctx) const;
110 "EventInfo", "EventInfo", "The event info object key" };
111
112}; // End: class definition
113
114#endif
#define ASG_TOOL_CLASS3(CLASSNAME, INT1, INT2, INT3)
Property holding a SG store/key/clid from which a ReadHandle is made.
Photon isEM selector.
float getMu(const EventContext &ctx) const
std::string m_configFile
Config File.
virtual const asg::AcceptInfo & getAcceptInfo() const
Method to get the plain AcceptInfo.
virtual asg::AcceptData accept(const xAOD::IParticle *part) const
Accept with generic interface.
std::string m_WorkingPoint
Working Point.
bool m_caloOnly
Flag for calo only cut-base.
int RunNumber(const EventContext &ctx) const
Root::TPhotonIsEMSelector * m_rootTool
Pointer to the underlying ROOT based tool.
ASG_TOOL_CLASS3(AsgPhotonIsEMSelector, IAsgPhotonIsEMSelector, IAsgEGammaIsEMSelector, IAsgSelectionTool) public ~AsgPhotonIsEMSelector()
Default constructor.
SG::ReadHandleKey< xAOD::EventInfo > m_EvtInfoKey
virtual std::string getOperatingPointName() const
Method to get the operating point.
virtual StatusCode execute(const EventContext &ctx, const xAOD::Egamma *eg, unsigned int &isEM) const
The basic isem.
bool m_useF3core
use f3core or f3 (default: use f3)
virtual StatusCode initialize()
AlgTool initialize method.
Interface to tool to select photons.
Interface to tool to select photons.
Property holding a SG store/key/clid from which a ReadHandle is made.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Class providing the definition of the 4-vector interface.
Egamma_v1 Egamma
Definition of the current "egamma version".
Definition Egamma.h:17
Photon_v1 Photon
Definition of the current "egamma version".
Electron_v1 Electron
Definition of the current "egamma version".