CMS 3D CMS Logo

VFATFrameCollection.cc
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * This is a part of the TOTEM offline software.
4 * Authors:
5 * Jan Kašpar (jan.kaspar@gmail.com)
6 *
7 ****************************************************************************/
8 
9 
11 
12 //----------------------------------------------------------------------------------------------------
13 
15 {
16  const VFATFrame* returnframe = GetFrameByIndex(index);
17  if (returnframe == nullptr)
18  return nullptr;
19  return (returnframe->getChipID() == (ID & 0xFFF)) ? returnframe : nullptr;
20 }
virtual const VFATFrame * GetFrameByIndex(TotemFramePosition index) const =0
returns frame at given position in Slink frame
uint32_t ID
Definition: Definitions.h:26
virtual const VFATFrame * GetFrameByIndexID(TotemFramePosition index, unsigned int ID)
returns frame at given position in Slink frame and checks 12bit ID
VFATFrame::word getChipID() const
Returns ChipID (ChipID<11:0>).
Definition: VFATFrame.h:64