11#ifndef ALICEO2_FOCAL_EVENT_H
12#define ALICEO2_FOCAL_EVENT_H
47 void setHeader(
unsigned int half, uint8_t header, uint8_t
bc, uint8_t wadd, uint8_t fourbits, uint8_t trialer);
48 void setChannel(
unsigned int channel, uint16_t
adc, uint16_t toa, uint16_t tot);
49 void setCMN(
unsigned int half, uint16_t
adc, uint16_t toa, uint16_t tot);
50 void setCalib(
unsigned int half, uint16_t
adc, uint16_t toa, uint16_t tot);
51 void setTrigger(
unsigned int window, uint32_t header0, uint32_t header1,
const gsl::span<uint8_t> triggers);
59 std::array<uint16_t, constants::PADLAYER_MODULE_NCHANNELS>
getADCs()
const;
60 std::array<uint16_t, constants::PADLAYER_MODULE_NCHANNELS>
getTOAs()
const;
61 std::array<uint16_t, constants::PADLAYER_MODULE_NCHANNELS>
getTOTs()
const;
66 void check_halfs(
unsigned int half)
const;
67 void check_channel(
unsigned int channel)
const;
69 std::array<Header, constants::PADLAYER_MODULE_NHALVES> mHeaders;
70 std::array<Channel, constants::PADLAYER_MODULE_NCHANNELS> mChannels;
71 std::array<Channel, constants::PADLAYER_MODULE_NHALVES> mCMN;
72 std::array<Channel, constants::PADLAYER_MODULE_NHALVES> mCalib;
73 std::array<TriggerWindow, constants::PADLAYER_WINDOW_LENGTH> mTriggers;
84 void addChip(
int feeID,
int laneID,
int chipID, uint16_t statusCode, gsl::span<const PixelHit> hits);
85 const std::vector<PixelChip>&
getChips()
const {
return mChips; }
90 std::vector<PixelChip> mChips;
113 void construct(
const o2::InteractionRecord& interaction, gsl::span<const PadLayerEvent> pads, gsl::span<const PixelChipRecord> eventPixels, gsl::span<const PixelHit> pixelHits);
118 void check_pad_layers(
unsigned int index)
const;
119 void check_pixel_layers(
unsigned int index)
const;
122 std::array<PadLayerEvent, constants::PADS_NLAYERS> mPadLayers;
123 std::array<PixelLayerEvent, constants::PIXELS_NLAYERS> mPixelLayers;
124 bool mInitialized =
false;
126 ClassDefNV(
Event, 1);
void setInteractionRecord(const InteractionRecord &ir)
const InteractionRecord & getInteractionRecord() const
void setPadLayer(unsigned int layer, const PadLayerEvent &event)
bool isInitialized() const
PadLayerEvent & getPadLayer(unsigned int index)
PixelLayerEvent & getPixelLayer(unsigned int index)
void construct(const o2::InteractionRecord &interaction, gsl::span< const PadLayerEvent > pads, gsl::span< const PixelChipRecord > eventPixels, gsl::span< const PixelHit > pixelHits)
void setPixelLayerEvent(unsigned int layer, const PixelLayerEvent &event)
std::array< uint16_t, constants::PADLAYER_MODULE_NCHANNELS > getADCs() const
const Channel & getCMN(unsigned int half) const
const TriggerWindow & getTrigger(unsigned int window) const
const Header & getHeader(unsigned int half) const
std::array< uint16_t, constants::PADLAYER_MODULE_NCHANNELS > getTOAs() const
const Channel & getChannel(unsigned int channel) const
void setCalib(unsigned int half, uint16_t adc, uint16_t toa, uint16_t tot)
std::array< uint16_t, constants::PADLAYER_MODULE_NCHANNELS > getTOTs() const
void setHeader(unsigned int half, uint8_t header, uint8_t bc, uint8_t wadd, uint8_t fourbits, uint8_t trialer)
const Channel & getCalib(unsigned int half) const
void setTrigger(unsigned int window, uint32_t header0, uint32_t header1, const gsl::span< uint8_t > triggers)
void setChannel(unsigned int channel, uint16_t adc, uint16_t toa, uint16_t tot)
void setCMN(unsigned int half, uint16_t adc, uint16_t toa, uint16_t tot)
~PixelLayerEvent()=default
const std::vector< PixelChip > & getChips() const
void addChip(const PixelChip &chip)
PixelLayerEvent()=default
GLenum GLuint GLint GLint layer
std::array< uint8_t, 8 > mTriggers
o2::InteractionRecord ir(0, 0)