CMS 3D CMS Logo

Functions
CastorPacker.cc File Reference
#include "EventFilter/CastorRawToDigi/interface/CastorPacker.h"
#include "EventFilter/CastorRawToDigi/interface/CastorCollections.h"
#include "EventFilter/HcalRawToDigi/interface/HcalHTRData.h"
#include "EventFilter/HcalRawToDigi/interface/HcalDCCHeader.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"

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 11 of file CastorPacker.cc.

References mps_fire::i, and findQualityFiles::size.

11  {
12  if (pt==nullptr) return 0;
13  int size=0;
14  typename Coll::const_iterator i=pt->find(DetIdClass(did));
15  if (i!=pt->end()) {
16  presamples=i->presamples();
17  size=i->size();
18  for (int j=0; j<size; j++)
19  buffer[j]=(*i)[j].raw();
20  }
21  return size;
22 }
size
Write out results.