#include <EcalMixingModuleValidation.h>
Public Member Functions | |
EcalMixingModuleValidation (const edm::ParameterSet &ps) | |
Constructor. More... | |
~EcalMixingModuleValidation () | |
Destructor. More... | |
Public Member Functions inherited from edm::EDAnalyzer | |
EDAnalyzer () | |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
EDConsumerBase () | |
ProductHolderIndex | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Protected Member Functions | |
void | analyze (edm::Event const &e, edm::EventSetup const &c) |
Analyze. More... | |
void | beginRun (edm::Run const &, edm::EventSetup const &c) |
void | endJob (void) |
void | endRun (const edm::Run &r, const edm::EventSetup &c) |
Protected Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
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 ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
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) |
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, MixCollection< PCaloHit > &theHits, MapType &ebSignalSimMap, const EcalSubdetector &thisDet, const double &theSimThreshold) |
void | findPedestal (const DetId &detId, int gainId, double &ped) const |
Static Private Attributes | |
static const int | nBunch = 21 |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
typedef WorkerT< EDAnalyzer > | WorkerType |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Definition at line 68 of file EcalMixingModuleValidation.h.
|
private |
Definition at line 70 of file EcalMixingModuleValidation.h.
EcalMixingModuleValidation::EcalMixingModuleValidation | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 24 of file EcalMixingModuleValidation.cc.
References barrelADCtoGeV_, ecalTPGAnalyzer_cfg::binOfMaximum, dbe_, endcapADCtoGeV_, gainConv_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), timingPdfMaker::histo, i, meEBbunchCrossing_, meEBBunchShape_, meEBDigiMixRatiogt100ADC_, meEBDigiMixRatioOriggt50pc_, meEBShape_, meEBShapeRatio_, meEEbunchCrossing_, meEEBunchShape_, meEEDigiMixRatiogt100ADC_, meEEDigiMixRatioOriggt40pc_, meEEShape_, meEEShapeRatio_, meESbunchCrossing_, meESBunchShape_, meESShape_, meESShapeRatio_, nBunch, cppFunctionSkipper::operator, theEBResponse, theEBShape, theEEResponse, theEEShape, theESResponse, theESShape, theMaxBunch, theMinBunch, theParameterMap, and verbose_.
EcalMixingModuleValidation::~EcalMixingModuleValidation | ( | ) |
|
protectedvirtual |
Analyze.
Implements edm::EDAnalyzer.
Definition at line 298 of file EcalMixingModuleValidation.cc.
References ESSample::adc(), EcalMGPASample::adc(), barrelADCtoGeV_, checkPedestals(), computeSDBunchDigi(), EBdigiCollection_, EcalBarrel, EcalEndcap, EcalPreshower, EEdigiCollection_, endcapADCtoGeV_, esADCtokeV_, esBaseline_, ESdigiCollection_, esThreshold_, MonitorElement::Fill(), ESCondObjectContainer< T >::find(), findPedestal(), gainConv_, EcalMGPASample::gainId(), edm::Event::getByLabel(), ESCondObjectContainer< T >::getMap(), HepMCLabel, hitsProducer_, i, ESDataFrame::id(), EEDataFrame::id(), EBDataFrame::id(), EBDetId::ieta(), EBDetId::iphi(), 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(), edm::Handle< T >::product(), DetId::rawId(), compare_using_db::sample, ESDetId::six(), ESDetId::siy(), ESDataFrame::size(), EcalDataFrame::size(), edm::DataFrameContainer::size(), AlCaHLTBitMon_QueryRunRegistry::string, ESDetId::strip(), ESDetId::zside(), and EEDetId::zside().
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 205 of file EcalMixingModuleValidation.cc.
References checkCalibrations().
|
private |
Definition at line 240 of file EcalMixingModuleValidation.cc.
References gather_cfg::cout, MonitorElement::getBinContent(), MonitorElement::getBinError(), funct::pow(), MonitorElement::setBinContent(), MonitorElement::setBinError(), mathSSE::sqrt(), theMaxBunch, theMinBunch, and pileupDistInMC::total.
Referenced by endRun().
|
private |
Definition at line 649 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(), LogDebug, m_ESeffwei, m_ESgain, m_ESmips, m_ESpeds, edm::ESHandle< class >::product(), ESShape::setGain(), and theESShape.
Referenced by beginRun().
|
private |
Definition at line 701 of file EcalMixingModuleValidation.cc.
References edm::EventSetup::get(), edm::ESHandle< class >::product(), and thePedestals.
Referenced by analyze().
|
private |
Definition at line 742 of file EcalMixingModuleValidation.cc.
References CaloHitResponse::clear(), DetId::Ecal, EcalBarrel, EcalEndcap, EcalPreshower, MonitorElement::Fill(), CaloHitResponse::findSignal(), edm::EventSetup::get(), CaloGeometry::getValidDetIds(), i, CaloSamples::id(), MessageLogger_cff::limit, ESDataFrame::MAXSAMPLES, CaloSamples::MAXSAMPLES, meEBBunchShape_, meEEBunchShape_, meESBunchShape_, CaloHitResponse::run(), CaloHitResponse::setBunchRange(), CaloHitResponse::setGeometry(), EcalSimParameterMap::simParameters(), theEBResponse, theEEResponse, theESResponse, theGeometry, theMaxBunch, theMinBunch, and theParameterMap.
Referenced by analyze().
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 211 of file EcalMixingModuleValidation.cc.
|
protectedvirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 214 of file EcalMixingModuleValidation.cc.
References bunchSumTest(), i, ESDataFrame::MAXSAMPLES, EcalDataFrame::MAXSAMPLES, meEBBunchShape_, meEBShape_, meEBShapeRatio_, meEEBunchShape_, meEEShape_, meEEShapeRatio_, meESBunchShape_, meESShape_, meESShapeRatio_, and nBunch.
|
private |
Definition at line 712 of file EcalMixingModuleValidation.cc.
References EcalCondObjectContainer< T >::end(), EcalCondObjectContainer< T >::find(), ecalMGPA::gainId(), EcalCondObjectContainer< T >::getMap(), LogDebug, DetId::rawId(), EcalCondObjectContainer< T >::size(), and thePedestals.
Referenced by analyze().
|
private |
Definition at line 117 of file EcalMixingModuleValidation.h.
Referenced by analyze(), checkCalibrations(), and EcalMixingModuleValidation().
|
private |
Definition at line 107 of file EcalMixingModuleValidation.h.
Referenced by EcalMixingModuleValidation().
|
private |
Definition at line 111 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 112 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 118 of file EcalMixingModuleValidation.h.
Referenced by analyze(), checkCalibrations(), and EcalMixingModuleValidation().
|
private |
Definition at line 161 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and checkCalibrations().
|
private |
Definition at line 160 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 113 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 162 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 115 of file EcalMixingModuleValidation.h.
Referenced by analyze(), checkCalibrations(), and EcalMixingModuleValidation().
|
private |
Definition at line 102 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 103 of file EcalMixingModuleValidation.h.
Referenced by analyze().
|
private |
Definition at line 175 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and checkCalibrations().
|
private |
Definition at line 172 of file EcalMixingModuleValidation.h.
Referenced by checkCalibrations().
|
private |
Definition at line 174 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and checkCalibrations().
|
private |
Definition at line 173 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and checkCalibrations().
|
private |
Definition at line 126 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and EcalMixingModuleValidation().
|
private |
Definition at line 132 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 120 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and EcalMixingModuleValidation().
|
private |
Definition at line 123 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and EcalMixingModuleValidation().
|
private |
Definition at line 136 of file EcalMixingModuleValidation.h.
Referenced by analyze(), EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 140 of file EcalMixingModuleValidation.h.
Referenced by EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 127 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and EcalMixingModuleValidation().
|
private |
Definition at line 133 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 121 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and EcalMixingModuleValidation().
|
private |
Definition at line 124 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and EcalMixingModuleValidation().
|
private |
Definition at line 137 of file EcalMixingModuleValidation.h.
Referenced by analyze(), EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 141 of file EcalMixingModuleValidation.h.
Referenced by EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 128 of file EcalMixingModuleValidation.h.
Referenced by analyze(), and EcalMixingModuleValidation().
|
private |
Definition at line 134 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 138 of file EcalMixingModuleValidation.h.
Referenced by analyze(), EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 142 of file EcalMixingModuleValidation.h.
Referenced by EcalMixingModuleValidation(), and endRun().
|
staticprivate |
Definition at line 130 of file EcalMixingModuleValidation.h.
Referenced by EcalMixingModuleValidation(), and endRun().
|
private |
Definition at line 109 of file EcalMixingModuleValidation.h.
|
private |
Definition at line 153 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 147 of file EcalMixingModuleValidation.h.
Referenced by EcalMixingModuleValidation().
|
private |
Definition at line 154 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 148 of file EcalMixingModuleValidation.h.
Referenced by EcalMixingModuleValidation().
|
private |
Definition at line 152 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 146 of file EcalMixingModuleValidation.h.
Referenced by checkCalibrations(), and EcalMixingModuleValidation().
|
private |
Definition at line 167 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi().
|
private |
Definition at line 165 of file EcalMixingModuleValidation.h.
Referenced by bunchSumTest(), computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 164 of file EcalMixingModuleValidation.h.
Referenced by bunchSumTest(), computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 144 of file EcalMixingModuleValidation.h.
Referenced by computeSDBunchDigi(), and EcalMixingModuleValidation().
|
private |
Definition at line 170 of file EcalMixingModuleValidation.h.
Referenced by checkPedestals(), and findPedestal().
|
private |
Definition at line 105 of file EcalMixingModuleValidation.h.
Referenced by EcalMixingModuleValidation().