5 using namespace hcaldqm;
6 using namespace hcaldqm::constants;
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.
book1DD(histoname, histoname, xAxisADC.
nbins(), xAxisADC.
min(), xAxisADC.
max());
131 _cADC_EChannel[histoname]->
getTH1()->SetBit(
133 _cADC_EChannel[histoname]->setAxisTitle(
"ADC QIE8", 1);
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);
162 _cShape->setAxisTitle(
"fC QIE8", 2);
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
virtual void setCurrentFolder(std::string const &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
constexpr int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
MonitorElement * book1DD(TString const &name, TString const &title, int nchX, double lowX, double highX, FUNC onbooking=NOOP())
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
ZDCTask(edm::ParameterSet const &)
constexpr int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
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(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
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)
Readout chain identification for Hcal.
virtual TH1 * getTH1() const
uint16_t *__restrict__ uint16_t const *__restrict__ adc
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)