|
|
Go to the documentation of this file.
28 std::vector<edm::ParameterSet> vLedCalibChannels =
29 ps.
getParameter<std::vector<edm::ParameterSet>>(
"ledCalibrationChannels");
30 for (
int i = 0;
i <= 3; ++
i) {
49 std::vector<int32_t> subdet_calib_ietas = vLedCalibChannels[
i].getUntrackedParameter<std::vector<int32_t>>(
"ieta");
50 std::vector<int32_t> subdet_calib_iphis = vLedCalibChannels[
i].getUntrackedParameter<std::vector<int32_t>>(
"iphi");
51 std::vector<int32_t> subdet_calib_depths =
52 vLedCalibChannels[
i].getUntrackedParameter<std::vector<int32_t>>(
"depth");
53 for (
unsigned int ichannel = 0; ichannel < subdet_calib_ietas.size(); ++ichannel) {
55 HcalOther, subdet_calib_ietas[ichannel], subdet_calib_iphis[ichannel], subdet_calib_depths[ichannel]));
62 if (
r.runAuxiliary().run() == 1)
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) {
520 double sumQ = hcaldqm::utilities::sumQDB<HODataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
size() - 1);
523 double aveTS = hcaldqm::utilities::aveTSDB<HODataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
size() - 1);
532 for (
int i = 0;
i < digi.
size();
i++) {
535 eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<HODataFrame>(
_dbService, digi_fC, did, digi,
i));
539 for (
int iTS = 0; iTS < digi.
size(); ++iTS) {
550 const QIE10DataFrame digi = static_cast<const QIE10DataFrame>(*it);
576 double sumQ = hcaldqm::utilities::sumQDB<QIE10DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
samples() - 1);
579 double aveTS = hcaldqm::utilities::aveTSDB<QIE10DataFrame>(
_dbService, digi_fC, did, digi, 0, digi.
size() - 1);
593 eid,
i, hcaldqm::utilities::adc2fCDBMinusPedestal<QIE10DataFrame>(
_dbService, digi_fC, did, digi,
i));
597 for (
int iTS = 0; iTS < digi.
samples(); ++iTS) {
602 for (
int iTS = 0; iTS < digi.
samples(); ++iTS) {
603 if (digi[iTS].le_tdc() < 50) {
604 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
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
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
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
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
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.
edm::ESHandle< HcalDbService > _dbService
constexpr int size() const
total number of samples in the digi
edm::EDGetTokenT< HcalTBTriggerData > _tokTrigger
hcaldqm::Container1D _cSignalRMS_Subdet
edm::InputTag _tagTrigger
hcaldqm::ContainerProf2D _cSignalRMS_depth
constexpr DetId detid() const
Get the detector id.
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
hcaldqm::ContainerProf2D _cTimingMean_FEDVME
void _resetMonitors(hcaldqm::UpdateFreq) override
const int CALIBEVENTS_MIN
const HcalElectronicsMap * _emap
virtual void book(DQMStore::IBooker &, std::string subsystem="Hcal", std::string aux="")
hcaldqm::ContainerProf2D _cSignalMean_FEDVME
T getParameter(std::string const &) const
virtual void book(HcalElectronicsMap const *)
hcaldqm::Container2D _LED_ADCvsBX_Subdet
virtual STDTYPE & get(HcalDetId const &)
hcaldqm::Container1D _cTimingRMS_Subdet
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