ATLAS Offline Software
egammaTruthClassificationFillerTool.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  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
4 */
13 #ifndef EGAMMAD3PDMAKER_EGAMMATRUTHCLASSIFICATIONFILLERTOOL_H
14 #define EGAMMAD3PDMAKER_EGAMMATRUTHCLASSIFICATIONFILLERTOOL_H
15 
16 
18 #include "xAODEgamma/Egamma.h"
19 #include "xAODEgamma/Electron.h"
20 #include "xAODEgamma/Photon.h"
24 #include "GaudiKernel/ToolHandle.h"
25 #include <vector>
26 #include <string>
27 
28 
29 namespace D3PD {
30 
31 
36  : public BlockFillerTool<xAOD::Egamma>
37 {
38 public:
45  egammaTruthClassificationFillerTool (const std::string& type,
46  const std::string& name,
47  const IInterface* parent);
48 
49 
51  virtual StatusCode initialize() override;
52 
53 
55  virtual StatusCode book() final;
56 
57 
66  virtual StatusCode fill (const xAOD::Egamma& p) override;
67 
68 
69 private:
71  ToolHandle<IMCTruthClassifier> m_classifier;
72 
73 
76 
77 
79  int* m_type;
80 
81 
83  int* m_origin;
84 
85 
87  int* m_typebkg;
88 
89 
92 };
93 
94 
95 } // namespace D3PD
96 
97 
98 #endif // not EGAMMAD3PDMAKER_EGAMMATRUTHCLASSIFICATIONFILLERTOOL_H
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
D3PD::egammaTruthClassificationFillerTool
Fill in type/origin from MC classifier tool for an egamma.
Definition: egammaTruthClassificationFillerTool.h:37
xAOD::Egamma_v1
Definition: Egamma_v1.h:56
D3PD::egammaTruthClassificationFillerTool::fill
virtual StatusCode fill(const xAOD::Egamma &p) override
Fill one block — type-safe version.
Definition: egammaTruthClassificationFillerTool.cxx:90
BlockFillerTool.h
Type-safe wrapper for block filler tools.
Egamma.h
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
IMCTruthClassifier.h
D3PD::egammaTruthClassificationFillerTool::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition: egammaTruthClassificationFillerTool.cxx:51
Photon.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition: BlockFillerTool.h:68
egammaParamDefs.h
D3PD::egammaTruthClassificationFillerTool::m_doBkgElecOrigin
bool m_doBkgElecOrigin
Property: Should we fill origin of background electrons?
Definition: egammaTruthClassificationFillerTool.h:75
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
D3PD::egammaTruthClassificationFillerTool::m_origin
int * m_origin
Variable: Particle origin.
Definition: egammaTruthClassificationFillerTool.h:83
D3PD::egammaTruthClassificationFillerTool::m_type
int * m_type
Variable: Particle type.
Definition: egammaTruthClassificationFillerTool.h:79
D3PD::egammaTruthClassificationFillerTool::m_classifier
ToolHandle< IMCTruthClassifier > m_classifier
Property: classifier tool.
Definition: egammaTruthClassificationFillerTool.h:71
D3PD::egammaTruthClassificationFillerTool::m_typebkg
int * m_typebkg
Variable: Type of photon for background electron from conversions.
Definition: egammaTruthClassificationFillerTool.h:87
D3PD::egammaTruthClassificationFillerTool::book
virtual StatusCode book() final
Book variables for this block.
Definition: egammaTruthClassificationFillerTool.cxx:62
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Electron.h
D3PD::egammaTruthClassificationFillerTool::m_originbkg
int * m_originbkg
Variable: Origin of photon for background electron from conversions.
Definition: egammaTruthClassificationFillerTool.h:91
TruthParticle.h
D3PD::egammaTruthClassificationFillerTool::egammaTruthClassificationFillerTool
egammaTruthClassificationFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: egammaTruthClassificationFillerTool.cxx:32