35 for(
int i = 0; i <
hits_.size(); i++)
delete hits_.at(i);
43 EVENT::LCCollection* lcio_hits{
nullptr};
45 EVENT::LCCollection* lcio_clus_generic{
nullptr};
48 lcio_hits =
static_cast<EVENT::LCCollection*
>(
event->getLCCollection(
hitCollLcio_));
49 }
catch(EVENT::DataNotAvailableException e){
50 if(
debug_ > 0) std::cout <<
"Barfed on not finding the hodoscope collections. \n";
55 for(
int i=0; i< lcio_hits->getNumberOfElements(); ++i){
57 IMPL::CalorimeterHitImpl *hit=
static_cast<IMPL::CalorimeterHitImpl *
>(lcio_hits->getElementAt(i));
74 lcio_clus_generic =
static_cast<EVENT::LCCollection*
>(
event->getLCCollection(
clusCollLcio_));
75 }
catch(EVENT::DataNotAvailableException e){
76 if(
debug_ > 0) std::cout <<
"Barfed on not finding the generic hodoscope cluster collections. \n";
80 IMPL::LCGenericObjectImpl *gclus_ix =
static_cast<IMPL::LCGenericObjectImpl *
>(lcio_clus_generic->getElementAt(0));
81 IMPL::LCGenericObjectImpl *gclus_iy =
static_cast<IMPL::LCGenericObjectImpl *
>(lcio_clus_generic->getElementAt(1));
82 IMPL::LCGenericObjectImpl *gclus_layer =
static_cast<IMPL::LCGenericObjectImpl *
>(lcio_clus_generic->getElementAt(2));
83 IMPL::LCGenericObjectImpl *gclus_energy =
static_cast<IMPL::LCGenericObjectImpl *
>(lcio_clus_generic->getElementAt(3));
84 IMPL::LCGenericObjectImpl *gclus_time =
static_cast<IMPL::LCGenericObjectImpl *
>(lcio_clus_generic->getElementAt(4));
87 for(
int i=0; i < gclus_ix->getNInt(); ++i){
89 gclus_ix->getIntVal(i),
90 gclus_iy->getIntVal(i),
91 gclus_layer->getIntVal(i),
92 gclus_energy->getDoubleVal(i),
93 gclus_time->getDoubleVal(i)));