1 #ifndef EcalSimAlgos_EcalTimeMapDigitizer_h 2 #define EcalSimAlgos_EcalTimeMapDigitizer_h 40 average_time[
i] = average_time[
i] / tot_energy[
i];
67 typedef std::vector<unsigned int>
VecInd;
73 void add(
const std::vector<PCaloHit>&
hits,
int bunchCrossing);
102 const VecInd&
index()
const;
108 const TimeSamples*
operator[](
unsigned int i)
const;
112 TimeSamples*
vSam(
unsigned int i);
114 TimeSamples*
vSamAll(
unsigned int i);
116 const TimeSamples*
vSamAll(
unsigned int i)
const;
unsigned int samplesSizeAll() const
void run(EcalTimeDigiCollection &output)
static const int m_maxBunch
const CaloSubdetectorGeometry * m_geometry
const TimeSamples * operator[](unsigned int i) const
unsigned int nhits[time_average_capacity]
std::vector< TimeSamples > m_vSam
void setGeometry(const CaloSubdetectorGeometry *geometry)
void setTimeLayerId(const int &layerId)
unsigned int samplesSize() const
static const int BUNCHSPACE
std::vector< unsigned int > VecInd
TimeSamples * vSamAll(unsigned int i)
time_average(const DetId &myId)
EcalSubdetector subdetector()
static const unsigned short time_average_capacity
static const int m_minBunch
void blankOutUsedSamples()
TimeSamples * findSignal(const DetId &detId)
double timeOfFlight(const DetId &detId, int layer) const
void add(const std::vector< PCaloHit > &hits, int bunchCrossing)
EcalTimeMapDigitizer(EcalSubdetector myDet)
float average_time[time_average_capacity]
virtual ~EcalTimeMapDigitizer()
float tot_energy[time_average_capacity]
static const float MIN_ENERGY_THRESHOLD
TimeSamples * vSam(unsigned int i)