ATLAS Offline Software
TileMuFillerTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /*
6  * File: TileMuFillerTool.cxx
7  * Author: Stephen Cole <stephen.cole@cern.ch>
8  *
9  * Created on January 12, 2012, 3:59 PM
10  */
11 
12 #include "TileMuFillerTool.h"
13 #include "GaudiKernel/MsgStream.h"
14 #include "GaudiKernel/ISvcLocator.h"
15 #include "GaudiKernel/StatusCode.h"
17 
18 using namespace std;
19 
20 namespace D3PD{
21 
22 TileMuFillerTool::TileMuFillerTool(const string& type,
23  const string& name, const IInterface* parent):
25 {
26  TileMuFillerTool::book().ignore(); // Avoid coverity warnings
27 }
28 
30 }
31 
33  CHECK(addVariable("Eta",m_eta));
34  CHECK(addVariable("Phi",m_phi));
35  CHECK(addVariable("EnergyDep0",m_energy0));
36  CHECK(addVariable("EnergyDep1",m_energy1));
37  CHECK(addVariable("EnergyDep2",m_energy2));
38  CHECK(addVariable("EnergyDepNeighbors",m_energy3));
39  CHECK(addVariable("Quality",m_quality));
40 
41  return StatusCode::SUCCESS;
42 }
43 
45  *m_eta=p.eta();
46  *m_phi=p.phi();
47  *m_energy0=p.enedep()[0];
48  *m_energy1=p.enedep()[1];
49  *m_energy2=p.enedep()[2];
50  *m_energy3=p.enedep()[3];
51 
52  return StatusCode::SUCCESS;
53 }
54 
55 }
D3PD::TileMuFillerTool::m_quality
unsigned int * m_quality
Definition: TileMuFillerTool.h:56
D3PD::TileMuFillerTool::m_energy2
float * m_energy2
Definition: TileMuFillerTool.h:54
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
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
D3PD::TileMuFillerTool::~TileMuFillerTool
virtual ~TileMuFillerTool()
Definition: TileMuFillerTool.cxx:29
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
D3PD::TileMuFillerTool::m_phi
float * m_phi
Definition: TileMuFillerTool.h:51
test_pyathena.parent
parent
Definition: test_pyathena.py:15
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
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
errorcheck.h
Helpers for checking error return status codes and reporting errors.
D3PD::TileMuFillerTool::m_eta
float * m_eta
Definition: TileMuFillerTool.h:50
D3PD::TileMuFillerTool::m_energy3
float * m_energy3
Definition: TileMuFillerTool.h:55
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::TileMuFillerTool::fill
virtual StatusCode fill(const TileMu &p)
Fill one block — type-safe version.
Definition: TileMuFillerTool.cxx:44
TileMuFillerTool.h
D3PD::TileMuFillerTool::book
virtual StatusCode book()
Declare tuple variables.
Definition: TileMuFillerTool.cxx:32
D3PD::TileMuFillerTool::m_energy1
float * m_energy1
Definition: TileMuFillerTool.h:53
D3PD::TileMuFillerTool::m_energy0
float * m_energy0
Definition: TileMuFillerTool.h:52
TileMu
Class to store TileMuId quantities.
Definition: TileMu.h:25