ATLAS Offline Software
Loading...
Searching...
No Matches
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
13#include "GaudiKernel/MsgStream.h"
14#include "GaudiKernel/ISvcLocator.h"
15#include "GaudiKernel/StatusCode.h"
19
20using namespace std;
21
22namespace D3PD{
23
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
37{
38 CHECK( detStore()->retrieve(m_TT_ID) );
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}
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Type-safe wrapper for block filler tools.
TileTriggerFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
std::vector< int > * m_maxTowerSide
const CaloLVL1_ID * m_TT_ID
A data member to retain a pointer to the Tile Identifier service.
virtual StatusCode book()
Declare tuple variables.
std::vector< float > * m_maxTowerPulse
virtual StatusCode initialize()
Standard Gaudi initialize method.
std::vector< float > * m_maxTowerEta
virtual StatusCode fill(const TileTrigger &p)
Fill one block — type-safe version.
Block filler tool for noisy FEB information.
STL namespace.