#include <EcalMixingModuleValidation.h>
Public Member Functions | |
void | bookHistograms (DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override |
EcalMixingModuleValidation (const edm::ParameterSet &ps) | |
Constructor. More... | |
~EcalMixingModuleValidation () override | |
Destructor. More... | |
Public Member Functions inherited from one::DQMEDAnalyzer< T > | |
DQMEDAnalyzer ()=default | |
DQMEDAnalyzer (DQMEDAnalyzer< T... > const &)=delete | |
DQMEDAnalyzer (DQMEDAnalyzer< T... > &&)=delete | |
~DQMEDAnalyzer () override=default | |
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 | endRun (const edm::Run &r, const edm::EventSetup &c) override |
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 77 of file EcalMixingModuleValidation.h.
EcalMixingModuleValidation::EcalMixingModuleValidation | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 19 of file EcalMixingModuleValidation.cc.
References barrelADCtoGeV_, ecalEBTriggerPrimitiveDigis_cfi::binOfMaximum, 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, ecalSimParameterMap_cff::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 |
|
overrideprotected |
Analyze.
Definition at line 287 of file EcalMixingModuleValidation.cc.
References ESSample::adc(), EcalMGPASample::adc(), barrelADCtoGeV_, cosmicBasicClusters_cfi::barrelHits, checkPedestals(), computeSDBunchDigi(), crossingFramePCaloHitEBToken_, crossingFramePCaloHitEEToken_, crossingFramePCaloHitESToken_, EBdigiCollectionToken_, EcalBarrel, EcalEndcap, EcalPreshower, EEdigiCollectionToken_, edm::DataFrameContainer::empty(), endcapADCtoGeV_, cosmicBasicClusters_cfi::endcapHits, esADCtokeV_, esBaseline_, ESdigiCollectionToken_, esThreshold_, MonitorElement::Fill(), ESCondObjectContainer< T >::find(), findPedestal(), gainConv_, EcalMGPASample::gainId(), edm::Event::getByToken(), edm::HepMCProduct::GetEvent(), ESCondObjectContainer< T >::getMap(), HepMCToken_, mps_fire::i, ESDataFrame::id(), EEDataFrame::id(), EBDataFrame::id(), EBDetId::ieta(), createfilelist::int, EBDetId::iphi(), GeomDetEnumerators::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(), dataAnalyzerFineBiningParameters_cff::Pmax, gedPhotons_cfi::preshowerHits, edm::Handle< T >::product(), randomEngine(), DetId::rawId(), edm::DataFrameContainer::reserve(), simplePhotonAnalyzer_cfi::sample, ESDetId::six(), ESDetId::siy(), ESDataFrame::size(), EcalDataFrame::size(), edm::DataFrameContainer::size(), edm::Event::streamID(), ESDetId::strip(), ESDetId::zside(), and EEDetId::zside().
|
override |
Definition at line 143 of file EcalMixingModuleValidation.cc.
References DQMStore::IBooker::book1D(), DQMStore::IBooker::bookProfile(), trackerHits::histo, mps_fire::i, meEBbunchCrossing_, meEBBunchShape_, meEBDigiMixRatiogt100ADC_, meEBDigiMixRatioOriggt50pc_, meEBShape_, meEBShapeRatio_, meEEbunchCrossing_, meEEBunchShape_, meEEDigiMixRatiogt100ADC_, meEEDigiMixRatioOriggt40pc_, meEEShape_, meEEShapeRatio_, meESbunchCrossing_, meESBunchShape_, meESShape_, meESShapeRatio_, nBunch, and DQMStore::IBooker::setCurrentFolder().
|
private |
Definition at line 229 of file EcalMixingModuleValidation.cc.
References gather_cfg::cout, MonitorElement::getBinContent(), MonitorElement::getBinError(), funct::pow(), particleFlowDisplacedVertex_cfi::ratio, MonitorElement::setBinContent(), MonitorElement::setBinError(), mathSSE::sqrt(), theMaxBunch, theMinBunch, and pileupDistInMC::total.
Referenced by endRun().
|
private |
Definition at line 625 of file EcalMixingModuleValidation.cc.
References barrelADCtoGeV_, endcapADCtoGeV_, esADCtokeV_, EcalMGPAGainRatio::gain12Over6(), EcalMGPAGainRatio::gain6Over1(), gainConv_, edm::EventSetup::get(), EcalADCToGeVConstant::getEBValue(), EcalADCToGeVConstant::getEEValue(), ESGain::getESGain(), ESMIPToGeVConstant::getESValueHigh(), ESMIPToGeVConstant::getESValueLow(), createfilelist::int, LogDebug, m_ESeffwei, m_ESgain, m_ESmips, m_ESpeds, edm::ESHandle< T >::product(), ESShape::setGain(), and theESShape.
Referenced by dqmBeginRun().
|
private |
Definition at line 677 of file EcalMixingModuleValidation.cc.
References edm::EventSetup::get(), edm::ESHandle< T >::product(), and thePedestals.
Referenced by analyze().
|
private |
Definition at line 718 of file EcalMixingModuleValidation.cc.
References CaloHitResponse::clear(), DetId::Ecal, EcalBarrel, EcalEndcap, EcalPreshower, MonitorElement::Fill(), CaloHitResponse::findSignal(), edm::EventSetup::get(), CaloGeometry::getValidDetIds(), mps_fire::i, CaloSamples::id(), MessageLogger_cfi::limit, ESDataFrame::MAXSAMPLES, CaloSamples::MAXSAMPLES, meEBBunchShape_, meEEBunchShape_, meESBunchShape_, hcalSimParameters_cfi::photoelectronsToAnalog, CaloHitResponse::run(), CaloHitResponse::setBunchRange(), CaloHitResponse::setGeometry(), EcalSimParameterMap::simParameters(), theEBResponse, theEEResponse, theESResponse, theGeometry, theMaxBunch, theMinBunch, and theParameterMap.
Referenced by analyze().
|
overrideprotected |
Definition at line 136 of file EcalMixingModuleValidation.cc.
References checkCalibrations(), EcalShapeBase::setEventSetup(), theEBShape, and theEEShape.
|
overrideprotected |
Definition at line 203 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 688 of file EcalMixingModuleValidation.cc.
References EcalCondObjectContainer< T >::end(), EcalCondObjectContainer< T >::find(), ecalMGPA::gainId(), EcalCondObjectContainer< T >::getMap(), LogDebug, EcalPedestal::mean_x1, EcalPedestal::mean_x12, EcalPedestal::mean_x6, DetId::rawId(), EcalCondObjectContainer< T >::size(), and thePedestals.
Referenced by analyze().
|
private |
Definition at line 812 of file EcalMixingModuleValidation.cc.
References edm::RandomNumberGenerator::getEngine(), randomEngines_, and edm::StreamID::value().
Referenced by analyze().
|
private |
Definition at line 123 of file EcalMixingModuleValidation.h.
Referenced by analyze(), checkCalibrations(), and EcalMixingModuleValidation().
|
private |
Definition at line 119 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 119 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 119 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 115 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 116 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 124 of file EcalMixingModuleValidation.h.
Referenced by analyze(), checkCalibrations(), and EcalMixingModuleValidation().
|
private |
Definition at line 169 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and checkCalibrations().
|
private |
Definition at line 168 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 117 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 170 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 121 of file EcalMixingModuleValidation.h.
Referenced by analyze(), checkCalibrations(), and EcalMixingModuleValidation().
|
private |
Definition at line 113 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 183 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and checkCalibrations().
|
private |
Definition at line 180 of file EcalMixingModuleValidation.h.
Referenced by checkCalibrations().
|
private |
Definition at line 182 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and checkCalibrations().
|
private |
Definition at line 181 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and checkCalibrations().
|
private |
Definition at line 132 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), and EcalMixingModuleValidation().
|
private |
Definition at line 138 of file EcalMixingModuleValidation.h.
Referenced by bookHistograms(), computeSDBunchDigi(), EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 126 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), and EcalMixingModuleValidation().
|
private |
Definition at line 129 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), and EcalMixingModuleValidation().
|
private |
Definition at line 142 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 146 of file EcalMixingModuleValidation.h.
Referenced by bookHistograms(), EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 133 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), and EcalMixingModuleValidation().
|
private |
Definition at line 139 of file EcalMixingModuleValidation.h.
Referenced by bookHistograms(), computeSDBunchDigi(), EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 127 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), and EcalMixingModuleValidation().
|
private |
Definition at line 130 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), and EcalMixingModuleValidation().
|
private |
Definition at line 143 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 147 of file EcalMixingModuleValidation.h.
Referenced by bookHistograms(), EcalMixingModuleValidation(), and endRun().
|
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(), EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 144 of file EcalMixingModuleValidation.h.
Referenced by analyze(), bookHistograms(), EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 148 of file EcalMixingModuleValidation.h.
Referenced by bookHistograms(), EcalMixingModuleValidation(), and endRun().
|
staticprivate |
Definition at line 136 of file EcalMixingModuleValidation.h.
Referenced by bookHistograms(), EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 111 of file EcalMixingModuleValidation.h.
|
private |
Definition at line 185 of file EcalMixingModuleValidation.h.
Referenced by randomEngine().
|
private |
Definition at line 159 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 153 of file EcalMixingModuleValidation.h.
Referenced by dqmBeginRun(), and EcalMixingModuleValidation().
|
private |
Definition at line 160 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 154 of file EcalMixingModuleValidation.h.
Referenced by dqmBeginRun(), and EcalMixingModuleValidation().
|
private |
Definition at line 158 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 152 of file EcalMixingModuleValidation.h.
Referenced by checkCalibrations(), and EcalMixingModuleValidation().
|
private |
Definition at line 175 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi().
|
private |
Definition at line 173 of file EcalMixingModuleValidation.h.
Referenced by bunchSumTest(), computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 172 of file EcalMixingModuleValidation.h.
Referenced by bunchSumTest(), computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 150 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 178 of file EcalMixingModuleValidation.h.
Referenced by checkPedestals(), and findPedestal().
|
private |
Definition at line 108 of file EcalMixingModuleValidation.h.
Referenced by EcalMixingModuleValidation().