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(),
118 _cShape_EChannel[histoname] = ib.
bookProfile(histoname,
127 _cShape_EChannel[histoname]->setAxisTitle(
"fC QIE8", 2);
130 _cADC_EChannel[histoname] = ib.
book1D(histoname, histoname, xAxisADC.
nbins(), xAxisADC.
min(), xAxisADC.
max());
133 _cADC_EChannel[histoname]->setAxisTitle(
"ADC QIE8", 1);
136 _cADC_vs_TS_EChannel[histoname] = ib.
book2D(histoname,
146 _cADC_vs_TS_EChannel[histoname]->setAxisTitle(
"Timing", 1);
147 _cADC_vs_TS_EChannel[histoname]->setAxisTitle(
"ADC QIE8", 2);
162 _cShape->setAxisTitle(
"fC QIE8", 2);
164 _cADC = ib.
book1D(
"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);
184 edm::LogError(
"Collection ZDCDigiCollection isn't available" + _tagQIE10.label() +
" " + _tagQIE10.instance());
186 for (uint32_t
i = 0;
i < cqie10->
size();
i++) {
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());
202 _cADC->Fill(frame[j].
adc());
204 _cADC_vs_TS_EChannel[histoname]->Fill(j, frame[j].
adc());
205 _cADC_vs_TS->Fill(j, frame[j].
adc());
constexpr void setHTR(int crate, int slot, int tb)
T getUntrackedParameter(std::string const &, T const &) const
void analyze(edm::Event const &, edm::EventSetup const &) override
MonitorElement * bookProfile(Args &&...args)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
TObject * getRootObject() const
constexpr int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
#define DEFINE_FWK_MODULE(type)
void setCurrentFolder(std::string const &fullpath)
ZDCTask(edm::ParameterSet const &)
MonitorElement * book1D(Args &&...args)
constexpr int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
constexpr int fiberIndex() const
get the fiber index. For VME 1-8 (which of eight fibers carried by a spigot), for uTCA fibers are zer...
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * book2D(Args &&...args)
int size() const
total number of samples in the digi
const HcalElectronicsId & elecId() const
constexpr int fiberChanId() const
get the fiber channel id (which of channels on a fiber)
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
Readout chain identification for Hcal.