ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
ElectronPhotonID
ElectronPhotonSelectorTools
ElectronPhotonSelectorTools
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
23
#include "
AsgDataHandles/ReadHandleKey.h
"
24
#include "
AsgTools/AsgTool.h
"
25
// Include the interfaces
26
#include "
EgammaAnalysisInterfaces/IAsgPhotonIsEMSelector.h
"
27
#include "
xAODEgamma/PhotonFwd.h
"
28
#include "
xAODEgamma/EgammaFwd.h
"
29
#include "
xAODEgamma/ElectronFwd.h
"
30
#include "
xAODEventInfo/EventInfo.h
"
31
32
class
EventContext;
33
34
namespace
Root
{
35
class
TPhotonIsEMSelector
;
36
}
37
38
class
AsgPhotonIsEMSelector
:
public
asg::AsgTool
,
39
virtual
public
IAsgPhotonIsEMSelector
40
41
{
42
ASG_TOOL_CLASS3
(
AsgPhotonIsEMSelector
,
IAsgPhotonIsEMSelector
,
43
IAsgEGammaIsEMSelector
,
IAsgSelectionTool
)
44
45
public
:
46
48
AsgPhotonIsEMSelector
(
const
std::string& myname);
49
51
~AsgPhotonIsEMSelector
();
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
81
private
:
82
84
std::string
m_WorkingPoint
;
85
87
std::string
m_configFile
;
88
90
Root::TPhotonIsEMSelector
*
m_rootTool
;
91
93
bool
m_useF3core
;
94
96
bool
m_caloOnly
;
97
float
m_trigEtTh
;
98
99
// Skip amboguyity check when emulating the HLT
100
bool
m_skipAmbiguityCut
;
101
102
// remove TRT converted photon for Run-3
103
bool
m_removeTRTConversion
;
104
105
// To retrieve mu
106
bool
m_isMuDep
=
false
;
107
float
getMu
(
const
EventContext& ctx)
const
;
108
int
RunNumber
(
const
EventContext& ctx)
const
;
109
SG::ReadHandleKey<xAOD::EventInfo>
m_EvtInfoKey
{
this
,
110
"EventInfo"
,
"EventInfo"
,
"The event info object key"
};
111
112
};
// End: class definition
113
114
#endif
ASG_TOOL_CLASS3
#define ASG_TOOL_CLASS3(CLASSNAME, INT1, INT2, INT3)
Definition
AsgToolMacros.h:85
AsgTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
EgammaFwd.h
ElectronFwd.h
IAsgPhotonIsEMSelector.h
PhotonFwd.h
AsgPhotonIsEMSelector
Photon isEM selector.
Definition
AsgPhotonIsEMSelector.h:41
AsgPhotonIsEMSelector::getMu
float getMu(const EventContext &ctx) const
Definition
AsgPhotonIsEMSelector.cxx:464
AsgPhotonIsEMSelector::m_configFile
std::string m_configFile
Config File.
Definition
AsgPhotonIsEMSelector.h:87
AsgPhotonIsEMSelector::getAcceptInfo
virtual const asg::AcceptInfo & getAcceptInfo() const
Method to get the plain AcceptInfo.
Definition
AsgPhotonIsEMSelector.cxx:218
AsgPhotonIsEMSelector::m_skipAmbiguityCut
bool m_skipAmbiguityCut
Definition
AsgPhotonIsEMSelector.h:100
AsgPhotonIsEMSelector::m_isMuDep
bool m_isMuDep
Definition
AsgPhotonIsEMSelector.h:106
AsgPhotonIsEMSelector::accept
virtual asg::AcceptData accept(const xAOD::IParticle *part) const
Accept with generic interface.
Definition
AsgPhotonIsEMSelector.cxx:227
AsgPhotonIsEMSelector::m_WorkingPoint
std::string m_WorkingPoint
Working Point.
Definition
AsgPhotonIsEMSelector.h:84
AsgPhotonIsEMSelector::m_caloOnly
bool m_caloOnly
Flag for calo only cut-base.
Definition
AsgPhotonIsEMSelector.h:96
AsgPhotonIsEMSelector::RunNumber
int RunNumber(const EventContext &ctx) const
Definition
AsgPhotonIsEMSelector.cxx:473
AsgPhotonIsEMSelector::m_removeTRTConversion
bool m_removeTRTConversion
Definition
AsgPhotonIsEMSelector.h:103
AsgPhotonIsEMSelector::m_trigEtTh
float m_trigEtTh
Definition
AsgPhotonIsEMSelector.h:97
AsgPhotonIsEMSelector::m_rootTool
Root::TPhotonIsEMSelector * m_rootTool
Pointer to the underlying ROOT based tool.
Definition
AsgPhotonIsEMSelector.h:90
AsgPhotonIsEMSelector::~AsgPhotonIsEMSelector
ASG_TOOL_CLASS3(AsgPhotonIsEMSelector, IAsgPhotonIsEMSelector, IAsgEGammaIsEMSelector, IAsgSelectionTool) public ~AsgPhotonIsEMSelector()
Default constructor.
Definition
AsgPhotonIsEMSelector.cxx:82
AsgPhotonIsEMSelector::m_EvtInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_EvtInfoKey
Definition
AsgPhotonIsEMSelector.h:109
AsgPhotonIsEMSelector::getOperatingPointName
virtual std::string getOperatingPointName() const
Method to get the operating point.
Definition
AsgPhotonIsEMSelector.cxx:281
AsgPhotonIsEMSelector::execute
virtual StatusCode execute(const EventContext &ctx, const xAOD::Egamma *eg, unsigned int &isEM) const
The basic isem.
Definition
AsgPhotonIsEMSelector.cxx:318
AsgPhotonIsEMSelector::m_useF3core
bool m_useF3core
use f3core or f3 (default: use f3)
Definition
AsgPhotonIsEMSelector.h:93
AsgPhotonIsEMSelector::initialize
virtual StatusCode initialize()
AlgTool initialize method.
Definition
AsgPhotonIsEMSelector.cxx:89
IAsgEGammaIsEMSelector
Interface to tool to select photons.
Definition
IAsgEGammaIsEMSelector.h:29
IAsgPhotonIsEMSelector
Interface to tool to select photons.
Definition
IAsgPhotonIsEMSelector.h:25
IAsgSelectionTool
Definition
IAsgSelectionTool.h:28
Root::TPhotonIsEMSelector
Definition
TPhotonIsEMSelector.h:39
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
asg::AcceptData
Definition
AcceptData.h:31
asg::AcceptInfo
Definition
AcceptInfo.h:28
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition
Event/xAOD/xAODBase/xAODBase/IParticle.h:41
Root
Definition
IGoodRunsListSelectorTool.h:15
xAOD::Egamma
Egamma_v1 Egamma
Definition of the current "egamma version".
Definition
Egamma.h:17
xAOD::Photon
Photon_v1 Photon
Definition of the current "egamma version".
Definition
Event/xAOD/xAODEgamma/xAODEgamma/Photon.h:17
xAOD::Electron
Electron_v1 Electron
Definition of the current "egamma version".
Definition
Event/xAOD/xAODEgamma/xAODEgamma/Electron.h:17
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0