ATLAS Offline Software
ITrigEgammaPrecisionPhotonCaloIsoHypoTool.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_ITRIGPHOTONCALOISOHYPOTOOL_H
5 #define TRIGEGAMMAHYPO_ITRIGPHOTONCALOISOHYPOTOOL_H 1
6 
7 #include "GaudiKernel/IAlgTool.h"
10 #include "xAODEgamma/Photon.h"
11 
18  : virtual public ::IAlgTool
19 {
20 
21  public:
24 
25  struct PhotonInfo {
27  const TrigCompositeUtils::Decision* previousDecision )
28  : decision( d ),
29  roi( r ),
30  photon(c),
32  TrigCompositeUtils::decisionIDs( previousDecision ).end() )
33  {}
34 
38  std::map<std::string, float> valueDecorator;
39  std::map<std::string, bool> pidDecorator;
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
beamspotman.r
def r
Definition: beamspotman.py:676
ITrigEgammaPrecisionPhotonCaloIsoHypoTool::decide
virtual bool decide(const PhotonInfo &i) const =0
Makes a decision for a single object The decision needs to be returned.
ITrigEgammaPrecisionPhotonCaloIsoHypoTool::PhotonInfo::previousDecisionIDs
const TrigCompositeUtils::DecisionIDContainer previousDecisionIDs
Definition: ITrigEgammaPrecisionPhotonCaloIsoHypoTool.h:40
ITrigEgammaPrecisionPhotonCaloIsoHypoTool::PhotonInfo::PhotonInfo
PhotonInfo(TrigCompositeUtils::Decision *d, const TrigRoiDescriptor *r, const xAOD::Photon_v1 *c, const TrigCompositeUtils::Decision *previousDecision)
Definition: ITrigEgammaPrecisionPhotonCaloIsoHypoTool.h:26
ITrigEgammaPrecisionPhotonCaloIsoHypoTool::~ITrigEgammaPrecisionPhotonCaloIsoHypoTool
virtual ~ITrigEgammaPrecisionPhotonCaloIsoHypoTool()
Definition: ITrigEgammaPrecisionPhotonCaloIsoHypoTool.h:23
ITrigEgammaPrecisionPhotonCaloIsoHypoTool::PhotonInfo::roi
const TrigRoiDescriptor * roi
Definition: ITrigEgammaPrecisionPhotonCaloIsoHypoTool.h:36
hist_file_dump.d
d
Definition: hist_file_dump.py:137
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
TrigRoiDescriptor
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
Definition: TrigRoiDescriptor.h:56
ITrigEgammaPrecisionPhotonCaloIsoHypoTool::PhotonInfo::valueDecorator
std::map< std::string, float > valueDecorator
Definition: ITrigEgammaPrecisionPhotonCaloIsoHypoTool.h:38
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
ITrigEgammaPrecisionPhotonCaloIsoHypoTool::PhotonInfo::pidDecorator
std::map< std::string, bool > pidDecorator
Definition: ITrigEgammaPrecisionPhotonCaloIsoHypoTool.h:39
TrigCompositeUtils.h
ITrigEgammaPrecisionPhotonCaloIsoHypoTool::DeclareInterfaceID
DeclareInterfaceID(ITrigEgammaPrecisionPhotonCaloIsoHypoTool, 1, 0)
lumiFormat.i
int i
Definition: lumiFormat.py:85
Photon.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
xAOD::TrigComposite_v1
Class used to describe composite objects in the HLT.
Definition: TrigComposite_v1.h:52
ITrigEgammaPrecisionPhotonCaloIsoHypoTool::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...
ITrigEgammaPrecisionPhotonCaloIsoHypoTool::PhotonInfo::photon
const xAOD::Photon_v1 * photon
Definition: ITrigEgammaPrecisionPhotonCaloIsoHypoTool.h:37
TrigCompositeUtils::DecisionIDContainer
std::set< DecisionID > DecisionIDContainer
Definition: TrigComposite_v1.h:28
xAOD::Photon_v1
Definition: Photon_v1.h:37
TrigCompositeUtils::decisionIDs
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.
Definition: TrigCompositeUtilsRoot.cxx:67
ITrigEgammaPrecisionPhotonCaloIsoHypoTool::PhotonInfo::decision
TrigCompositeUtils::Decision * decision
Definition: ITrigEgammaPrecisionPhotonCaloIsoHypoTool.h:35
TrigCompositeUtils
Definition: Event/xAOD/xAODTrigger/xAODTrigger/TrigComposite.h:19
ITrigEgammaPrecisionPhotonCaloIsoHypoTool::PhotonInfo
Definition: ITrigEgammaPrecisionPhotonCaloIsoHypoTool.h:25
TrigRoiDescriptor.h
python.compressB64.c
def c
Definition: compressB64.py:93
ITrigEgammaPrecisionPhotonCaloIsoHypoTool
Definition: ITrigEgammaPrecisionPhotonCaloIsoHypoTool.h:19