ATLAS Offline Software
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"
19 
20 using namespace std;
21 
22 namespace D3PD{
23 
24 TileTriggerFillerTool::TileTriggerFillerTool(const string& type,
25  const string& name, const IInterface* parent):
27  m_TT_ID(0)
28 {
29  TileTriggerFillerTool::book().ignore(); // Avoid coverity warnings
30 }
31 
32 
37 {
39  return StatusCode::SUCCESS;
40 }
41 
43 {
48  return StatusCode::SUCCESS;
49 }
50 
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 }
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
TileTrigger
Definition: TileTrigger.h:40
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::TileTriggerFillerTool::m_maxTowerSide
std::vector< int > * m_maxTowerSide
Definition: TileTriggerFillerTool.h:59
CaloLVL1_ID::phi
int phi(const Identifier id) const
return phi according to :
Definition: CaloLVL1_ID.h:659
TileTBID.h
D3PD
Block filler tool for noisy FEB information.
Definition: CaloCellDetailsFillerTool.cxx:29
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
D3PD::TileTriggerFillerTool::m_maxTowerPulse
std::vector< float > * m_maxTowerPulse
Definition: TileTriggerFillerTool.h:62
lumiFormat.i
int i
Definition: lumiFormat.py:85
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TileTriggerFillerTool.h
D3PD::TileTriggerFillerTool::fill
virtual StatusCode fill(const TileTrigger &p)
Fill one block — type-safe version.
Definition: TileTriggerFillerTool.cxx: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
D3PD::TileTriggerFillerTool::book
virtual StatusCode book()
Declare tuple variables.
Definition: TileTriggerFillerTool.cxx:42
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
errorcheck.h
Helpers for checking error return status codes and reporting errors.
CaloLVL1_ID::eta
int eta(const Identifier id) const
return eta according to :
Definition: CaloLVL1_ID.h:653
CaloLVL1_ID::pos_neg_z
int pos_neg_z(const Identifier id) const
return pos_neg_z according to :
Definition: CaloLVL1_ID.h:635
CaloLVL1_ID.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::TileTriggerFillerTool::m_maxTowerPhi
std::vector< int > * m_maxTowerPhi
Definition: TileTriggerFillerTool.h:61
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::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