CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_2_9/src/EventFilter/CSCRawToDigi/src/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 (unsigned short *buf, unsigned short marker, int first, int maxToDo)

Function Documentation

int findLine ( unsigned short *  buf,
unsigned short  marker,
int  first,
int  maxToDo 
)

returns -1 if not found obsolete

Definition at line 112 of file CSCTMBData.cc.

References i.

Referenced by CSCTMBData::UnpackTMB().

                                                                                 {
  for(int i = first; i < maxToDo; ++i) { 
    if(buf[i] == marker) {
      return i;
    }
  }
  return -1;
}