33 std::vector<edm::ParameterSet> vLedCalibChannels =
34 ps.
getParameter<std::vector<edm::ParameterSet>>(
"ledCalibrationChannels");
35 for (
int i = 0;
i <= 3; ++
i) {
54 std::vector<int32_t> subdet_calib_ietas = vLedCalibChannels[
i].getUntrackedParameter<std::vector<int32_t>>(
"ieta");
55 std::vector<int32_t> subdet_calib_iphis = vLedCalibChannels[
i].getUntrackedParameter<std::vector<int32_t>>(
"iphi");
56 std::vector<int32_t> subdet_calib_depths =
57 vLedCalibChannels[
i].getUntrackedParameter<std::vector<int32_t>>(
"depth");
58 for (
unsigned int ichannel = 0; ichannel < subdet_calib_ietas.size(); ++ichannel) {
60 HcalOther, subdet_calib_ietas[ichannel], subdet_calib_iphis[ichannel], subdet_calib_depths[ichannel]));
76 std::vector<uint32_t> vhashVME;
77 std::vector<uint32_t> vhashuTCA;
78 std::vector<uint32_t> vhashC36;
362 for (std::vector<HcalGenericDetId>::const_iterator it = dids.begin(); it != dids.end(); ++it) {
363 if (!it->isHcalDetId())
460 std::string unknown_id_string =
"Detid " + std::to_string(
int(did)) +
", ieta " + std::to_string(did.
ieta());
461 unknown_id_string +=
", iphi " + std::to_string(did.
iphi()) +
", depth " + std::to_string(did.
depth());
462 unknown_id_string +=
", is not in emap. Skipping.";
470 double sumQ = hcaldqm::utilities::sumQDB<QIE11DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
samples() - 1);
473 double aveTS = hcaldqm::utilities::aveTSDB<QIE11DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.size() - 1);
482 for (
int i = 0;
i < digi.samples();
i++) {
485 eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<QIE11DataFrame>(_dbService, digi_fC, did, digi,
i));
489 for (
int iTS = 0; iTS < digi.samples(); ++iTS) {
494 for (
int iTS = 0; iTS < digi.samples(); ++iTS) {
495 if (digi[iTS].tdc() < 50) {
496 double time = iTS * 25. + (digi[iTS].tdc() / 2.);
505 for (
int i = 0;
i < digi.samples();
i++) {
511 if (digi[soi].
adc() < 30) {
523 double sumQ = hcaldqm::utilities::sumQDB<HODataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
size() - 1);
526 double aveTS = hcaldqm::utilities::aveTSDB<HODataFrame>(
_dbService, digi_fC, did, digi, 0, digi.size() - 1);
535 for (
int i = 0;
i < digi.size();
i++) {
538 eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<HODataFrame>(_dbService, digi_fC, did, digi,
i));
542 for (
int iTS = 0; iTS < digi.size(); ++iTS) {
579 double sumQ = hcaldqm::utilities::sumQDB<QIE10DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
samples() - 1);
582 double aveTS = hcaldqm::utilities::aveTSDB<QIE10DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.size() - 1);
591 for (
int i = 0;
i < digi.samples(); ++
i) {
596 eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<QIE10DataFrame>(_dbService, digi_fC, did, digi,
i));
600 for (
int iTS = 0; iTS < digi.samples(); ++iTS) {
605 for (
int iTS = 0; iTS < digi.samples(); ++iTS) {
606 if (digi[iTS].le_tdc() < 50) {
607 double time = iTS * 25. + (digi[iTS].le_tdc() / 2.);
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.
T getParameter(std::string const &) const
EventNumber_t event() const
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
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)
hcaldqm::ContainerProf2D _cTimingMean_FEDVME
HcalDetId const & id() const
std::vector< T >::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
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
hcaldqm::filter::HashFilter _filter_uTCA
edm::EDGetTokenT< QIE11DigiCollection > _tokQIE11
hcaldqm::ContainerXXX< int > _xEntries
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
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
#define DEFINE_FWK_MODULE(type)
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
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
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
RunAuxiliary const & runAuxiliary() const override
edm::InputTag _tagTrigger
HcalElectronicsMap const * _emap
hcaldqm::ContainerProf2D _cSignalMean_FEDuTCA
hcaldqm::ContainerProf2D _cTimingRMS_depth
hcaldqm::Container1D _cSignalRMS_Subdet
hcaldqm::filter::HashFilter _filter_VME
hcaldqm::Container2D _LED_ADCvsEvn_Subdet
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
edm::EDGetTokenT< HODigiCollection > _tokHO
virtual void book(HcalElectronicsMap const *)
hcaldqm::ContainerXXX< double > _xSignalSum
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
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
void _process(edm::Event const &, edm::EventSetup const &) override
hcaldqm::Container1D _cTimingMean_Subdet
std::map< HcalSubdetector, std::vector< HcalDetId > > _ledCalibrationChannels
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
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
hcaldqm::Container2D _LED_ADCvsBX_Subdet
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
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