10 _tokQIE10 = consumes<ZDCDigiCollection>(_tagQIE10);
23 std::map<HcalElectronicsId, DetId> myEMap;
107 for (std::map<HcalElectronicsId, DetId>::const_iterator itr = myEMap.begin(); itr != myEMap.end(); ++itr) {
112 itr->first.fiberChanId(),
113 itr->first.fiberIndex(),
117 ib.setCurrentFolder(
"Hcal/ZDCTask/Shape_perChannel");
118 _cShape_EChannel[histoname] =
ib.bookProfile(histoname,
126 _cShape_EChannel[histoname]->setAxisTitle(
"Timing", 1);
127 _cShape_EChannel[histoname]->setAxisTitle(
"fC QIE8", 2);
129 ib.setCurrentFolder(
"Hcal/ZDCTask/ADC_perChannel");
130 _cADC_EChannel[histoname] =
ib.book1DD(histoname, histoname, xAxisADC.
nbins(), xAxisADC.
min(), xAxisADC.
max());
131 _cADC_EChannel[histoname]->getTH1()->SetBit(
133 _cADC_EChannel[histoname]->setAxisTitle(
"ADC QIE8", 1);
135 ib.setCurrentFolder(
"Hcal/ZDCTask/ADC_vs_TS_perChannel");
136 _cADC_vs_TS_EChannel[histoname] =
ib.book2D(histoname,
144 _cADC_vs_TS_EChannel[histoname]->getTH1()->SetBit(
146 _cADC_vs_TS_EChannel[histoname]->setAxisTitle(
"Timing", 1);
147 _cADC_vs_TS_EChannel[histoname]->setAxisTitle(
"ADC QIE8", 2);
151 ib.setCurrentFolder(
"Hcal/ZDCTask");
153 _cShape =
ib.bookProfile(
"Shape",
161 _cShape->setAxisTitle(
"Timing", 1);
162 _cShape->setAxisTitle(
"fC QIE8", 2);
164 _cADC =
ib.book1DD(
"ADC",
"ADC", xAxisADC.
nbins(), xAxisADC.
min(), xAxisADC.
max());
166 _cADC->setAxisTitle(
"ADC QIE8", 1);
168 _cADC_vs_TS =
ib.book2D(
"ADC_vs_TS",
177 _cADC_vs_TS->setAxisTitle(
"Timing", 1);
178 _cADC_vs_TS->setAxisTitle(
"ADC QIE8", 2);
183 if (!
e.getByToken(_tokQIE10, cqie10))
184 edm::LogError(
"Collection ZDCDigiCollection isn't available" + _tagQIE10.label() +
" " + _tagQIE10.instance());
186 for (uint32_t
i = 0;
i < cqie10->
size();
i++) {
191 sprintf(histoname,
"%d_%d_%d_%d",
eid.fiberChanId(),
eid.fiberIndex(),
eid.spigot(),
eid.dccid());
197 for (
int j = 0;
j <
frame.size();
j++) {
198 _cShape_EChannel[histoname]->Fill(
j,
frame[
j].nominal_fC());
199 _cShape->Fill(
j,
frame[
j].nominal_fC());
201 _cADC_EChannel[histoname]->Fill(
frame[
j].
adc());
204 _cADC_vs_TS_EChannel[histoname]->Fill(
j,
frame[
j].
adc());
void analyze(edm::Event const &, edm::EventSetup const &) override
#define DEFINE_FWK_MODULE(type)
T getUntrackedParameter(std::string const &, T const &) const
ZDCTask(edm::ParameterSet const &)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Readout chain identification for Hcal.
uint16_t *__restrict__ uint16_t const *__restrict__ adc