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/interface/bitset_append.h"
#include "EventFilter/CSCRawToDigi/interface/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

◆ findLine()

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

returns -1 if not found obsolete

Definition at line 141 of file CSCTMBData.cc.

References visDQMUpload::buf, first, and mps_fire::i.

Referenced by CSCTMBData::UnpackTMB().

141  {
142  for (int i = first; i < maxToDo; ++i) {
143  if (buf[i] == marker) {
144  return i;
145  }
146  }
147  return -1;
148 }