55 std::vector<uint32_t> vhashVME;
56 std::vector<uint32_t> vhashuTCA;
57 std::vector<uint32_t> vhashC36;
198 _meLEDMon = ib.
book2D(
"LED_ADCvsBX",
"Pin diode ADC vs BX", 99, -0.5, 3564-0.5, 64, -0.5, 255.5);
260 DQTask::_resetMonitors(uf);
286 for (std::vector<HcalGenericDetId>::const_iterator it=dids.begin();
287 it!=dids.end(); ++it)
289 if (!it->isHcalDetId())
362 it!=chbhe->
end(); ++it)
371 double sumQ = hcaldqm::utilities::sumQDB<HBHEDataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
size()-1);
374 double aveTS = hcaldqm::utilities::aveTSDB<HBHEDataFrame>(
_dbService, digi_fC, did, digi, 0, digi.size()-1);
383 for (
int i=0;
i<digi.size();
i++) {
385 _cShapeCut_FEDSlot.
fill(eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<HBHEDataFrame>(_dbService, digi_fC, did, digi,
i));
390 for (
int iTS = 0; iTS < digi.size(); ++iTS) {
408 if (did.
depth() == 10) {
424 std::string unknown_id_string=
"Detid "+std::to_string(
int(did))+
", ieta "+std::to_string(did.
ieta());
425 unknown_id_string+=
", iphi "+std::to_string(did.
iphi())+
", depth "+std::to_string(did.
depth());
426 unknown_id_string+=
", is not in emap. Skipping.";
434 double sumQ = hcaldqm::utilities::sumQDB<QIE11DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
samples()-1);
437 double aveTS = hcaldqm::utilities::aveTSDB<QIE11DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.size()-1);
446 for (
int i=0;
i<digi.samples();
i++) {
448 _cShapeCut_FEDSlot.
fill(eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<QIE11DataFrame>(_dbService, digi_fC, did, digi,
i));
452 for (
int iTS = 0; iTS < digi.samples(); ++iTS) {
454 if (digi[iTS].tdc() <50) {
455 double time = iTS*25. + (digi[iTS].tdc() / 2.);
464 for (
int i=0;
i<digi.samples();
i++) {
470 if (digi[soi].
adc() < 30) {
477 it!=cho->
end(); ++it)
484 double sumQ = hcaldqm::utilities::sumQDB<HODataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
size()-1);
487 double aveTS = hcaldqm::utilities::aveTSDB<HODataFrame>(
_dbService, digi_fC, did, digi, 0, digi.size()-1);
496 for (
int i=0;
i<digi.size();
i++) {
498 _cShapeCut_FEDSlot.
fill(eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<HODataFrame>(_dbService, digi_fC, did, digi,
i));
502 for (
int iTS = 0; iTS < digi.size(); ++iTS) {
511 it!=chf->
end(); ++it)
521 double sumQ = hcaldqm::utilities::sumQDB<QIE10DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
samples()-1);
524 double aveTS = hcaldqm::utilities::aveTSDB<QIE10DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.size()-1);
533 for (
int i = 0;
i < digi.samples(); ++
i) {
537 _cShapeCut_FEDSlot.
fill(eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<QIE10DataFrame>(_dbService, digi_fC, did, digi,
i));
541 for (
int iTS = 0; iTS < digi.samples(); ++iTS) {
543 if (digi[iTS].le_tdc() <50) {
544 double time = iTS*25. + (digi[iTS].le_tdc() / 2.);
int adc(sample_type sample)
get the ADC sample (12 bits)
int samples() const
total number of samples in the digi
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, int debug=0) override
DetId detid() const
Get the detector id.
EventNumber_t event() const
edm::EDGetTokenT< QIE11DigiCollection > _tokHE
T getUntrackedParameter(std::string const &, T const &) const
double aveTS(DIGI const &digi, double ped=0, int i=0, int j=3)
hcaldqm::Container2D _cMissing_FEDuTCA
hcaldqm::Container2D _cMissing_FEDVME
LEDTask(edm::ParameterSet const &)
hcaldqm::ContainerProf2D _cSignalMean_depth
hcaldqm::ContainerProf2D _cTimingMean_FEDuTCA
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
EventAuxiliary const & eventAuxiliary() const override
void warn(std::string const &msg) const
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
hcaldqm::ContainerProf2D _cTimingMean_depth
HcalSubdetector subdet() const
get the subdetector
MonitorElement * _meLEDMon
void fill(HcalDetId const &) override
hcaldqm::ContainerProf2D _cSignalMean_FEDVME
hcaldqm::Container2D _cMissing_depth
bool wasLEDTrigger() const
returns true if this was a LED trigger
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< HBHEDigiCollection > _tokHBHE
int size() const
total number of samples in the digi
hcaldqm::ContainerProf2D _cTimingMean_FEDVME
HcalDetId const & id() const
std::vector< HBHEDataFrame >::const_iterator const_iterator
int bunchCrossing() const
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
const_iterator begin() const
hcaldqm::ContainerProf2D _cSignalRMS_FEDVME
hcaldqm::filter::HashFilter _filter_uTCA
hcaldqm::ContainerXXX< int > _xEntries
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
hcaldqm::ContainerXXX< double > _xTimingSum
hcaldqm::ContainerProf2D _cTDCTime_depth
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
uint32_t lookup(DetId const &)
hcaldqm::ContainerProf2D _cSignalRMS_FEDuTCA
int depth() const
get the tower depth
virtual void fill(uint32_t)
HcalElectronicsId const & elecId() const
uint8_t const EVENTTYPE_LED
void dqmthrow(std::string const &msg) const
int ieta() const
get the cell ieta
int size() const
total number of samples in the digi
virtual example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
uint8_t eventType() const
int const FIBER_uTCA_MIN1
hcaldqm::ContainerSingle2D _cLowSignal_CrateSlot
DetId detid() const
Get the detector id.
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< HcalGenericDetId > allPrecisionId() const
RunAuxiliary const & runAuxiliary() const override
edm::InputTag _tagTrigger
HcalElectronicsMap const * _emap
hcaldqm::ContainerProf2D _cSignalMean_FEDuTCA
hcaldqm::ContainerProf2D _cTimingRMS_depth
edm::EDGetTokenT< QIE10DigiCollection > _tokHF
hcaldqm::Container1D _cSignalRMS_Subdet
hcaldqm::filter::HashFilter _filter_VME
const_iterator end() const
int iphi() const
get the cell iphi
int const CALIBEVENTS_MIN
hcaldqm::ContainerXXX< double > _xTimingSum2
hcaldqm::Container1D _cTDCTime_SubdetPM
hcaldqm::ContainerProf2D _cTimingRMS_FEDVME
hcaldqm::ContainerProf2D _cTimingRMS_FEDuTCA
void setCurrentFolder(const std::string &fullpath)
edm::EDGetTokenT< HODigiCollection > _tokHO
virtual void book(HcalElectronicsMap const *)
hcaldqm::ContainerXXX< double > _xSignalSum
MonitorElement * book2D(Args &&...args)
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
void _process(edm::Event const &, edm::EventSetup const &) override
hcaldqm::Container1D _cTimingMean_Subdet
const HcalElectronicsId & elecId() const
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fEnergy), int debug=0) override
void _resetMonitors(hcaldqm::UpdateFreq) override
const_iterator end() const
hcaldqm::ContainerProf2D _cSignalRMS_depth
EventID const & id() const
bool _isApplicable(edm::Event const &) override
virtual STDTYPE & get(HcalDetId const &)
edm::ESHandle< HcalDbService > _dbService
hcaldqm::Container1D _cTimingRMS_Subdet
void fill(HcalDetId const &) override
const HcalElectronicsMap * getHcalMapping() const
virtual void initialize(FilterType ftype, hashfunctions::HashType htype, std::vector< uint32_t > const &)
hcaldqm::ContainerXXX< double > _xSignalSum2
const HcalDetId & id() const
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
hcaldqm::Container1D _cSumQ_SubdetPM
hcaldqm::ContainerProf1D _cShapeCut_FEDSlot
virtual void fill(int, int)
virtual void initialize(hashfunctions::HashType, int debug=0)
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
int samples() const
total number of samples in the digi
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
hcaldqm::Container2D _cADCvsTS_SubdetPM
Readout chain identification for Hcal.
const_iterator begin() const
double sumQ(DIGI const &digi, double ped, int i=0, int j=3)
hcaldqm::Container1D _cSignalMean_Subdet