20#include "GaudiKernel/INTupleSvc.h"
21#include "GaudiKernel/IDataProviderSvc.h"
22#include "GaudiKernel/SmartDataPtr.h"
73 return StatusCode::FAILURE;
77 CLID_ColumnWiseTuple,
"TileHit-Ntuple");
81 NTuplePtr nt(
ntupleSvc(),ntupleCompleteID);
85 "Failed to book or to retrieve ntuple " << ntupleCompleteID );
86 return StatusCode::FAILURE;
88 ATH_MSG_INFO(
"Reaccessing ntuple " << ntupleCompleteID );
113 return StatusCode::SUCCESS;
135 for (
const TileHit& cinp : *inputHits) {
139 int size = cinp.size();
140 for (
int i = 0; i < size; ++i) {
141 float time=cinp.time(i);
142 double ene=cinp.energy(i);
174 if (
msgLvl(MSG::VERBOSE)) {
175 msg(MSG::VERBOSE) <<
" iHit=" << n_hit <<
" id="
176 <<
m_tileID->to_string(
id, -1) <<
" ener=";
178 for (
int i = 0; i < size; ++i)
179 msg(MSG::VERBOSE) << cinp.energy(i) <<
" ";
181 msg(MSG::VERBOSE) <<
"time=";
182 for (
int i = 0; i < size; ++i)
183 msg(MSG::VERBOSE) << cinp.time(i) <<
" ";
191 <<
"), ignore all the rest" );
205 return StatusCode::SUCCESS;
215 return StatusCode::SUCCESS;
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
AtlasHitsVector< TileHit > TileHitVector
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
bool msgLvl(const MSG::Level lvl) const
NTuple::Item< double > m_tolE4
virtual ~TileHitVecToNtuple()
NTuple::Array< float > m_energy
NTuple::Array< int > m_phi
NTuple::Array< int > m_sample
NTuple::Array< int > m_eta
TileHitVecToNtuple(const std::string &name, ISvcLocator *pSvcLocator)
NTuple::Array< int > m_pmt
NTuple::Array< int > m_detector
NTuple::Item< int > m_nchan
NTuple::Array< float > m_time
NTuple::Array< int > m_side
NTuple::Tuple * m_ntuplePtr
NTuple::Item< double > m_tolE2
NTuple::Item< double > m_tolE1
NTuple::Item< double > m_tolE3
NTuple::Item< double > m_tolE
NTuple::Item< double > m_tolE0