ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigHypothesis
TrigEgammaHypo
src
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef TRIGEGAMMAHYPO_TRIGPHOTONCALOISOHYPOTOOLINC_H
5
#define TRIGEGAMMAHYPO_TRIGPHOTONCALOISOHYPOTOOLINC_H 1
6
7
/*
8
* =====================================================================================
9
*
10
* Filename: TrigEgammaPrecisionPhotonCaloIsoHypoTool.h
11
*
12
* Description: Hypo tool header for Calorimeter isolation applied HLT precision step for photon triggers
13
*
14
* Created: 08/09/2022 11:19:55 AM
15
*
16
* Author: Fernando Monticelli (), Fernando.Monticelli@cern.ch
17
* Organization: UNLP/IFLP/CONICET
18
*
19
* =====================================================================================
20
*/
21
22
23
#include "
xAODEventInfo/EventInfo.h
"
24
#include "
AthenaBaseComps/AthAlgTool.h
"
25
#include "
AthenaMonitoringKernel/GenericMonitoringTool.h
"
26
#include "
TrigCompositeUtils/HLTIdentifier.h
"
27
#include "
ITrigEgammaPrecisionPhotonCaloIsoHypoTool.h
"
28
#include "
StoreGate/ReadDecorHandle.h
"
29
34
35
class
TrigEgammaPrecisionPhotonCaloIsoHypoTool
:
public
extends<AthAlgTool, ITrigEgammaPrecisionPhotonCaloIsoHypoTool> {
36
public
:
37
TrigEgammaPrecisionPhotonCaloIsoHypoTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface* parent );
38
39
virtual
StatusCode
initialize
()
override
;
40
41
virtual
StatusCode
decide
( std::vector<ITrigEgammaPrecisionPhotonCaloIsoHypoTool::PhotonInfo>& input )
const override
;
42
43
virtual
bool
decide
(
const
ITrigEgammaPrecisionPhotonCaloIsoHypoTool::PhotonInfo
& i )
const override
;
44
45
private
:
46
HLT::Identifier
m_decisionId
;
47
48
// //Calorimeter electron ID cuts
49
Gaudi::Property< std::vector<float> >
m_etabin
{
this
,
"EtaBins"
, {} ,
"Bins of eta"
};
50
Gaudi::Property< int >
m_TopoEtConeSize
{
this
,
"TopoEtConeSize"
, -1 ,
"Calo isolation cone size"
};
51
Gaudi::Property< float >
m_RelTopoEtConeCut
{
this
,
"RelTopoEtConeCut"
, 999.,
"Calo isolation cut in [TopoEtcone20/pt, TopoEtcone30/pt, TopoEtcone40/pt]"
};
52
Gaudi::Property< float >
m_CutOffset
{
this
,
"Offset"
, 0.,
"Calo isolation offset cut in [(Topo)Etcone20/pt, (Topo)Etcone30/pt, (Topo)Etcone40/pt]"
};
53
Gaudi::Property< std::string >
m_pidName
{
this
,
"PidName"
,
""
,
"Pid name"
};
54
55
/* Accept all in case of noiso instance */
56
Gaudi::Property< bool >
m_acceptAll
{
this
,
"AcceptAll"
,
false
,
"Force accept the event"
};
57
/* monitoring */
58
ToolHandle< GenericMonitoringTool >
m_monTool
{
this
,
"MonTool"
,
""
,
"Monitoring tool"
};
59
60
/*Luminosity info*/
61
SG::ReadDecorHandleKey<xAOD::EventInfo>
m_avgMuKey
{
this
,
"averageInteractionsPerCrossingKey"
,
"EventInfo.averageInteractionsPerCrossing"
,
"Decoration for Average Interaction Per Crossing"
};
62
63
64
int
findCutIndex
(
float
eta
)
const
;
65
66
int
m_coneIdx
= -1;
67
static
const
int
s_nCones
= 3;
68
static
constexpr
int
s_coneSizes
[
s_nCones
] = {20, 30, 40};
69
static
constexpr
xAOD::Iso::IsolationType
s_ptConeIsoTypes
[
s_nCones
] = {
xAOD::Iso::ptcone20
,
xAOD::Iso::ptcone30
,
xAOD::Iso::ptcone40
};
70
static
constexpr
xAOD::Iso::IsolationType
s_etConeIsoTypes
[
s_nCones
] = {
xAOD::Iso::etcone20
,
xAOD::Iso::etcone30
,
xAOD::Iso::etcone40
};
71
static
constexpr
xAOD::Iso::IsolationType
s_topoEtconeIsoTypes
[
s_nCones
] = {
xAOD::Iso::topoetcone20
,
xAOD::Iso::topoetcone30
,
xAOD::Iso::topoetcone40
};
72
};
73
74
#endif
//> !TRIGEGAMMAHYPO_TRIGPRECISIONPHOTONHYPOTOOL_H
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
AthAlgTool.h
GenericMonitoringTool.h
ITrigEgammaPrecisionPhotonCaloIsoHypoTool.h
ReadDecorHandle.h
Handle class for reading a decoration on an object.
HLTIdentifier.h
HLT::Identifier
Definition
TrigCompositeUtils/TrigCompositeUtils/HLTIdentifier.h:19
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
TrigEgammaPrecisionPhotonCaloIsoHypoTool::m_etabin
Gaudi::Property< std::vector< float > > m_etabin
selection variable for PRECISION calo selection:eta bins
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:49
TrigEgammaPrecisionPhotonCaloIsoHypoTool::s_coneSizes
static constexpr int s_coneSizes[s_nCones]
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:68
TrigEgammaPrecisionPhotonCaloIsoHypoTool::s_topoEtconeIsoTypes
static constexpr xAOD::Iso::IsolationType s_topoEtconeIsoTypes[s_nCones]
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:71
TrigEgammaPrecisionPhotonCaloIsoHypoTool::TrigEgammaPrecisionPhotonCaloIsoHypoTool
TrigEgammaPrecisionPhotonCaloIsoHypoTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.cxx:30
TrigEgammaPrecisionPhotonCaloIsoHypoTool::m_avgMuKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_avgMuKey
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:61
TrigEgammaPrecisionPhotonCaloIsoHypoTool::initialize
virtual StatusCode initialize() override
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.cxx:38
TrigEgammaPrecisionPhotonCaloIsoHypoTool::findCutIndex
int findCutIndex(float eta) const
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.cxx:202
TrigEgammaPrecisionPhotonCaloIsoHypoTool::m_decisionId
HLT::Identifier m_decisionId
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:46
TrigEgammaPrecisionPhotonCaloIsoHypoTool::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:58
TrigEgammaPrecisionPhotonCaloIsoHypoTool::s_ptConeIsoTypes
static constexpr xAOD::Iso::IsolationType s_ptConeIsoTypes[s_nCones]
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:69
TrigEgammaPrecisionPhotonCaloIsoHypoTool::m_coneIdx
int m_coneIdx
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:66
TrigEgammaPrecisionPhotonCaloIsoHypoTool::m_pidName
Gaudi::Property< std::string > m_pidName
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:53
TrigEgammaPrecisionPhotonCaloIsoHypoTool::m_CutOffset
Gaudi::Property< float > m_CutOffset
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:52
TrigEgammaPrecisionPhotonCaloIsoHypoTool::s_etConeIsoTypes
static constexpr xAOD::Iso::IsolationType s_etConeIsoTypes[s_nCones]
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:70
TrigEgammaPrecisionPhotonCaloIsoHypoTool::s_nCones
static const int s_nCones
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:67
TrigEgammaPrecisionPhotonCaloIsoHypoTool::m_acceptAll
Gaudi::Property< bool > m_acceptAll
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:56
TrigEgammaPrecisionPhotonCaloIsoHypoTool::m_RelTopoEtConeCut
Gaudi::Property< float > m_RelTopoEtConeCut
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:51
TrigEgammaPrecisionPhotonCaloIsoHypoTool::decide
virtual StatusCode decide(std::vector< ITrigEgammaPrecisionPhotonCaloIsoHypoTool::PhotonInfo > &input) const override
TrigEgammaPrecisionPhotonCaloIsoHypoTool::m_TopoEtConeSize
Gaudi::Property< int > m_TopoEtConeSize
Definition
TrigEgammaPrecisionPhotonCaloIsoHypoTool.h:50
xAOD::Iso::IsolationType
IsolationType
Overall enumeration for isolation types in xAOD files.
Definition
IsolationType.h:26
xAOD::Iso::etcone30
@ etcone30
Definition
IsolationType.h:33
xAOD::Iso::topoetcone20
@ topoetcone20
Topo-cluster ET-sum.
Definition
IsolationType.h:48
xAOD::Iso::etcone20
@ etcone20
Calorimeter isolation.
Definition
IsolationType.h:32
xAOD::Iso::topoetcone40
@ topoetcone40
Definition
IsolationType.h:50
xAOD::Iso::ptcone40
@ ptcone40
Definition
IsolationType.h:42
xAOD::Iso::ptcone20
@ ptcone20
Track isolation.
Definition
IsolationType.h:40
xAOD::Iso::ptcone30
@ ptcone30
Definition
IsolationType.h:41
xAOD::Iso::topoetcone30
@ topoetcone30
Definition
IsolationType.h:49
xAOD::Iso::etcone40
@ etcone40
Definition
IsolationType.h:34
type
ITrigEgammaPrecisionPhotonCaloIsoHypoTool::PhotonInfo
Definition
ITrigEgammaPrecisionPhotonCaloIsoHypoTool.h:25
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0