13 _tokQIE10 = consumes<ZDCDigiCollection>(_tagQIE10);
29 std::map<HcalElectronicsId,DetId> myEMap;
113 for (std::map<HcalElectronicsId,DetId>::const_iterator itr=myEMap.begin(); itr!=myEMap.end(); ++itr)
117 sprintf(histoname,
"%d_%d_%d_%d",itr->first.fiberChanId(),itr->first.fiberIndex(),itr->first.spigot(),itr->first.dccid());
120 _cShape_EChannel[histoname] = ib.
bookProfile(histoname,histoname,xAxisShape.
nbins(),xAxisShape.
min(),xAxisShape.
max(),yAxisShape.
nbins(),yAxisShape.
min(),yAxisShape.
max());
122 _cShape_EChannel[histoname]->setAxisTitle(
"fC QIE8",2);
125 _cADC_EChannel[histoname] = ib.
book1D(histoname,histoname,xAxisADC.
nbins(),xAxisADC.
min(),xAxisADC.
max());
127 _cADC_EChannel[histoname]->setAxisTitle(
"ADC QIE8",1);
130 _cADC_vs_TS_EChannel[histoname] = ib.
book2D(histoname,histoname,xAxisShape.
nbins(),xAxisShape.
min(),xAxisShape.
max(),xAxisADC.
nbins(),xAxisADC.
min(),xAxisADC.
max());
132 _cADC_vs_TS_EChannel[histoname]->setAxisTitle(
"Timing",1);
133 _cADC_vs_TS_EChannel[histoname]->setAxisTitle(
"ADC QIE8",2);
143 _cShape->setAxisTitle(
"fC QIE8",2);
147 _cADC->setAxisTitle(
"ADC QIE8",1);
149 _cADC_vs_TS = ib.
book2D(
"ADC_vs_TS",
"ADC_vs_TS",xAxisShape.
nbins(),xAxisShape.
min(),xAxisShape.
max(),xAxisADC.
nbins(),xAxisADC.
min(),xAxisADC.
max());
151 _cADC_vs_TS->setAxisTitle(
"Timing",1);
152 _cADC_vs_TS->setAxisTitle(
"ADC QIE8",2);
162 + _tagQIE10.label() +
" " + _tagQIE10.instance());
165 for (uint32_t
i=0;
i<cqie10->
size();
i++)
177 for (
int j=0; j<frame.
size(); j++)
179 _cShape_EChannel[histoname]->Fill(j, frame[j].nominal_fC());
180 _cShape->Fill(j, frame[j].nominal_fC());
182 _cADC_EChannel[histoname]->Fill(frame[j].
adc());
183 _cADC->Fill(frame[j].
adc());
185 _cADC_vs_TS_EChannel[histoname]->Fill(j,frame[j].
adc());
186 _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.