25 produces<ESRawDataCollection>();
26 produces<ESLocalRawDataCollection>();
27 produces<ESDigiCollection>();
30 fedsToken_ = consumes<ESListOfFEDS>(fedsListLabel);
39 desc.addUntracked<
bool>(
"debugMode",
false);
43 descriptions.
add(
"esRawToDigi",
desc);
51 LogDebug(
"") <<
"ESRawToDigi : Error! can't get rawdata!" << std::endl;
54 std::vector<int> esFeds_to_unpack;
58 esFeds_to_unpack = fedslist->
GetList();
62 auto productDCC = std::make_unique<ESRawDataCollection>();
63 auto productKCHIP = std::make_unique<ESLocalRawDataCollection>();
64 auto productDigis = std::make_unique<ESDigiCollection>();
69 for (
unsigned int i = 0;
i < esFeds_to_unpack.size(); ++
i) {
74 std::cout <<
"FED : " << esFeds_to_unpack[
i] <<
" Data size : " <<
fedRawData.size() <<
" (Bytes)" << std::endl;
edm::EDGetTokenT< FEDRawDataCollection > dataToken_
std::vector< int > GetList() const
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void produce(edm::Event &e, const edm::EventSetup &es) override
ESRawToDigi(const edm::ParameterSet &ps)
std::string ESdigiCollection_
void interpretRawData(int fedId, const FEDRawData &rawData, ESRawDataCollection &dccs, ESLocalRawDataCollection &kchips, ESDigiCollection &digis)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
edm::EDGetTokenT< ESListOfFEDS > fedsToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)