ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigHypothesis
TrigEgammaHypo
src
ITrigEgammaPrecisionPhotonHypoTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef TRIGEGAMMAHYPO_ITRIGPRECISIONPHOTONHYPOTOOL_H
5
#define TRIGEGAMMAHYPO_ITRIGPRECISIONPHOTONHYPOTOOL_H 1
6
7
#include "GaudiKernel/IAlgTool.h"
8
#include "
TrigCompositeUtils/TrigCompositeUtils.h
"
9
#include "
TrigSteeringEvent/TrigRoiDescriptor.h
"
10
#include "
xAODEgamma/Photon.h
"
11
16
17
class
ITrigEgammaPrecisionPhotonHypoTool
18
:
virtual
public
::IAlgTool
19
{
20
21
public
:
22
DeclareInterfaceID
(
ITrigEgammaPrecisionPhotonHypoTool
, 1, 0);
23
virtual
~ITrigEgammaPrecisionPhotonHypoTool
(){}
24
25
struct
PhotonInfo
{
26
PhotonInfo
(
TrigCompositeUtils::Decision
* d,
const
TrigRoiDescriptor
*
r
,
const
xAOD::Photon_v1
* c,
27
const
TrigCompositeUtils::Decision
* previousDecision )
28
:
decision
( d ),
29
roi
(
r
),
30
photon
(c),
31
previousDecisionIDs
(
TrigCompositeUtils
::
decisionIDs
( previousDecision ).begin(),
32
TrigCompositeUtils
::
decisionIDs
( previousDecision ).end() )
33
{}
34
35
TrigCompositeUtils::Decision
*
decision
;
36
const
TrigRoiDescriptor
*
roi
;
37
const
xAOD::Photon_v1
*
photon
;
38
std::map<std::string, float>
valueDecorator
;
39
std::map<std::string, bool>
pidDecorator
;
40
const
TrigCompositeUtils::DecisionIDContainer
previousDecisionIDs
;
41
};
42
43
50
virtual
StatusCode
decide
( std::vector<PhotonInfo>& input )
const
= 0;
51
56
virtual
bool
decide
(
const
PhotonInfo
& i )
const
= 0;
57
58
59
60
};
61
62
63
#endif
//> !TRIGEGAMMAHYPO_ITRIGPRECISIONPHOTONHYPOTOOL_H
Photon.h
decisionIDs
void decisionIDs(const Decision *d, DecisionIDContainer &id)
Extracts DecisionIDs stored in the Decision object.
Definition
TrigCompositeUtilsRoot.cxx:65
TrigCompositeUtils.h
TrigRoiDescriptor.h
ITrigEgammaPrecisionPhotonHypoTool
Definition
ITrigEgammaPrecisionPhotonHypoTool.h:19
ITrigEgammaPrecisionPhotonHypoTool::decide
virtual StatusCode decide(std::vector< PhotonInfo > &input) const =0
decides upon all photons Note it is for a reason a non-virtual method, it is an interface in gaudi se...
ITrigEgammaPrecisionPhotonHypoTool::decide
virtual bool decide(const PhotonInfo &i) const =0
Makes a decision for a single object The decision needs to be returned.
ITrigEgammaPrecisionPhotonHypoTool::~ITrigEgammaPrecisionPhotonHypoTool
virtual ~ITrigEgammaPrecisionPhotonHypoTool()
Definition
ITrigEgammaPrecisionPhotonHypoTool.h:23
ITrigEgammaPrecisionPhotonHypoTool::DeclareInterfaceID
DeclareInterfaceID(ITrigEgammaPrecisionPhotonHypoTool, 1, 0)
TrigRoiDescriptor
nope - should be used for standalone also, perhaps need to protect the class def bits ifndef XAOD_ANA...
Definition
TrigRoiDescriptor.h:48
xAOD::Photon_v1
Definition
Photon_v1.h:37
r
int r
Definition
globals.cxx:22
TrigCompositeUtils
Definition
TrigComposite.h:19
TrigCompositeUtils::Decision
xAOD::TrigComposite Decision
Definition
TrigComposite.h:20
TrigCompositeUtils::DecisionIDContainer
std::set< DecisionID > DecisionIDContainer
Definition
TrigComposite_v1.h:28
ITrigEgammaPrecisionPhotonHypoTool::PhotonInfo
Definition
ITrigEgammaPrecisionPhotonHypoTool.h:25
ITrigEgammaPrecisionPhotonHypoTool::PhotonInfo::pidDecorator
std::map< std::string, bool > pidDecorator
Definition
ITrigEgammaPrecisionPhotonHypoTool.h:39
ITrigEgammaPrecisionPhotonHypoTool::PhotonInfo::previousDecisionIDs
const TrigCompositeUtils::DecisionIDContainer previousDecisionIDs
Definition
ITrigEgammaPrecisionPhotonHypoTool.h:40
ITrigEgammaPrecisionPhotonHypoTool::PhotonInfo::PhotonInfo
PhotonInfo(TrigCompositeUtils::Decision *d, const TrigRoiDescriptor *r, const xAOD::Photon_v1 *c, const TrigCompositeUtils::Decision *previousDecision)
Definition
ITrigEgammaPrecisionPhotonHypoTool.h:26
ITrigEgammaPrecisionPhotonHypoTool::PhotonInfo::decision
TrigCompositeUtils::Decision * decision
Definition
ITrigEgammaPrecisionPhotonHypoTool.h:35
ITrigEgammaPrecisionPhotonHypoTool::PhotonInfo::valueDecorator
std::map< std::string, float > valueDecorator
Definition
ITrigEgammaPrecisionPhotonHypoTool.h:38
ITrigEgammaPrecisionPhotonHypoTool::PhotonInfo::roi
const TrigRoiDescriptor * roi
Definition
ITrigEgammaPrecisionPhotonHypoTool.h:36
ITrigEgammaPrecisionPhotonHypoTool::PhotonInfo::photon
const xAOD::Photon_v1 * photon
Definition
ITrigEgammaPrecisionPhotonHypoTool.h:37
Generated on
for ATLAS Offline Software by
1.17.0