11 #ifndef EventFilter_TotemRawToDigi_SimpleVFATFrameCollection
12 #define EventFilter_TotemRawToDigi_SimpleVFATFrameCollection
24 typedef std::map<TotemFramePosition, VFATFrame>
MapType;
39 virtual unsigned int Size()
const
46 return (
data.size() == 0);
const VFATFrame * GetFrameByID(unsigned int ID) const
returns pointer to frame with ID, performs NO duplicity check (if there is precisely one frame with t...
std::pair< TotemFramePosition, const VFATFrame * > value_type
pair: frame DAQ position, frame data
std::map< TotemFramePosition, VFATFrame > MapType
void Clear()
cleans completely the collection
const VFATFrame * GetFrameByIndex(TotemFramePosition index) const
returns frame at given position in Slink frame
VFATFrame * InsertEmptyFrame(TotemFramePosition index)
inserts an empty (default) frame to the given position and returns pointer to the frame ...
virtual value_type NextIterator(const value_type &) const
shifts the iterator
SimpleVFATFrameCollection()
~SimpleVFATFrameCollection()
virtual unsigned int Size() const
return the number of VFAT frames in the collection
virtual bool IsEndIterator(const value_type &) const
checks whether the iterator points over the end of the collection
virtual value_type BeginIterator() const
returns the beginning of the collection
virtual bool Empty() const
returns whether the collection is empty
void Insert(const TotemFramePosition &index, const VFATFrame &frame)