ATLAS Offline Software
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$
14 #include "CaloCellRawFillerTool.h"
15 #include "CaloEvent/CaloCell.h"
17 
18 
19 namespace D3PD {
20 
21 
29  (const std::string& type,
30  const std::string& name,
31  const IInterface* 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
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
CaloCell.h
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
CaloCellRawFillerTool.h
Block filler tool for calo cell raw eta/phi.
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
D3PD::CaloCellRawFillerTool::fill
virtual StatusCode fill(const CaloCell &p) override
Fill one block — type-safe version.
Definition: CaloCellRawFillerTool.cxx:54
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
D3PD::CaloCellRawFillerTool::m_raw_eta
float * m_raw_eta
Variable: Cell raw eta.
Definition: CaloCellRawFillerTool.h:55
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::CaloCellRawFillerTool::CaloCellRawFillerTool
CaloCellRawFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: CaloCellRawFillerTool.cxx:29
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
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
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
errorcheck.h
Helpers for checking error return status codes and reporting errors.
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78