EventFilter
CTPPSRawToDigi
src
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
#include "
EventFilter/CTPPSRawToDigi/interface/VFATFrameCollection.h
"
10
11
const
VFATFrame
*
VFATFrameCollection::GetFrameByIndexID
(
TotemFramePosition
index
,
unsigned
int
ID
) {
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
align::ID
uint32_t ID
Definition:
Definitions.h:24
TotemFramePosition
Definition:
TotemFramePosition.h:32
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:11
VFATFrame::getChipID
VFATFrame::word getChipID() const
Returns ChipID (ChipID<11:0>).
Definition:
VFATFrame.h:52
VFATFrame
Definition:
VFATFrame.h:19
VFATFrameCollection.h
Generated for CMSSW Reference Manual by
1.8.14