ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
CaloSysD3PDMaker
src
TileTriggerFillerTool.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: TileTriggerFillerTool.cxx
7
* Author: Stephen Cole <stephen.cole@cern.ch>
8
*
9
* Created on January 13, 2012, 11:20 AM
10
*/
11
12
#include "
TileTriggerFillerTool.h
"
13
#include "GaudiKernel/MsgStream.h"
14
#include "GaudiKernel/ISvcLocator.h"
15
#include "GaudiKernel/StatusCode.h"
16
#include "
AthenaKernel/errorcheck.h
"
17
#include "
CaloIdentifier/CaloLVL1_ID.h
"
18
#include "
CaloIdentifier/TileTBID.h
"
19
20
using namespace
std
;
21
22
namespace
D3PD
{
23
24
TileTriggerFillerTool::TileTriggerFillerTool
(
const
string
&
type
,
25
const
string
& name,
const
IInterface* parent):
26
BlockFillerTool
<
TileTrigger
>(
type
,name,parent),
27
m_TT_ID
(0)
28
{
29
TileTriggerFillerTool::book
().ignore();
// Avoid coverity warnings
30
}
31
32
36
StatusCode
TileTriggerFillerTool::initialize
()
37
{
38
CHECK
( detStore()->retrieve(
m_TT_ID
) );
39
return
StatusCode::SUCCESS;
40
}
41
42
StatusCode
TileTriggerFillerTool::book
()
43
{
44
CHECK
(
addVariable
(
"side"
,
m_maxTowerSide
));
45
CHECK
(
addVariable
(
"eta"
,
m_maxTowerEta
));
46
CHECK
(
addVariable
(
"phi"
,
m_maxTowerPhi
));
47
CHECK
(
addVariable
(
"pulse"
,
m_maxTowerPulse
));
48
return
StatusCode::SUCCESS;
49
}
50
51
StatusCode
TileTriggerFillerTool::fill
(
const
TileTrigger
& p){
52
vector<Identifier> towerid=p.GetBoardTowerID();
53
vector<double> towerpulse=p.GetBoardTowerSum();
54
55
for
(
size_t
i=0;i<towerid.size();++i){
56
m_maxTowerSide
->push_back(
m_TT_ID
->pos_neg_z(towerid[i]));
57
m_maxTowerEta
->push_back(
m_TT_ID
->eta(towerid[i]));
58
m_maxTowerPhi
->push_back(
m_TT_ID
->phi(towerid[i]));
59
m_maxTowerPulse
->push_back(towerpulse[i]);
60
}
61
62
return
StatusCode::SUCCESS;
63
}
64
65
}
CaloLVL1_ID.h
TileTBID.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
TileTriggerFillerTool.h
D3PD::BlockFillerTool< TileTrigger >::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::TileTriggerFillerTool::TileTriggerFillerTool
TileTriggerFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
TileTriggerFillerTool.cxx:24
D3PD::TileTriggerFillerTool::m_maxTowerSide
std::vector< int > * m_maxTowerSide
Definition
TileTriggerFillerTool.h:59
D3PD::TileTriggerFillerTool::m_TT_ID
const CaloLVL1_ID * m_TT_ID
A data member to retain a pointer to the Tile Identifier service.
Definition
TileTriggerFillerTool.h:57
D3PD::TileTriggerFillerTool::book
virtual StatusCode book()
Declare tuple variables.
Definition
TileTriggerFillerTool.cxx:42
D3PD::TileTriggerFillerTool::m_maxTowerPhi
std::vector< int > * m_maxTowerPhi
Definition
TileTriggerFillerTool.h:61
D3PD::TileTriggerFillerTool::m_maxTowerPulse
std::vector< float > * m_maxTowerPulse
Definition
TileTriggerFillerTool.h:62
D3PD::TileTriggerFillerTool::initialize
virtual StatusCode initialize()
Standard Gaudi initialize method.
Definition
TileTriggerFillerTool.cxx:36
D3PD::TileTriggerFillerTool::m_maxTowerEta
std::vector< float > * m_maxTowerEta
Definition
TileTriggerFillerTool.h:60
D3PD::TileTriggerFillerTool::fill
virtual StatusCode fill(const TileTrigger &p)
Fill one block — type-safe version.
Definition
TileTriggerFillerTool.cxx:51
TileTrigger
Definition
TileTrigger.h:40
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