Go to the documentation of this file.00001 #ifndef EVENTFILTER_CASTORRAWTODIGI_CASTORPACKER_H
00002 #define EVENTFILTER_CASTORRAWTODIGI_CASTORPACKER_H 1
00003
00004 #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h"
00005 #include "DataFormats/FEDRawData/interface/FEDRawData.h"
00006 #include "CondFormats/CastorObjects/interface/CastorElectronicsMap.h"
00007 #include "EventFilter/CastorRawToDigi/interface/CastorCollections.h"
00008
00015 class CastorPacker {
00016 public:
00017
00018 void pack(int fedid, int dccnumber,
00019 int nl1a, int orbitn, int bcn,
00020 const CastorCollections& inputs,
00021 const CastorElectronicsMap& emap,
00022 FEDRawData& output);
00023 private:
00024 int findSamples(const DetId& did, const CastorCollections& inputs,
00025 unsigned short* buffer, int &presamples);
00026 };
00027
00028 #endif