24 produces<ESRawDataCollection>();
25 produces<ESLocalRawDataCollection>();
26 produces<ESDigiCollection>();
27 dataToken_=consumes<FEDRawDataCollection>(sourceTag);
29 fedsToken_=consumes<ESListOfFEDS>(fedsListLabel);
45 LogDebug(
"") <<
"ESRawToDigi : Error! can't get rawdata!" << std::endl;
48 std::vector<int> esFeds_to_unpack;
52 esFeds_to_unpack = fedslist->GetList();
63 for (
unsigned int i=0;
i<esFeds_to_unpack.size(); ++
i) {
65 const FEDRawData& fedRawData = rawdata->FEDData(esFeds_to_unpack[
i]);
68 if (
debug_)
std::cout<<
"FED : "<<esFeds_to_unpack[
i]<<
" Data size : "<<fedRawData.
size()<<
" (Bytes)"<<std::endl;
73 const FEDRawData& fedRawData = rawdata->FEDData(fedId);
76 if (
debug_)
std::cout<<
"FED : "<<fedId<<
" Data size : "<<fedRawData.
size()<<
" (Bytes)"<<std::endl;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< FEDRawDataCollection > dataToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
size_t size() const
Lenght of the data buffer in bytes.
ESRawToDigi(const edm::ParameterSet &ps)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::string ESdigiCollection_
void interpretRawData(int fedId, const FEDRawData &rawData, ESRawDataCollection &dccs, ESLocalRawDataCollection &kchips, ESDigiCollection &digis)
edm::EDGetTokenT< ESListOfFEDS > fedsToken_
void produce(edm::Event &e, const edm::EventSetup &es)