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