ATLAS Offline Software
MuonNumberOfSegmentsFillerTool.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& name,
29  const IInterface* parent)
31 {
32  MuonNumberOfSegmentsFillerTool::book().ignore(); // Avoid coverity warnings.
33 }
34 
35 
40 {
41  CHECK( addVariable ("numberOfSegments", m_numberOfSegments,
42  "Number of segments.") );
43  return StatusCode::SUCCESS;
44 }
45 
46 
56 {
57  *m_numberOfSegments = p.nMuonSegments();
58  return StatusCode::SUCCESS;
59 }
60 
61 
62 } // namespace D3PD
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
MuonNumberOfSegmentsFillerTool.h
Fill number of muon segments.
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
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
xAOD::Muon_v1
Class describing a Muon.
Definition: Muon_v1.h:38
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
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:221
errorcheck.h
Helpers for checking error return status codes and reporting errors.
D3PD::MuonNumberOfSegmentsFillerTool::m_numberOfSegments
bool * m_numberOfSegments
Variable: Number of muon segments.
Definition: MuonNumberOfSegmentsFillerTool.h:63
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::MuonNumberOfSegmentsFillerTool::book
virtual StatusCode book()
Book variables for this block.
Definition: MuonNumberOfSegmentsFillerTool.cxx:39
D3PD::MuonNumberOfSegmentsFillerTool::MuonNumberOfSegmentsFillerTool
MuonNumberOfSegmentsFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: MuonNumberOfSegmentsFillerTool.cxx:27
D3PD::MuonNumberOfSegmentsFillerTool::fill
virtual StatusCode fill(const xAOD::Muon &p)
Fill one block — type-safe version.
Definition: MuonNumberOfSegmentsFillerTool.cxx:55