Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:14:47

0001 /****************************************************************************
0002 *
0003 * This is a part of the TOTEM offline software.
0004 * Authors: 
0005 *   Jan Kašpar (jan.kaspar@gmail.com) 
0006 *    
0007 ****************************************************************************/
0008 
0009 #include "EventFilter/CTPPSRawToDigi/interface/VFATFrameCollection.h"
0010 
0011 const VFATFrame* VFATFrameCollection::GetFrameByIndexID(TotemFramePosition index, unsigned int ID) {
0012   const VFATFrame* returnframe = GetFrameByIndex(index);
0013   if (returnframe == nullptr)
0014     return nullptr;
0015   return (returnframe->getChipID() == (ID & 0xFFF)) ? returnframe : nullptr;
0016 }