#include "EventFilter/CastorRawToDigi/interface/CastorPacker.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 "EventFilter/Utilities/interface/Crc.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) |
int process | ( | const Coll * | pt, | |
const DetId & | did, | |||
unsigned short * | buffer, | |||
int & | presamples | |||
) | [inline] |
Definition at line 16 of file CastorPacker.cc.
00016 { 00017 if (pt==0) return 0; 00018 int size=0; 00019 typename Coll::const_iterator i=pt->find(DetIdClass(did)); 00020 if (i!=pt->end()) { 00021 presamples=i->presamples(); 00022 size=i->size(); 00023 for (int j=0; j<size; j++) 00024 buffer[j]=(*i)[j].raw(); 00025 } 00026 return size; 00027 }