38 produces<edm::DetSet<Phase2TrackerCommissioningDigi>>(
"ConditionData");
39 token_ = consumes<FEDRawDataCollection>(
pset.getParameter<
edm::InputTag>(
"ProductLabel"));
47 event.getByToken(token_, buffers);
59 std::map<uint32_t, uint32_t> cond_data =
buffer->conditionData();
63 LogTrace(
"Phase2TrackerCommissioningDigiProducer") <<
"--- Condition data debug ---" << std::endl;
64 std::map<uint32_t, uint32_t>::const_iterator it;
65 for (it = cond_data.begin(); it != cond_data.end(); it++) {
66 LogTrace(
"Phase2TrackerCommissioningDigiProducer")
67 << std::hex <<
"key: " << it->first << std::hex <<
" value: " << it->second <<
" (hex) " <<
std::dec 68 << it->second <<
" (dec) " << std::endl;
70 LogTrace(
"Phase2TrackerCommissioningDigiProducer") <<
"----------------------------" << std::endl;
74 for (it = cond_data.begin(); it != cond_data.end(); it++) {
77 std::unique_ptr<edm::DetSet<Phase2TrackerCommissioningDigi>> cdd(cond_data_digi);
78 event.put(
std::move(cdd),
"ConditionData");
void push_back(const T &t)
size_t size() const
Lenght of the data buffer in bytes.
static const uint16_t CMS_FED_ID_MAX
~Phase2TrackerCommissioningDigiProducer() override=default
default constructor
Phase2TrackerCommissioningDigiProducer(const edm::ParameterSet &pset)
constructor
edm::EDGetTokenT< FEDRawDataCollection > token_
#define DEFINE_FWK_MODULE(type)
void produce(edm::StreamID, edm::Event &ev, const edm::EventSetup &es) const override
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
static const uint16_t FED_ID_MAX
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
static const uint16_t FED_ID_MIN
Phase2Tracker::Phase2TrackerCommissioningDigiProducer Phase2TrackerCommissioningDigiProducer
__host__ __device__ fedId_t fedIndex(fedId_t fed)