1 #ifndef EcalSimAlgos_EcalTimeMapDigitizer_h 2 #define EcalSimAlgos_EcalTimeMapDigitizer_h 77 typedef std::vector<unsigned int>
VecInd;
83 void add(
const std::vector<PCaloHit>&
hits,
int bunchCrossing);
EcalTimeMapDigitizer(EcalSubdetector myDet, ComponentShapeCollection *componentShapes)
unsigned int samplesSizeAll() const
void run(EcalTimeDigiCollection &output)
static const int m_maxBunch
const CaloSubdetectorGeometry * m_geometry
unsigned int samplesSize() const
unsigned int nhits[time_average_capacity]
std::vector< TimeSamples > m_vSam
void setGeometry(const CaloSubdetectorGeometry *geometry)
const ComponentShapeCollection * shapes() const
double timeOfFlight(const DetId &detId, int layer) const
ComponentShapeCollection * m_ComponentShapes
void setTimeLayerId(const int &layerId)
static const int BUNCHSPACE
static constexpr double waveform_granularity
const TimeSamples * operator[](unsigned int i) const
static const unsigned int WAVEFORMSAMPLES
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 setEventSetup(const edm::EventSetup &eventSetup)
void blankOutUsedSamples()
TimeSamples * findSignal(const DetId &detId)
float waveform[waveform_capacity]
void add(const std::vector< PCaloHit > &hits, int bunchCrossing)
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)
static const unsigned short waveform_capacity