ATLAS Offline Software
TrackParticleChargeFillerTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id$
16 
17 
18 namespace D3PD {
19 
20 
28  (const std::string& type,
29  const std::string& name,
30  const IInterface* parent)
32 {
33  book().ignore(); // Avoid coverity warnings.
34 }
35 
36 
37 
42 {
43  CHECK( addVariable ("charge", m_charge) );
44  return StatusCode::SUCCESS;
45 }
46 
47 
57 {
58  *m_charge = p.charge();
59  return StatusCode::SUCCESS;
60 }
61 
62 
63 } // namespace D3PD
TrackParticleChargeFillerTool.h
D3PD::TrackParticleChargeFillerTool::m_charge
float * m_charge
Variable: Track charge.
Definition: TrackParticleChargeFillerTool.h:56
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
D3PD::AddVariable::addVariable
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Add a variable to the tuple.
Definition: AddVariable.cxx:85
xAOD::TrackParticle
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Definition: Event/xAOD/xAODTracking/xAODTracking/TrackParticle.h:13
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
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
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
errorcheck.h
Helpers for checking error return status codes and reporting errors.
D3PD::TrackParticleChargeFillerTool::fill
virtual StatusCode fill(const xAOD::TrackParticle &p) override
Fill one block — type-safe version.
Definition: TrackParticleChargeFillerTool.cxx:56
D3PD::TrackParticleChargeFillerTool::TrackParticleChargeFillerTool
TrackParticleChargeFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: TrackParticleChargeFillerTool.cxx:28
D3PD::TrackParticleChargeFillerTool::book
virtual StatusCode book() final
Book variables for this block.
Definition: TrackParticleChargeFillerTool.cxx:41
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43