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
static const uint16_t CMS_FED_ID_MAX
~Phase2TrackerCommissioningDigiProducer() override=default
default constructor
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_
void produce(edm::StreamID, edm::Event &ev, const edm::EventSetup &es) const override
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