#include <EcalMixingModuleValidation.h>
Protected Member Functions | |
void | analyze (edm::Event const &e, edm::EventSetup const &c) override |
Analyze. More... | |
void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) override |
void | dqmEndRun (const edm::Run &r, const edm::EventSetup &c) override |
Protected Member Functions inherited from edm::ProducerBase | |
template<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Private Types | |
typedef std::map< uint32_t, float, std::less< uint32_t > > | MapType |
Private Member Functions | |
void | bunchSumTest (std::vector< MonitorElement *> &theBunches, MonitorElement *&theTotal, MonitorElement *&theRatio, int nSample) |
void | checkCalibrations (edm::EventSetup const &c) |
void | checkPedestals (const edm::EventSetup &c) |
void | computeSDBunchDigi (const edm::EventSetup &eventSetup, const MixCollection< PCaloHit > &theHits, MapType &ebSignalSimMap, const EcalSubdetector &thisDet, const double &theSimThreshold, CLHEP::HepRandomEngine *) |
void | findPedestal (const DetId &detId, int gainId, double &ped) const |
CLHEP::HepRandomEngine * | randomEngine (edm::StreamID const &streamID) |
Static Private Attributes | |
static const int | nBunch = 21 |
Definition at line 75 of file EcalMixingModuleValidation.h.
|
private |
Definition at line 76 of file EcalMixingModuleValidation.h.
EcalMixingModuleValidation::EcalMixingModuleValidation | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 19 of file EcalMixingModuleValidation.cc.
References barrelADCtoGeV_, ecalEBTriggerPrimitiveDigis_cfi::binOfMaximum, edm::EDConsumerBase::consumesCollector(), ecalSimParameterMap_cff::doPhotostatistics, endcapADCtoGeV_, gainConv_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), mps_fire::i, meEBbunchCrossing_, meEBBunchShape_, meEBDigiMixRatiogt100ADC_, meEBDigiMixRatioOriggt50pc_, meEBShape_, meEBShapeRatio_, meEEbunchCrossing_, meEEBunchShape_, meEEDigiMixRatiogt100ADC_, meEEDigiMixRatioOriggt40pc_, meEEShape_, meEEShapeRatio_, meESbunchCrossing_, meESBunchShape_, meESShape_, meESShapeRatio_, nBunch, ecalSimParameterMap_cff::photoelectronsToAnalogBarrel, ecalSimParameterMap_cff::photoelectronsToAnalogEndcap, hcalSimParameters_cfi::readoutFrameSize, ecalSimParameterMap_cff::samplingFactor, ecalSimParameterMap_cff::simHitToPhotoelectronsBarrel, ecalSimParameterMap_cff::simHitToPhotoelectronsEndcap, ecalSimParameterMap_cff::syncPhase, theEBResponse, theEBShape, theEEResponse, theEEShape, theESResponse, theESShape, theMaxBunch, theMinBunch, theParameterMap, ecalSimParameterMap_cff::timePhase, and verbose_.
|
override |
|
overrideprotectedvirtual |
Analyze.
Reimplemented from DQMOneEDAnalyzer<>.
Definition at line 277 of file EcalMixingModuleValidation.cc.
References barrelADCtoGeV_, HLT_2023v12_cff::barrelHits, HltBtagPostValidation_cff::c, checkPedestals(), computeSDBunchDigi(), crossingFramePCaloHitEBToken_, crossingFramePCaloHitEEToken_, crossingFramePCaloHitESToken_, MillePedeFileConverter_cfg::e, EBdigiCollectionToken_, EcalBarrel, EcalEndcap, EcalPreshower, EEdigiCollectionToken_, edm::DataFrameContainer::empty(), endcapADCtoGeV_, HLT_2023v12_cff::endcapHits, esADCtokeV_, esBaseline_, ESdigiCollectionToken_, esThreshold_, dqm::impl::MonitorElement::Fill(), ESCondObjectContainer< T >::find(), findPedestal(), gainConv_, edm::HepMCProduct::GetEvent(), ESCondObjectContainer< T >::getMap(), HepMCToken_, mps_fire::i, ESDataFrame::id(), EEDataFrame::id(), EBDataFrame::id(), EBDetId::ieta(), createfilelist::int, EBDetId::iphi(), PixelPluginsPhase0_cfi::isBarrel, GeomDetEnumerators::isEndcap(), edm::HandleBase::isValid(), EEDetId::ix(), EEDetId::iy(), LogDebug, m_ESeffwei, m_ESmips, m_ESpeds, ESDataFrame::MAXSAMPLES, EcalDataFrame::MAXSAMPLES, meEBbunchCrossing_, meEBDigiMixRatiogt100ADC_, meEBDigiMixRatioOriggt50pc_, meEBShape_, meEEbunchCrossing_, meEEDigiMixRatiogt100ADC_, meEEDigiMixRatioOriggt40pc_, meEEShape_, meESbunchCrossing_, meESShape_, ecalTB2006H4_GenSimDigiReco_cfg::mySample, AlCaHLTBitMon_ParallelJobs::p, ESDetId::plane(), ElectronMcFakeValidator_cfi::Pmax, gedPhotons_cfi::preshowerHits, edm::Handle< T >::product(), randomEngine(), DetId::rawId(), edm::DataFrameContainer::reserve(), ecalGpuTask_cfi::sample, ESDetId::six(), ESDetId::siy(), ESDataFrame::size(), EcalDataFrame::size(), edm::DataFrameContainer::size(), ESDetId::strip(), ESDetId::zside(), and EEDetId::zside().
|
overridevirtual |
Implements DQMOneEDAnalyzer<>.
Definition at line 142 of file EcalMixingModuleValidation.cc.
References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::bookProfile(), timingPdfMaker::histo, mps_fire::i, meEBbunchCrossing_, meEBBunchShape_, meEBDigiMixRatiogt100ADC_, meEBDigiMixRatioOriggt50pc_, meEBShape_, meEBShapeRatio_, meEEbunchCrossing_, meEEBunchShape_, meEEDigiMixRatiogt100ADC_, meEEDigiMixRatioOriggt40pc_, meEEShape_, meEEShapeRatio_, meESbunchCrossing_, meESBunchShape_, meESShape_, meESShapeRatio_, nBunch, and dqm::implementation::NavigatorBase::setCurrentFolder().
|
private |
Definition at line 223 of file EcalMixingModuleValidation.cc.
References gather_cfg::cout, dqm::impl::MonitorElement::getBinContent(), dqm::impl::MonitorElement::getBinError(), conifer::pow(), particleFlowDisplacedVertex_cfi::ratio, dqm::impl::MonitorElement::setBinContent(), dqm::impl::MonitorElement::setBinError(), mathSSE::sqrt(), theMaxBunch, theMinBunch, and dqmMemoryStats::total.
Referenced by dqmEndRun().
|
private |
Definition at line 613 of file EcalMixingModuleValidation.cc.
References barrelADCtoGeV_, endcapADCtoGeV_, esADCtokeV_, esgain_, esMIPs_, esMIPToGeV_, esPedestals_, options_cfi::eventSetup, EcalMGPAGainRatio::gain12Over6(), EcalMGPAGainRatio::gain6Over1(), gainConv_, EcalADCToGeVConstant::getEBValue(), EcalADCToGeVConstant::getEEValue(), ESGain::getESGain(), ESMIPToGeVConstant::getESValueHigh(), ESMIPToGeVConstant::getESValueLow(), createfilelist::int, LogDebug, m_ESeffwei, m_ESgain, m_ESmips, m_ESpeds, pAgc, and theESShape.
Referenced by dqmBeginRun().
|
private |
Definition at line 650 of file EcalMixingModuleValidation.cc.
References dbPed, options_cfi::eventSetup, and thePedestals.
Referenced by analyze().
|
private |
Definition at line 687 of file EcalMixingModuleValidation.cc.
References DetId::Ecal, EcalBarrel, EcalEndcap, EcalPreshower, options_cfi::eventSetup, dqm::impl::MonitorElement::Fill(), CaloGeometry::getValidDetIds(), hGeometry, mps_fire::i, CaloSamples::id(), remoteMonitoring_LASER_era2018_cfg::limit, ESDataFrame::MAXSAMPLES, CaloSamples::MAXSAMPLES, meEBBunchShape_, meEEBunchShape_, meESBunchShape_, hcalSimParameters_cfi::photoelectronsToAnalog, theEBResponse, theEEResponse, theESResponse, theGeometry, bscTrigger_cfi::theHits, theMaxBunch, theMinBunch, and theParameterMap.
Referenced by analyze().
|
overrideprotectedvirtual |
Reimplemented from DQMOneEDAnalyzer<>.
Definition at line 136 of file EcalMixingModuleValidation.cc.
References HltBtagPostValidation_cff::c, checkCalibrations(), theEBShape, and theEEShape.
|
overrideprotectedvirtual |
Reimplemented from DQMOneEDAnalyzer<>.
Definition at line 198 of file EcalMixingModuleValidation.cc.
References bunchSumTest(), mps_fire::i, ESDataFrame::MAXSAMPLES, EcalDataFrame::MAXSAMPLES, meEBBunchShape_, meEBShape_, meEBShapeRatio_, meEEBunchShape_, meEEShape_, meEEShapeRatio_, meESBunchShape_, meESShape_, meESShapeRatio_, and nBunch.
|
private |
Definition at line 656 of file EcalMixingModuleValidation.cc.
References hcalRecHitTable_cff::detId, EcalCondObjectContainer< T >::end(), EcalCondObjectContainer< T >::find(), ecalLiteDTU::gainId(), EcalCondObjectContainer< T >::getMap(), B2GTnPMonitor_cfi::item, LogDebug, EcalCondObjectContainer< T >::size(), and thePedestals.
Referenced by analyze().
|
private |
Definition at line 776 of file EcalMixingModuleValidation.cc.
References edm::RandomNumberGenerator::getEngine(), randomEngines_, and edm::StreamID::value().
Referenced by analyze().
|
private |
Definition at line 125 of file EcalMixingModuleValidation.h.
Referenced by analyze(), checkCalibrations(), and EcalMixingModuleValidation().
|
private |
Definition at line 112 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 112 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 112 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 120 of file EcalMixingModuleValidation.h.
Referenced by checkPedestals().
|
private |
Definition at line 109 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 110 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 126 of file EcalMixingModuleValidation.h.
Referenced by analyze(), checkCalibrations(), and EcalMixingModuleValidation().
|
private |
Definition at line 178 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and checkCalibrations().
|
private |
Definition at line 177 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 111 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 116 of file EcalMixingModuleValidation.h.
Referenced by checkCalibrations().
|
private |
Definition at line 119 of file EcalMixingModuleValidation.h.
Referenced by checkCalibrations().
|
private |
Definition at line 117 of file EcalMixingModuleValidation.h.
Referenced by checkCalibrations().
|
private |
Definition at line 118 of file EcalMixingModuleValidation.h.
Referenced by checkCalibrations().
|
private |
Definition at line 179 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 123 of file EcalMixingModuleValidation.h.
Referenced by analyze(), checkCalibrations(), and EcalMixingModuleValidation().
|
private |
Definition at line 107 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 121 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi().
|
private |
Definition at line 192 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and checkCalibrations().
|
private |
Definition at line 189 of file EcalMixingModuleValidation.h.
Referenced by checkCalibrations().
|
private |
Definition at line 191 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and checkCalibrations().
|
private |
Definition at line 190 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and checkCalibrations().
|
private |
Definition at line 134 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), and EcalMixingModuleValidation().
|
private |
Definition at line 140 of file EcalMixingModuleValidation.h.
Referenced by bookHistograms(), computeSDBunchDigi(), dqmEndRun(), and EcalMixingModuleValidation().
|
private |
Definition at line 128 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), and EcalMixingModuleValidation().
|
private |
Definition at line 131 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), and EcalMixingModuleValidation().
|
private |
Definition at line 144 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), dqmEndRun(), and EcalMixingModuleValidation().
|
private |
Definition at line 148 of file EcalMixingModuleValidation.h.
Referenced by bookHistograms(), dqmEndRun(), and EcalMixingModuleValidation().
|
private |
Definition at line 135 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), and EcalMixingModuleValidation().
|
private |
Definition at line 141 of file EcalMixingModuleValidation.h.
Referenced by bookHistograms(), computeSDBunchDigi(), dqmEndRun(), and EcalMixingModuleValidation().
|
private |
Definition at line 129 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), and EcalMixingModuleValidation().
|
private |
Definition at line 132 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), and EcalMixingModuleValidation().
|
private |
Definition at line 145 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), dqmEndRun(), and EcalMixingModuleValidation().
|
private |
Definition at line 149 of file EcalMixingModuleValidation.h.
Referenced by bookHistograms(), dqmEndRun(), and EcalMixingModuleValidation().
|
private |
Definition at line 136 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), and EcalMixingModuleValidation().
|
private |
Definition at line 142 of file EcalMixingModuleValidation.h.
Referenced by bookHistograms(), computeSDBunchDigi(), dqmEndRun(), and EcalMixingModuleValidation().
|
private |
Definition at line 146 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), dqmEndRun(), and EcalMixingModuleValidation().
|
private |
Definition at line 150 of file EcalMixingModuleValidation.h.
Referenced by bookHistograms(), dqmEndRun(), and EcalMixingModuleValidation().
|
staticprivate |
Definition at line 138 of file EcalMixingModuleValidation.h.
Referenced by bookHistograms(), dqmEndRun(), and EcalMixingModuleValidation().
|
private |
Definition at line 105 of file EcalMixingModuleValidation.h.
|
private |
Definition at line 115 of file EcalMixingModuleValidation.h.
Referenced by checkCalibrations().
|
private |
Definition at line 194 of file EcalMixingModuleValidation.h.
Referenced by randomEngine().
|
private |
Definition at line 160 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 155 of file EcalMixingModuleValidation.h.
Referenced by dqmBeginRun(), and EcalMixingModuleValidation().
|
private |
Definition at line 161 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 156 of file EcalMixingModuleValidation.h.
Referenced by dqmBeginRun(), and EcalMixingModuleValidation().
|
private |
Definition at line 159 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 154 of file EcalMixingModuleValidation.h.
Referenced by checkCalibrations(), and EcalMixingModuleValidation().
|
private |
Definition at line 184 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi().
|
private |
Definition at line 182 of file EcalMixingModuleValidation.h.
Referenced by bunchSumTest(), computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 181 of file EcalMixingModuleValidation.h.
Referenced by bunchSumTest(), computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 152 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 187 of file EcalMixingModuleValidation.h.
Referenced by checkPedestals(), and findPedestal().
|
private |
Definition at line 103 of file EcalMixingModuleValidation.h.
Referenced by EcalMixingModuleValidation().