Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/****************************************************************************
*
* This is a part of the TOTEM offline software.
* Authors: 
*   Jan Kašpar (jan.kaspar@gmail.com) 
*    
****************************************************************************/

#include "EventFilter/CTPPSRawToDigi/interface/VFATFrameCollection.h"

const VFATFrame* VFATFrameCollection::GetFrameByIndexID(TotemFramePosition index, unsigned int ID) {
  const VFATFrame* returnframe = GetFrameByIndex(index);
  if (returnframe == nullptr)
    return nullptr;
  return (returnframe->getChipID() == (ID & 0xFFF)) ? returnframe : nullptr;
}