CMS 3D CMS Logo

Functions
CSCTMBData.cc File Reference
#include "EventFilter/CSCRawToDigi/interface/CSCTMBData.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iomanip>
#include <iostream>
#include <cstdio>
#include "EventFilter/CSCRawToDigi/src/bitset_append.h"
#include "EventFilter/CSCRawToDigi/src/cscPackerCompare.h"

Go to the source code of this file.

Functions

int findLine (const uint16_t *buf, uint16_t marker, int first, int maxToDo)
 

Function Documentation

int findLine ( const uint16_t *  buf,
uint16_t  marker,
int  first,
int  maxToDo 
)

returns -1 if not found obsolete

Definition at line 128 of file CSCTMBData.cc.

References mps_fire::i.

Referenced by CSCTMBData::UnpackTMB().

128  {
129  for (int i = first; i < maxToDo; ++i) {
130  if (buf[i] == marker) {
131  return i;
132  }
133  }
134  return -1;
135 }