ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
MuonD3PDMaker
src
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
14
#include "
MuonNumberOfSegmentsFillerTool.h
"
15
#include "
AthenaKernel/errorcheck.h
"
16
17
18
namespace
D3PD
{
19
20
27
MuonNumberOfSegmentsFillerTool::MuonNumberOfSegmentsFillerTool
(
const
std::string&
type
,
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
39
StatusCode
MuonNumberOfSegmentsFillerTool::book
()
40
{
41
CHECK
(
addVariable
(
"numberOfSegments"
,
m_numberOfSegments
,
42
"Number of segments."
) );
43
return
StatusCode::SUCCESS;
44
}
45
46
55
StatusCode
MuonNumberOfSegmentsFillerTool::fill
(
const
xAOD::Muon
& p)
56
{
57
*
m_numberOfSegments
= p.nMuonSegments();
58
return
StatusCode::SUCCESS;
59
}
60
61
62
}
// namespace D3PD
errorcheck.h
Helpers for checking error return status codes and reporting errors.
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition
Control/AthenaKernel/AthenaKernel/errorcheck.h:422
MuonNumberOfSegmentsFillerTool.h
Fill number of muon segments.
D3PD::BlockFillerTool< xAOD::Muon >::addVariable
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Definition
AddVariable.cxx:85
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition
BlockFillerTool.h:65
D3PD::MuonNumberOfSegmentsFillerTool::book
virtual StatusCode book()
Book variables for this block.
Definition
MuonNumberOfSegmentsFillerTool.cxx:39
D3PD::MuonNumberOfSegmentsFillerTool::fill
virtual StatusCode fill(const xAOD::Muon &p)
Fill one block — type-safe version.
Definition
MuonNumberOfSegmentsFillerTool.cxx:55
D3PD::MuonNumberOfSegmentsFillerTool::m_numberOfSegments
bool * m_numberOfSegments
Variable: Number of muon segments.
Definition
MuonNumberOfSegmentsFillerTool.h:63
D3PD::MuonNumberOfSegmentsFillerTool::MuonNumberOfSegmentsFillerTool
MuonNumberOfSegmentsFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
MuonNumberOfSegmentsFillerTool.cxx:27
D3PD
Block filler tool for noisy FEB information.
Definition
CaloCellDetailsFillerTool.cxx:29
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition
TrackSystemController.h:46
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::Muon
Muon_v1 Muon
Reference the current persistent version:
Definition
Event/xAOD/xAODMuon/xAODMuon/Muon.h:13
type
Generated on
for ATLAS Offline Software by
1.17.0