ATLAS Offline Software
PhotonTruthAlg.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id$
16 #ifndef EGAMMAD3PDANALYSIS_PHOTONTRUTHALG_H
17 #define EGAMMAD3PDANALYSIS_PHOTONTRUTHALG_H
18 
19 
21 #include "GaudiKernel/ToolHandle.h"
22 
23 
24 namespace D3PD {
25 
26 
27 class PhotonTruthTool;
28 class ICollectionGetterTool;
29 
30 
35  : public AthAlgorithm
36 {
37 public:
43  PhotonTruthAlg (const std::string& name,
44  ISvcLocator* svcloc);
45 
46 
48  virtual StatusCode initialize();
49 
50 
52  virtual StatusCode execute();
53 
54 
55 private:
57  std::string m_auxPrefix;
58 
60  ToolHandle<PhotonTruthTool> m_truthTool;
61 
63  ToolHandle<ICollectionGetterTool> m_photonGetter;
64 
67 };
68 
69 
70 } // namespace D3PD
71 
72 
73 #endif // EGAMMAD3PDANALYSIS_PHOTONTRUTHALG_H
D3PD::PhotonTruthAlg::m_truthTool
ToolHandle< PhotonTruthTool > m_truthTool
Property: Truth analysis tool.
Definition: PhotonTruthAlg.h:60
D3PD::PhotonTruthAlg::m_photonGetter
ToolHandle< ICollectionGetterTool > m_photonGetter
Property: Getter for input photon objects.
Definition: PhotonTruthAlg.h:63
AthAlgorithm.h
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
D3PD::PhotonTruthAlg::execute
virtual StatusCode execute()
Standard Gaudi execute method.
Definition: PhotonTruthAlg.cxx:57
D3PD::PhotonTruthAlg::initialize
virtual StatusCode initialize()
Standard Gaudi initialize method.
Definition: PhotonTruthAlg.cxx:44
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
D3PD::PhotonTruthAlg
Analyze GenParticle's matching photons and made UD decorations.
Definition: PhotonTruthAlg.h:36
D3PD::PhotonTruthAlg::m_allowMissing
bool m_allowMissing
Property: If true, don't complain if input objects are missing.
Definition: PhotonTruthAlg.h:66
D3PD::PhotonTruthAlg::m_auxPrefix
std::string m_auxPrefix
Property: Prefix to add to aux data items.
Definition: PhotonTruthAlg.h:57
D3PD::PhotonTruthAlg::PhotonTruthAlg
PhotonTruthAlg(const std::string &name, ISvcLocator *svcloc)
Standard Gaudi algorithm constructor.
Definition: PhotonTruthAlg.cxx:24