ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
CaloD3PDMaker
src
CaloCellRawFillerTool.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 "
CaloCellRawFillerTool.h
"
15
#include "
CaloEvent/CaloCell.h
"
16
#include "
AthenaKernel/errorcheck.h
"
17
18
19
namespace
D3PD
{
20
21
28
CaloCellRawFillerTool::CaloCellRawFillerTool
29
(
const
std::string&
type
,
30
const
std::string& name,
31
const
IInterface* parent)
32
:
BlockFillerTool
<
CaloCell
> (
type
, name, parent)
33
{
34
book
().ignore();
// Avoid coverity warnings
35
}
36
37
41
StatusCode
CaloCellRawFillerTool::book
()
42
{
43
CHECK
(
addVariable
(
"raw_eta"
,
m_raw_eta
,
"Cell raw eta."
) );
44
CHECK
(
addVariable
(
"raw_phi"
,
m_raw_phi
,
"Cell raw phi."
) );
45
46
return
StatusCode::SUCCESS;
47
}
48
49
54
StatusCode
CaloCellRawFillerTool::fill
(
const
CaloCell
& p)
55
{
56
*
m_raw_eta
= p.caloDDE()->eta_raw();
57
*
m_raw_phi
= p.caloDDE()->phi_raw();
58
return
StatusCode::SUCCESS;
59
}
60
61
62
}
// namespace D3PD
CaloCellRawFillerTool.h
Block filler tool for calo cell raw eta/phi.
CaloCell.h
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
CaloCell
Data object for each calorimeter readout cell.
Definition
CaloCell.h:57
D3PD::BlockFillerTool< CaloCell >::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::CaloCellRawFillerTool::fill
virtual StatusCode fill(const CaloCell &p) override
Fill one block — type-safe version.
Definition
CaloCellRawFillerTool.cxx:54
D3PD::CaloCellRawFillerTool::CaloCellRawFillerTool
CaloCellRawFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
CaloCellRawFillerTool.cxx:29
D3PD::CaloCellRawFillerTool::m_raw_eta
float * m_raw_eta
Variable: Cell raw eta.
Definition
CaloCellRawFillerTool.h:55
D3PD::CaloCellRawFillerTool::m_raw_phi
float * m_raw_phi
Variable: Cell raw phi.
Definition
CaloCellRawFillerTool.h:58
D3PD::CaloCellRawFillerTool::book
virtual StatusCode book() final
Book variables for this block.
Definition
CaloCellRawFillerTool.cxx:41
D3PD
Block filler tool for noisy FEB information.
Definition
CaloCellDetailsFillerTool.cxx:29
type
Generated on
for ATLAS Offline Software by
1.17.0