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 
10 
12  const VFATFrame* returnframe = GetFrameByIndex(index);
13  if (returnframe == nullptr)
14  return nullptr;
15  return (returnframe->getChipID() == (ID & 0xFFF)) ? returnframe : nullptr;
16 }
VFATFrameCollection::GetFrameByIndex
virtual const VFATFrame * GetFrameByIndex(TotemFramePosition index) const =0
returns frame at given position in Slink frame
VFATFrameCollection.h
align::ID
uint32_t ID
Definition: Definitions.h:24
TotemFramePosition
Definition: TotemFramePosition.h:31
VFATFrame::getChipID
VFATFrame::word getChipID() const
Returns ChipID (ChipID<11:0>).
Definition: VFATFrame.h:56
VFATFrame
Definition: VFATFrame.h:18
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
VFATFrameCollection::GetFrameByIndexID
virtual const VFATFrame * GetFrameByIndexID(TotemFramePosition index, unsigned int ID)
returns frame at given position in Slink frame and checks 12bit ID
Definition: VFATFrameCollection.cc:10