31 if (r.runAuxiliary().run() == 1)
41 for (
unsigned i = 0;
i < eids.size();
i++) {
71 std::vector<uint32_t> vhashVME;
72 std::vector<uint32_t> vhashuTCA;
73 std::vector<uint32_t> vhashC36;
315 for (std::vector<HcalGenericDetId>::const_iterator
it = dids.begin();
it != dids.end(); ++
it) {
316 if (!
it->isHcalDetId())
344 if (!
eid.isVMEid()) {
359 if (!
e.getByToken(
_tokHO, c_ho))
408 unknown_id_string +=
", is not in emap. Skipping.";
416 double sumQ = hcaldqm::utilities::sumQDB<QIE11DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
samples() - 1);
419 double aveTS = hcaldqm::utilities::aveTSDB<QIE11DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.size() - 1);
428 for (
int i = 0;
i < digi.samples();
i++) {
431 eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<QIE11DataFrame>(
_dbService, digi_fC, did, digi,
i));
435 for (
int iTS = 0; iTS < digi.samples(); ++iTS) {
440 for (
int iTS = 0; iTS < digi.samples(); ++iTS) {
441 if (digi[iTS].tdc() < 50) {
442 double time = iTS * 25. + (digi[iTS].tdc() / 2.);
451 for (
int i = 0;
i < digi.samples();
i++) {
457 if (digi[soi].
adc() < 30) {
473 for (
int i = 0;
i < digi.
size();
i++) {
489 double sumQ = hcaldqm::utilities::sumQDB<HODataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
size() - 1);
492 double aveTS = hcaldqm::utilities::aveTSDB<HODataFrame>(
_dbService, digi_fC, did, digi, 0, digi.size() - 1);
501 for (
int i = 0;
i < digi.size();
i++) {
504 eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<HODataFrame>(
_dbService, digi_fC, did, digi,
i));
508 for (
int iTS = 0; iTS < digi.size(); ++iTS) {
545 double sumQ = hcaldqm::utilities::sumQDB<QIE10DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
samples() - 1);
548 double aveTS = hcaldqm::utilities::aveTSDB<QIE10DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.size() - 1);
557 for (
int i = 0;
i < digi.samples(); ++
i) {
562 eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<QIE10DataFrame>(
_dbService, digi_fC, did, digi,
i));
566 for (
int iTS = 0; iTS < digi.samples(); ++iTS) {
571 for (
int iTS = 0; iTS < digi.samples(); ++iTS) {
572 if (digi[iTS].le_tdc() < 50) {
573 double time = iTS * 25. + (digi[iTS].le_tdc() / 2.);
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, int debug=0) override
int cboxChannel() const
get the calibration box channel (if relevant)
constexpr DetId detid() const
Get the detector id.
double aveTS(DIGI const &digi, double ped=0, int i=0, int j=3)
hcaldqm::Container2D _cMissing_FEDuTCA
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)
hcaldqm::ContainerProf2D _cTimingMean_depth
void fill(HcalDetId const &) override
hcaldqm::Container2D _cMissing_depth
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
void dqmthrow(std::string const &msg) const
bool wasLEDTrigger() const
returns true if this was a LED trigger
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
std::vector< T >::const_iterator const_iterator
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 HcalElectronicsMap * getHcalMapping() const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
HcalSubdetector hcalSubdet() const
get the HcalSubdetector (if relevant)
hcaldqm::filter::HashFilter _filter_uTCA
edm::EDGetTokenT< QIE11DigiCollection > _tokQIE11
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
hcaldqm::ContainerXXX< int > _xEntries
constexpr DetId detid() const
Get the detector id.
static std::string to_string(const XMLCh *ch)
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
example_stream void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
hcaldqm::ContainerXXX< double > _xTimingSum
T getUntrackedParameter(std::string const &, T const &) const
hcaldqm::ContainerProf2D _cTDCTime_depth
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
uint32_t lookup(DetId const &)
constexpr HcalSubdetector subdet() const
get the subdetector
hcaldqm::ContainerProf2D _cSignalRMS_FEDuTCA
virtual void fill(uint32_t)
uint8_t const EVENTTYPE_LED
constexpr HcalElectronicsId const & elecId() const
constexpr int ieta() const
get the cell ieta
int iphi() const
get the low-edge iphi (if relevant)
void warn(std::string const &msg) const
int const FIBER_uTCA_MIN1
hcaldqm::ContainerSingle2D _cLowSignal_CrateSlot
#define DEFINE_FWK_MODULE(type)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
const_iterator begin() const
edm::InputTag _tagTrigger
HcalElectronicsMap const * _emap
std::vector< HcalElectronicsId > allElectronicsId() const
hcaldqm::ContainerProf2D _cSignalMean_FEDuTCA
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
hcaldqm::ContainerProf2D _cTimingRMS_depth
uint8_t eventType() const
hcaldqm::Container1D _cSignalRMS_Subdet
hcaldqm::filter::HashFilter _filter_VME
hcaldqm::Container2D _LED_ADCvsEvn_Subdet
const_iterator end() const
const_iterator end() const
int const CALIBEVENTS_MIN
hcaldqm::ContainerXXX< double > _xTimingSum2
constexpr int samples() const
total number of samples in the digi
hcaldqm::Container1D _cTDCTime_SubdetPM
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="")
const_iterator begin() const
The iterator returned can not safely be used across threads.
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
std::map< HcalSubdetector, std::vector< HcalDetId > > _ledCalibrationChannels
CalibDetType calibFlavor() const
get the flavor of this calibration detid
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fEnergy), int debug=0) override
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
void _resetMonitors(hcaldqm::UpdateFreq) override
hcaldqm::ContainerProf2D _cSignalRMS_depth
constexpr int size() const
total number of samples in the digi
bool _isApplicable(edm::Event const &) override
virtual STDTYPE & get(HcalDetId const &)
edm::ESHandle< HcalDbService > _dbService
hcaldqm::Container1D _cTimingRMS_Subdet
std::vector< HcalGenericDetId > allPrecisionId() const
void fill(HcalDetId const &) override
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
hcaldqm::Container2D _cADCvsTS_SubdetPM
Readout chain identification for Hcal.
constexpr int iphi() const
get the cell iphi
HcalOtherSubdetector subdet() const
get the category
constexpr int samples() const
total number of samples in the digi
constexpr HcalDetId const & id() const
uint16_t *__restrict__ uint16_t const *__restrict__ adc
double sumQ(DIGI const &digi, double ped, int i=0, int j=3)
hcaldqm::Container1D _cSignalMean_Subdet
constexpr int depth() const
get the tower depth