|
|
Go to the documentation of this file.
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;
359 for (std::vector<HcalGenericDetId>::const_iterator it = dids.begin(); it != dids.end(); ++it) {
360 if (!it->isHcalDetId())
410 if (!
e.getByToken(
_tokHO, c_ho))
422 const QIE11DataFrame digi = static_cast<const QIE11DataFrame>(*it);
457 std::string unknown_id_string =
"Detid " + std::to_string(
int(did)) +
", ieta " + std::to_string(did.
ieta());
458 unknown_id_string +=
", iphi " + std::to_string(did.
iphi()) +
", depth " + std::to_string(did.
depth());
459 unknown_id_string +=
", is not in emap. Skipping.";
467 double sumQ = hcaldqm::utilities::sumQDB<QIE11DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
samples() - 1);
470 double aveTS = hcaldqm::utilities::aveTSDB<QIE11DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
size() - 1);
482 eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<QIE11DataFrame>(
_dbService, digi_fC, did, digi,
i));
486 for (
int iTS = 0; iTS < digi.
samples(); ++iTS) {
491 for (
int iTS = 0; iTS < digi.
samples(); ++iTS) {
492 if (digi[iTS].tdc() < 50) {
493 double time = iTS * 25. + (digi[iTS].tdc() / 2.);
508 if (digi[soi].
adc() < 30) {
524 for (
int i = 0;
i < digi.
size();
i++) {
539 double sumQ = hcaldqm::utilities::sumQDB<HODataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
size() - 1);
542 double aveTS = hcaldqm::utilities::aveTSDB<HODataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
size() - 1);
551 for (
int i = 0;
i < digi.
size();
i++) {
554 eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<HODataFrame>(
_dbService, digi_fC, did, digi,
i));
558 for (
int iTS = 0; iTS < digi.
size(); ++iTS) {
569 const QIE10DataFrame digi = static_cast<const QIE10DataFrame>(*it);
595 double sumQ = hcaldqm::utilities::sumQDB<QIE10DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
samples() - 1);
598 double aveTS = hcaldqm::utilities::aveTSDB<QIE10DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
size() - 1);
612 eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<QIE10DataFrame>(
_dbService, digi_fC, did, digi,
i));
616 for (
int iTS = 0; iTS < digi.
samples(); ++iTS) {
621 for (
int iTS = 0; iTS < digi.
samples(); ++iTS) {
622 if (digi[iTS].le_tdc() < 50) {
623 double time = iTS * 25. + (digi[iTS].le_tdc() / 2.);
hcaldqm::Container2D _cMissing_depth
constexpr const HcalQIESample & sample(int i) const
access a sample
bool wasLEDTrigger() const
returns true if this was a LED trigger
virtual void initialize(hashfunctions::HashType, int debug=0)
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
std::vector< T >::const_iterator const_iterator
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
uint32_t lookup(DetId const &)
example_stream void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
uint8_t eventType() const
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
std::vector< HcalElectronicsId > allElectronicsId() const
hcaldqm::electronicsmap::ElectronicsMap _ehashmap
constexpr int iphi() const
get the cell iphi
constexpr int samples() const
total number of samples in the digi
hcaldqm::Container1D _cTimingMean_Subdet
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
hcaldqm::ContainerProf2D _cSignalRMS_FEDuTCA
constexpr int adc() const
get the ADC sample
uint16_t *__restrict__ uint16_t const *__restrict__ adc
hcaldqm::ContainerProf2D _cSignalMean_depth
hcaldqm::Container1D _cSignalMean_Subdet
hcaldqm::ContainerProf1D _cShapeCut_FEDSlot
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
hcaldqm::Container2D _cADCvsTS_SubdetPM
edm::EDGetTokenT< HcalUMNioDigi > _tokuMN
hcaldqm::ContainerProf2D _cSignalRMS_FEDVME
const int FIBER_uTCA_MIN1
constexpr int depth() const
get the tower depth
T getUntrackedParameter(std::string const &, T const &) const
hcaldqm::Container2D _LED_ADCvsEvn_Subdet
constexpr edm::DataFrame::size_type size() const
more accessors
hcaldqm::ContainerProf2D _cSignalMean_FEDuTCA
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
hcaldqm::ContainerXXX< double > _xSignalSum2
void _process(edm::Event const &, edm::EventSetup const &) override
constexpr HcalElectronicsId const & elecId() const
hcaldqm::ContainerProf2D _cTDCTime_depth
double sumQ(DIGI const &digi, double ped, int i=0, int j=3)
const HcalElectronicsMap * getHcalMapping() const
hcaldqm::filter::HashFilter _filter_VME
virtual void fill(int, int)
std::vector< HcalGenericDetId > allPrecisionId() const
#define DEFINE_FWK_MODULE(type)
hcaldqm::ContainerProf2D _cTimingRMS_FEDVME
edm::EDGetTokenT< QIE10DigiCollection > _tokQIE10
constexpr DetId detid() const
Get the detector id.
const_iterator begin() 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
virtual void initialize(FilterType ftype, hashfunctions::HashType htype, std::vector< uint32_t > const &)
Readout chain identification for Hcal.
void warn(std::string const &msg) const
hcaldqm::ContainerProf2D _cTimingMean_FEDuTCA
constexpr int samples() const
total number of samples in the digi
edm::EDGetTokenT< QIE11DigiCollection > _tokQIE11
hcaldqm::ContainerProf2D _cTimingRMS_FEDuTCA
hcaldqm::filter::HashFilter _filter_uTCA
hcaldqm::Container1D _cTDCTime_SubdetPM
constexpr edm::DataFrame::size_type size() const
more accessors
void dqmthrow(std::string const &msg) const
constexpr int ieta() const
get the cell ieta
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
hcaldqm::ContainerXXX< int > _xEntries
void fill(HcalDetId const &) override
virtual void fill(uint32_t)
const_iterator end() const
hcaldqm::ContainerXXX< double > _xTimingSum2
edm::ESGetToken< HcalDbService, HcalDbRecord > hcalDbServiceToken_
constexpr HcalSubdetector subdet() const
get the subdetector
bool _isApplicable(edm::Event const &) override
const_iterator begin() const
The iterator returned can not safely be used across threads.
int iphi() const
get the low-edge iphi (if relevant)
edm::ESHandle< HcalDbService > _dbService
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
constexpr int size() const
total number of samples in the digi
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
HcalSubdetector hcalSubdet() const
get the HcalSubdetector (if relevant)
hcaldqm::Container1D _cSignalRMS_Subdet
edm::InputTag _tagTrigger
hcaldqm::ContainerProf2D _cSignalRMS_depth
constexpr DetId detid() const
Get the detector id.
CalibDetType calibFlavor() const
get the flavor of this calibration detid
hcaldqm::Container1D _cSumQ_SubdetPM
hcaldqm::ContainerXXX< double > _xTimingSum
double aveTS(DIGI const &digi, double ped=0, int i=0, int j=3)
void fill(HcalDetId const &) override
hcaldqm::ContainerSingle2D _cLowSignal_CrateSlot
void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, int debug=0) override
std::map< HcalSubdetector, std::vector< HcalDetId > > _ledCalibrationChannels
hcaldqm::ContainerProf2D _cTimingRMS_depth
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
hcaldqm::ContainerProf2D _cTimingMean_FEDVME
void _resetMonitors(hcaldqm::UpdateFreq) override
const int CALIBEVENTS_MIN
int cboxChannel() const
get the calibration box channel (if relevant)
const HcalElectronicsMap * _emap
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
hcaldqm::ContainerProf2D _cSignalMean_FEDVME
virtual void book(HcalElectronicsMap const *)
hcaldqm::Container2D _LED_ADCvsBX_Subdet
virtual STDTYPE & get(HcalDetId const &)
hcaldqm::Container1D _cTimingRMS_Subdet
HcalOtherSubdetector subdet() const
get the category
virtual void initialize(std::string const &folder, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *qy=new quantity::ValueQuantity(quantity::fN), int debug=0)
hcaldqm::Container2D _cMissing_FEDVME
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
LEDTask(edm::ParameterSet const &)
hcaldqm::ContainerProf2D _cTimingMean_depth
constexpr HcalDetId const & id() const
edm::EDGetTokenT< HODigiCollection > _tokHO
hcaldqm::ContainerXXX< double > _xSignalSum
hcaldqm::Container2D _cMissing_FEDuTCA
const_iterator end() const
virtual void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="")
const uint8_t EVENTTYPE_LED