27 produces<ESRawDataCollection>();
28 produces<ESLocalRawDataCollection>();
29 produces<ESDigiCollection>();
32 fedsToken_=consumes<ESListOfFEDS>(fedsListLabel);
49 descriptions.
add(
"esRawToDigi",desc);
58 LogDebug(
"") <<
"ESRawToDigi : Error! can't get rawdata!" << std::endl;
61 std::vector<int> esFeds_to_unpack;
65 esFeds_to_unpack = fedslist->GetList();
76 for (
unsigned int i=0;
i<esFeds_to_unpack.size(); ++
i) {
78 const FEDRawData& fedRawData = rawdata->FEDData(esFeds_to_unpack[
i]);
81 if (
debug_)
std::cout<<
"FED : "<<esFeds_to_unpack[
i]<<
" 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_
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
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_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void interpretRawData(int fedId, const FEDRawData &rawData, ESRawDataCollection &dccs, ESLocalRawDataCollection &kchips, ESDigiCollection &digis)
edm::EDGetTokenT< ESListOfFEDS > fedsToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void produce(edm::Event &e, const edm::EventSetup &es)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)