ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
CaloSysD3PDMaker
src
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"
16
#include "
AthenaKernel/errorcheck.h
"
17
18
using namespace
std
;
19
20
namespace
D3PD
{
21
22
TileMuFillerTool::TileMuFillerTool
(
const
string
&
type
,
23
const
string
& name,
const
IInterface* parent):
24
BlockFillerTool
<
TileMu
>(
type
,name,parent)
25
{
26
TileMuFillerTool::book
().ignore();
// Avoid coverity warnings
27
}
28
29
TileMuFillerTool::~TileMuFillerTool
() {
30
}
31
32
StatusCode
TileMuFillerTool::book
(){
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
44
StatusCode
TileMuFillerTool::fill
(
const
TileMu
& p){
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
}
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
TileMuFillerTool.h
D3PD::BlockFillerTool< TileMu >::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::TileMuFillerTool::m_eta
float * m_eta
Definition
TileMuFillerTool.h:50
D3PD::TileMuFillerTool::m_energy3
float * m_energy3
Definition
TileMuFillerTool.h:55
D3PD::TileMuFillerTool::m_energy2
float * m_energy2
Definition
TileMuFillerTool.h:54
D3PD::TileMuFillerTool::m_energy1
float * m_energy1
Definition
TileMuFillerTool.h:53
D3PD::TileMuFillerTool::book
virtual StatusCode book()
Declare tuple variables.
Definition
TileMuFillerTool.cxx:32
D3PD::TileMuFillerTool::~TileMuFillerTool
virtual ~TileMuFillerTool()
Definition
TileMuFillerTool.cxx:29
D3PD::TileMuFillerTool::TileMuFillerTool
TileMuFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
TileMuFillerTool.cxx:22
D3PD::TileMuFillerTool::m_quality
unsigned int * m_quality
Definition
TileMuFillerTool.h:56
D3PD::TileMuFillerTool::fill
virtual StatusCode fill(const TileMu &p)
Fill one block — type-safe version.
Definition
TileMuFillerTool.cxx:44
D3PD::TileMuFillerTool::m_energy0
float * m_energy0
Definition
TileMuFillerTool.h:52
D3PD::TileMuFillerTool::m_phi
float * m_phi
Definition
TileMuFillerTool.h:51
TileMu
Class to store TileMuId quantities.
Definition
TileMu.h:25
D3PD
Block filler tool for noisy FEB information.
Definition
CaloCellDetailsFillerTool.cxx:29
std
STL namespace.
type
Generated on
for ATLAS Offline Software by
1.17.0