ATLAS Offline Software
Loading...
Searching...
No Matches
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
15#include "CaloEvent/CaloCell.h"
17
18
19namespace D3PD {
20
21
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
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
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
Block filler tool for calo cell raw eta/phi.
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
Data object for each calorimeter readout cell.
Definition CaloCell.h:57
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 fill(const CaloCell &p) override
Fill one block — type-safe version.
CaloCellRawFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
float * m_raw_eta
Variable: Cell raw eta.
float * m_raw_phi
Variable: Cell raw phi.
virtual StatusCode book() final
Book variables for this block.
Block filler tool for noisy FEB information.