35 produces<nanoaod::FlatTable>(
"uHTRTable");
66 std::vector<int> crate;
67 std::vector<int> slot;
68 std::vector<uint32_t> evn;
69 std::vector<uint32_t> bcn;
70 std::vector<uint32_t> orn;
81 int namc = hamc13->
NAMC();
82 for (
int iamc = 0; iamc < namc; iamc++) {
84 crate.push_back(uhtr.crateId());
85 slot.push_back(uhtr.slot());
86 evn.push_back(uhtr.l1ANumber());
87 bcn.push_back(uhtr.bunchNumber());
88 orn.push_back(uhtr.orbitNumber());
93 auto uHTRNanoTable = std::make_unique<nanoaod::FlatTable>(crate.size(),
"uHTR",
false,
false);
94 uHTRNanoTable->addColumn<
int>(
"crate", crate,
"crate");
95 uHTRNanoTable->addColumn<
int>(
"slot", slot,
"slot");
96 uHTRNanoTable->addColumn<uint32_t>(
"evn", evn,
"evn");
97 uHTRNanoTable->addColumn<uint32_t>(
"bcn", bcn,
"bcn");
98 uHTRNanoTable->addColumn<uint32_t>(
"orn", orn,
"orn");
99 uHTRNanoTable->addColumn<
int>(
"eventType",
eventType,
"eventType");
edm::EDGetTokenT< FEDRawDataCollection > tokenRaw_
void produce(edm::Event &, edm::EventSetup const &) override
void beginRun(edm::Run const &, edm::EventSetup const &) override
HcalUHTRTableProducer(const edm::ParameterSet &iConfig)
#define DEFINE_FWK_MODULE(type)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
~HcalUHTRTableProducer() override
std::vector< int > fedUnpackList_
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.