Go to the documentation of this file.
9 #ifndef EventFilter_CTPPSRawToDigi_VFATFrameCollection
10 #define EventFilter_CTPPSRawToDigi_VFATFrameCollection
36 virtual unsigned int Size()
const = 0;
39 virtual bool Empty()
const = 0;
42 typedef std::pair<TotemFramePosition, const VFATFrame*>
value_type;
the VFATFrameCollection interator
virtual const VFATFrame * GetFrameByIndex(TotemFramePosition index) const =0
returns frame at given position in Slink frame
virtual const VFATFrame * GetFrameByID(unsigned int ID) const =0
returns pointer to frame with ID, performs NO duplicity check (if there is precisely one frame with t...
virtual value_type NextIterator(const value_type &) const =0
shifts the iterator
const VFATFrame * Data()
returns the frame data of the current element
bool IsEnd()
returns whether the iterator points over the end of the collection
TotemFramePosition Position()
returns the DAQ position of the current element
std::pair< TotemFramePosition, const VFATFrame * > value_type
pair: frame DAQ position, frame data
const VFATFrameCollection * collection
the pointer to the collection
virtual unsigned int Size() const =0
return the number of VFAT frames in the collection
virtual bool IsEndIterator(const value_type &) const =0
checks whether the iterator points over the end of the collection
virtual bool Empty() const =0
returns whether the collection is empty
virtual value_type BeginIterator() const =0
returns the beginning of the collection
virtual ~VFATFrameCollection()
Iterator(const VFATFrameCollection *c=nullptr)
constructor, automatically sets the iterator to the beginning
value_type value
interator value
void Next()
shifts the iterator
virtual const VFATFrame * GetFrameByIndexID(TotemFramePosition index, unsigned int ID)
returns frame at given position in Slink frame and checks 12bit ID