CMS 3D CMS Logo

Functions
CastorCtdcPacker.cc File Reference
#include "EventFilter/CastorRawToDigi/interface/CastorCtdcPacker.h"
#include "EventFilter/CastorRawToDigi/interface/CastorCORData.h"
#include "EventFilter/CastorRawToDigi/interface/CastorMergerData.h"
#include "EventFilter/CastorRawToDigi/interface/CastorCTDCHeader.h"
#include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/FEDRawData/interface/FEDTrailer.h"
#include "FWCore/Utilities/interface/CRC16.h"
#include "EventFilter/CastorRawToDigi/interface/CastorCollections.h"
#include <iostream>

Go to the source code of this file.

Functions

template<class Coll , class DetIdClass >
int process (const Coll *pt, const DetId &did, unsigned short *buffer, int &presamples)
 

Function Documentation

template<class Coll , class DetIdClass >
int process ( const Coll *  pt,
const DetId did,
unsigned short *  buffer,
int &  presamples 
)

Definition at line 15 of file CastorCtdcPacker.cc.

References i, j, and findQualityFiles::size.

15  {
16  if (pt==0) return 0;
17  int size=0;
18  typename Coll::const_iterator i=pt->find(DetIdClass(did));
19  if (i!=pt->end()) {
20  presamples=i->presamples();
21  size=i->size();
22  for (int j=0; j<size; j++)
23  buffer[j]=(*i)[j].raw();
24  }
25  return size;
26 }
size
Write out results.
int i
Definition: DBlmapReader.cc:9
int j
Definition: DBlmapReader.cc:9