4 using namespace hcaldqm;
5 using namespace hcaldqm::constants;
37 _emap = dbService->getHcalMapping();
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()) {
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++) {
488 double sumQ = hcaldqm::utilities::sumQDB<HODataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
size() - 1);
491 double aveTS = hcaldqm::utilities::aveTSDB<HODataFrame>(
_dbService, digi_fC, did, digi, 0, digi.size() - 1);
500 for (
int i = 0;
i < digi.size();
i++) {
503 eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<HODataFrame>(_dbService, digi_fC, did, digi,
i));
507 for (
int iTS = 0; iTS < digi.size(); ++iTS) {
544 double sumQ = hcaldqm::utilities::sumQDB<QIE10DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
samples() - 1);
547 double aveTS = hcaldqm::utilities::aveTSDB<QIE10DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.size() - 1);
556 for (
int i = 0;
i < digi.samples(); ++
i) {
561 eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<QIE10DataFrame>(_dbService, digi_fC, did, digi,
i));
565 for (
int iTS = 0; iTS < digi.samples(); ++iTS) {
570 for (
int iTS = 0; iTS < digi.samples(); ++iTS) {
571 if (digi[iTS].le_tdc() < 50) {
572 double time = iTS * 25. + (digi[iTS].le_tdc() / 2.);
593 return ctrigger->wasLEDTrigger();
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, int debug=0) override
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
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)
constexpr int size() const
total number of samples in the digi
void warn(std::string const &msg) const
hcaldqm::ContainerProf2D _cTimingMean_depth
void fill(HcalDetId const &) override
CalibDetType calibFlavor() const
get the flavor of this calibration detid
hcaldqm::Container2D _cMissing_depth
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
#define DEFINE_FWK_MODULE(type)
std::vector< T >::const_iterator const_iterator
int bunchCrossing() const
std::string to_string(const V &value)
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
EventAuxiliary const & eventAuxiliary() const override
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
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
hcaldqm::ContainerXXX< int > _xEntries
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
hcaldqm::ContainerProf2D _cTDCTime_depth
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
uint32_t lookup(DetId const &)
RunAuxiliary const & runAuxiliary() const override
constexpr DetId detid() const
Get the detector id.
constexpr HcalSubdetector subdet() const
get the subdetector
hcaldqm::ContainerProf2D _cSignalRMS_FEDuTCA
virtual void fill(uint32_t)
uint8_t const EVENTTYPE_LED
constexpr int iphi() const
get the cell iphi
void dqmthrow(std::string const &msg) const
int const FIBER_uTCA_MIN1
constexpr int ieta() const
get the cell ieta
hcaldqm::ContainerSingle2D _cLowSignal_CrateSlot
constexpr HcalElectronicsId const & elecId() const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< HcalGenericDetId > allPrecisionId() const
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
int iphi() const
get the low-edge iphi (if relevant)
int const CALIBEVENTS_MIN
hcaldqm::ContainerXXX< double > _xTimingSum2
hcaldqm::Container1D _cTDCTime_SubdetPM
hcaldqm::ContainerProf2D _cTimingRMS_FEDuTCA
constexpr int samples() const
total number of samples in the digi
edm::EDGetTokenT< HODigiCollection > _tokHO
virtual void book(HcalElectronicsMap const *)
hcaldqm::ContainerXXX< double > _xSignalSum
std::vector< HcalElectronicsId > allElectronicsId() const
HcalOtherSubdetector subdet() const
get the category
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
std::map< HcalSubdetector, std::vector< HcalDetId > > _ledCalibrationChannels
constexpr int samples() const
total number of samples in the digi
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
int cboxChannel() const
get the calibration box channel (if relevant)
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
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
HcalSubdetector hcalSubdet() const
get the HcalSubdetector (if relevant)
hcaldqm::Container1D _cSumQ_SubdetPM
hcaldqm::ContainerProf1D _cShapeCut_FEDSlot
constexpr int depth() const
get the tower depth
virtual void fill(int, int)
virtual void initialize(hashfunctions::HashType, int debug=0)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
constexpr HcalDetId const & id() const
hcaldqm::Container2D _cADCvsTS_SubdetPM
Readout chain identification for Hcal.
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
uint16_t *__restrict__ uint16_t const *__restrict__ adc
constexpr DetId detid() const
Get the detector id.
double sumQ(DIGI const &digi, double ped, int i=0, int j=3)
hcaldqm::Container1D _cSignalMean_Subdet