11#ifndef ALICEO2_EMCAL_BUNCH_H 
   12#define ALICEO2_EMCAL_BUNCH_H 
   72  const std::vector<uint16_t>& 
getADC()
 const { 
return mADC; }
 
   90  uint8_t 
getEndTime()
 const { 
return mStartTime - mBunchLength + 1; }
 
  104  uint8_t mBunchLength = 0;   
 
  105  uint8_t mStartTime = 0;     
 
  106  std::vector<uint16_t> mADC; 
 
  108  ClassDefNV(
Bunch, 1);
 
 
uint8_t getStartTime() const
Get the start time bin.
 
const std::vector< uint16_t > & getADC() const
Get range of ADC values in the bunch.
 
void addADC(uint16_t adc)
Add ADC value to the bunch.
 
uint8_t getEndTime() const
Get the end time bin.
 
void setStartTime(uint8_t start)
Set the start time bin.
 
uint8_t getBunchLength() const
Get the length of the bunch (number of time bins)
 
Bunch()=default
Constructor.
 
void setBunchLength(uint8_t length)
Set the length of the ALTRO bunch.
 
void initFromRange(gsl::span< uint16_t > range)
Initialize the ADC values in the bunch from a range.
 
Bunch(uint8_t length, uint8_t start)
Initialize the bunch with start time and bunch length.
 
GLuint GLsizei GLsizei * length
 
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...