15 namespace Phase2Tracker {
38 produces<edm::DetSet<Phase2TrackerCommissioningDigi>>(
"ConditionData");
47 event.getByToken(token_, buffers);
52 const FEDRawData& fed = buffers->FEDData(fedIndex);
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)
#define DEFINE_FWK_MODULE(type)
std::map< uint32_t, uint32_t > conditionData() const
void produce(edm::Event &event, const edm::EventSetup &es) override
static const uint16_t CMS_FED_ID_MAX
void fedIndex(uint32_t aFedIndex, uint16_t &aFedId, uint16_t &aFedChannel)
Phase2TrackerCommissioningDigiProducer(const edm::ParameterSet &pset)
constructor
size_t size() const
Lenght of the data buffer in bytes.
edm::EDGetTokenT< FEDRawDataCollection > token_
~Phase2TrackerCommissioningDigiProducer() override
default constructor
T getParameter(std::string const &) const
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