1#ifndef RECON_EVENT_HGCROCTRIGDIGI_H_
2#define RECON_EVENT_HGCROCTRIGDIGI_H_
18typedef std::vector<HgcrocTrigDigi> HgcrocTrigDigiCollection;
132 const HgcrocTrigDigiCollection &c);
Contains the trigger output for a single trigger hgcroc channel.
uint32_t linearPrimitive() const
Get the linearized value of the trigger primitive.
void setPrimitive(uint8_t tp)
Set the trigger primitive (7 bits) for the given link on a channel @params[in] tp the value of the tr...
uint32_t tid_
the raw ID for this trigger channel
virtual ~HgcrocTrigDigi()=default
Destructor.
ClassDef(HgcrocTrigDigi, 1)
ROOT Dictionary class definition macro.
bool operator<(const HgcrocTrigDigi &digi)
Sort the collection to trig digis by the raw ID.
HgcrocTrigDigi()=default
Default Constructor.
friend std::ostream & operator<<(std::ostream &o, const HgcrocTrigDigi &d)
Stream the input digi.
friend std::ostream & operator<<(std::ostream &o, const HgcrocTrigDigiCollection &c)
Stream the input digi collection.
static uint32_t compressed2Linear(uint8_t comp)
Static conversion from compressed -> linear 18b.
void Print() const
Print a description of this object.
uint8_t tp_
the compressed 7bit trigger primitive value for this channel
uint8_t getPrimitive() const
Get the trigger primitive (7 bits) for the given link on a channel.
static uint8_t linear2Compressed(uint32_t lin)
Static conversion from 18b linear -> compressed.
HgcrocTrigDigi(uint32_t tid, uint8_t tp=0)
Preferred Constructor.
uint32_t getId() const
Get the id of the digi.