CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 (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 108 of file CSCTMBData.cc.

References i.

Referenced by CSCTMBData::UnpackTMB().

108  {
109  for(int i = first; i < maxToDo; ++i) {
110  if(buf[i] == marker) {
111  return i;
112  }
113  }
114  return -1;
115 }
int i
Definition: DBlmapReader.cc:9
bool first
Definition: L1TdeRCT.cc:79