ATLAS Offline Software
Loading...
Searching...
No Matches
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$
12
13
16
17
18namespace D3PD {
19
20
28 const std::string& name,
29 const IInterface* parent)
30 : BlockFillerTool<xAOD::Muon> (type, name, 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
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Fill number of muon segments.
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Type-safe wrapper for block filler tools.
virtual StatusCode book()
Book variables for this block.
virtual StatusCode fill(const xAOD::Muon &p)
Fill one block — type-safe version.
bool * m_numberOfSegments
Variable: Number of muon segments.
MuonNumberOfSegmentsFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Block filler tool for noisy FEB information.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Muon_v1 Muon
Reference the current persistent version: