22#ifndef TILESIMEVENT_TILESIMHIT_H
23#define TILESIMEVENT_TILESIMHIT_H
25#include "Identifier/Identifier.h"
53 inline double time (
int ind=0)
const {
return m_time[ind]; }
~TileSimHit()
Default destructor.
TileSimHit()
Default constructor needed for POOL.
std::vector< double > m_energy
Energy deposited in scint, as seen by pmt in sepatate time bins.
double time(int ind=0) const
Return time of ind-th sub-hit.
Identifier m_pmt_id
Logical ID of the pmt.
double energy(int ind=0) const
Return energy of ind-th sub-hit.
int add(double energy, double time, double deltaT)
Add sub-hit to a given hit with time rounding to the center of nearest deltaT bin.
std::vector< double > m_time
Time of the energy deposition relative to BC.
int size(void) const
Return length of energy/time vectors.
Identifier identify(void) const
Return logical ID of the pmt.