20#include "GaudiKernel/INTupleSvc.h"
21#include "GaudiKernel/IDataProviderSvc.h"
22#include "GaudiKernel/SmartDataPtr.h"
73 return StatusCode::FAILURE;
76 CLID_ColumnWiseTuple,
"TileHit-Ntuple");
81 NTuplePtr nt(
ntupleSvc(),ntupleCompleteID);
84 << ntupleCompleteID );
85 return StatusCode::FAILURE;
87 ATH_MSG_INFO(
"Reaccessing ntuple " << ntupleCompleteID );
106 return StatusCode::SUCCESS;
122 SelectAllObject<TileHitContainer>::const_iterator it=selHits.
begin();
123 SelectAllObject<TileHitContainer>::const_iterator end=selHits.
end();
128 for(; it != end; ++it) {
133 int size = cinp->
size();
134 for(
int i=0;i<size;++i)
151 if (
msgLvl(MSG::VERBOSE)) {
152 msg(MSG::VERBOSE) <<
" iHit=" << n_hit <<
" id="
153 <<
m_tileID->to_string(
id, -1) <<
" ener=";
155 for (
int i = 0; i < size; ++i)
156 msg(MSG::VERBOSE) << cinp->
energy(i) <<
" ";
158 msg(MSG::VERBOSE) <<
"time=";
159 for (
int i = 0; i < size; ++i)
160 msg(MSG::VERBOSE) << cinp->
time() <<
" ";
168 <<
"), ignore all the rest" );
181 return StatusCode::SUCCESS;
191 return StatusCode::SUCCESS;
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
SelectAllObjectMT< DCC, OBJECT > SelectAllObject
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::Array< int > m_detector
NTuple::Array< float > m_energy
NTuple::Array< int > m_sample
NTuple::Item< double > m_tolE
NTuple::Array< int > m_side
NTuple::Array< int > m_eta
virtual ~TileHitToNtuple()
std::string m_hitContainer
TileHitToNtuple(const std::string &name, ISvcLocator *pSvcLocator)
NTuple::Array< int > m_phi
NTuple::Tuple * m_ntuplePtr
NTuple::Array< float > m_time
NTuple::Array< int > m_pmt
NTuple::Item< int > m_nchan
float time(int ind=0) const
Return time of ind-th sub-hit.
float energy(int ind=0) const
Return energy of ind-th sub-hit.
Identifier identify(void) const
Return logical ID of the pmt.
int size(void) const
Return length of energy/time vectors.