#include <SiStripGainsPCLHarvester.h>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::one::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | algoComputeMPVandGain (const MonitorElement *Charge_Vs_Index) |
virtual void | checkBookAPVColls (const edm::EventSetup &setup) |
void | dqmEndJob (DQMStore::IBooker &ibooker_, DQMStore::IGetter &igetter_) override |
void | gainQualityMonitor (DQMStore::IBooker &ibooker_, const MonitorElement *Charge_Vs_Index) const |
std::unique_ptr< SiStripApvGain > | getNewObject (const MonitorElement *Charge_Vs_Index) |
void | getPeakOfLandau (TH1 *InputHisto, double *FitResults, double LowRange=50, double HighRange=5400, bool gaussianConvolution=false) |
bool | IsGoodLandauFit (double *FitResults) |
bool | produceTagFilter (const MonitorElement *Charge_Vs_Index) |
int | statCollectionFromMode (const char *tag) const |
void | storeGainsTree (const TAxis *chVsIdxXaxis) const |
Additional Inherited Members | |
Public Types inherited from DQMEDHarvester | |
typedef dqm::harvesting::DQMStore | DQMStore |
typedef dqm::harvesting::MonitorElement | MonitorElement |
Public Types inherited from edm::one::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
template<typename T > | |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
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) |
Protected Attributes inherited from DQMEDHarvester | |
DQMStore * | dqmstore_ |
edm::GetterOfProducts< DQMToken > | jobmegetter_ |
edm::EDPutTokenT< DQMToken > | jobToken_ |
edm::GetterOfProducts< DQMToken > | lumimegetter_ |
edm::EDPutTokenT< DQMToken > | lumiToken_ |
edm::GetterOfProducts< DQMToken > | runmegetter_ |
edm::EDPutTokenT< DQMToken > | runToken_ |
Description: Harvests output of SiStripGainsPCLWorker and creates histograms and Gains Payload
Definition at line 50 of file SiStripGainsPCLHarvester.h.
|
explicit |
Definition at line 34 of file SiStripGainsPCLHarvester.cc.
References CalibrationLevel, doChargeMonitorPerPlane, dqm_tag_, fit_dataDrivenRange_, fit_gaussianConvolution_, fit_gaussianConvolutionTOBL56_, gainToken_, edm::ParameterSet::getUntrackedParameter(), m_calibrationMode, m_DQMdir, m_Record, MinNrEntries, qualityToken_, storeGainsTree_, AlCaHLTBitMon_QueryRunRegistry::string, tagCondition_GoodFrac, tagCondition_NClusters, tkGeomToken_, tTopoTokenBR_, tTopoTokenER_, and VChargeHisto.
|
private |
Definition at line 490 of file SiStripGainsPCLHarvester.cc.
References A, sistrip::APV, APVsColl, cms::cuda::assert(), B, BAD, CalibrationLevel, ntuplemaker::fill, fit_dataDrivenRange_, fit_gaussianConvolution_, fit_gaussianConvolutionTOBL56_, getPeakOfLandau(), GOOD, Exhume::I, mps_fire::i, IsGoodLandauFit(), m_calibrationMode, MASKED, mps_setup::stdout, StripSubdetector::TOB, and tTopo_.
Referenced by dqmEndJob().
|
override |
Definition at line 70 of file SiStripGainsPCLHarvester.cc.
References a, sistrip::APV, APVsCollOrdered, checkBookAPVColls(), beamvalidation::exit(), gainToken_, edm::EventSetup::getData(), edm::EventSetup::getHandle(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, qualityToken_, and mps_setup::stdout.
|
privatevirtual |
Definition at line 688 of file SiStripGainsPCLHarvester.cc.
References sistrip::APV, APVsColl, APVsCollOrdered, bareTkGeomPtr_, edm::EventSetup::getData(), mps_fire::i, dqmiolumiharvest::j, PixelTopology::ncolumns(), NONE, NPixelDets, PixelTopology::nrows(), NStripAPVs, StripTopology::nstrips(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, DetId::rawId(), ntupleEnum::SubDet, DetId::subdetId(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, tkGeomToken_, StripSubdetector::TOB, and tTopoTokenBR_.
Referenced by beginRun().
|
overrideprivatevirtual |
Implements DQMEDHarvester.
Definition at line 117 of file SiStripGainsPCLHarvester.cc.
References algoComputeMPVandGain(), cond::service::PoolDBOutputService::currentTime(), doStoreOnDB, dqm_tag_, spr::find(), gainQualityMonitor(), dqm::implementation::IGetter::get(), getNewObject(), dqm::legacy::MonitorElement::getTH2S(), edm::Service< T >::isAvailable(), m_calibrationMode, m_DQMdir, m_Record, storeGainsTree(), storeGainsTree_, AlCaHLTBitMon_QueryRunRegistry::string, and cond::service::PoolDBOutputService::writeOneIOV().
|
override |
Definition at line 957 of file SiStripGainsPCLHarvester.cc.
References edm::EventSetup::getData(), tTopo_, and tTopoTokenER_.
|
static |
Definition at line 950 of file SiStripGainsPCLHarvester.cc.
References edm::ConfigurationDescriptions::addDefault(), and submitPVResolutionJobs::desc.
|
private |
Definition at line 167 of file SiStripGainsPCLHarvester.cc.
References a, sistrip::APV, APVsCollOrdered, newFWLiteAna::bin, dqm::implementation::IBooker::book1DD(), dqm::implementation::IBooker::book2DD(), doChargeMonitorPerPlane, MillePedeFileConverter_cfg::e, APVGain::FetchMonitor(), dqm::impl::MonitorElement::Fill(), dqmdumpme::first, IntegrityClient_cfi::Gain, h, mps_fire::i, APVGain::monHnames(), beam_dqm_sourceclient-live_cfg::monitor, VtxSmearedParameters_cfi::Phi, dttmaxenums::R, edm::second(), dqm::implementation::NavigatorBase::setCurrentFolder(), ntupleEnum::SubDet, APVGain::subdetectorId(), APVGain::subdetectorPlane(), APVGain::subdetectorSide(), APVGain::thickness(), tTopo_, VChargeHisto, and z.
Referenced by dqmEndJob().
|
private |
Definition at line 839 of file SiStripGainsPCLHarvester.cc.
References a, sistrip::APV, APVsCollOrdered, doStoreOnDB, LogDebug, getGTfromDQMFile::obj, produceTagFilter(), and FastTimerService_cff::range.
Referenced by dqmEndJob().
|
private |
Definition at line 633 of file SiStripGainsPCLHarvester.cc.
References personalPlayback::fp, MinNrEntries, and pfDeepBoostedJetPreprocessParams_cfi::sv.
Referenced by algoComputeMPVandGain().
|
private |
Definition at line 678 of file SiStripGainsPCLHarvester.cc.
Referenced by algoComputeMPVandGain().
|
private |
Definition at line 810 of file SiStripGainsPCLHarvester.cc.
References BAD, GOOD, funct::integral(), m_calibrationMode, NStripAPVs, tagCondition_GoodFrac, and tagCondition_NClusters.
Referenced by getNewObject().
|
private |
|
private |
Definition at line 883 of file SiStripGainsPCLHarvester.cc.
References APVsCollOrdered, AlignmentPI::t_x, AlignmentPI::t_y, and AlignmentPI::t_z.
Referenced by dqmEndJob().
|
private |
Definition at line 103 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and checkBookAPVColls().
|
private |
Definition at line 102 of file SiStripGainsPCLHarvester.h.
Referenced by beginRun(), checkBookAPVColls(), gainQualityMonitor(), getNewObject(), and storeGainsTree().
|
private |
Definition at line 79 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and produceTagFilter().
|
private |
Definition at line 99 of file SiStripGainsPCLHarvester.h.
Referenced by checkBookAPVColls().
|
private |
Definition at line 97 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and SiStripGainsPCLHarvester().
|
private |
Charge monitor per detector plane
Definition at line 76 of file SiStripGainsPCLHarvester.h.
Referenced by gainQualityMonitor(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 75 of file SiStripGainsPCLHarvester.h.
Referenced by dqmEndJob(), and getNewObject().
|
private |
Definition at line 95 of file SiStripGainsPCLHarvester.h.
Referenced by dqmEndJob(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 113 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 111 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 112 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 107 of file SiStripGainsPCLHarvester.h.
Referenced by beginRun(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 78 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and produceTagFilter().
|
private |
Type of statistics for the calibration
Definition at line 92 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), dqmEndJob(), produceTagFilter(), and SiStripGainsPCLHarvester().
|
private |
DQM folder hosting the charge statistics and the monitor plots
Definition at line 91 of file SiStripGainsPCLHarvester.h.
Referenced by dqmEndJob(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 89 of file SiStripGainsPCLHarvester.h.
Referenced by dqmEndJob(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 80 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain().
|
private |
Definition at line 87 of file SiStripGainsPCLHarvester.h.
Referenced by getPeakOfLandau(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 86 of file SiStripGainsPCLHarvester.h.
Referenced by checkBookAPVColls().
|
private |
Definition at line 85 of file SiStripGainsPCLHarvester.h.
Referenced by checkBookAPVColls(), and produceTagFilter().
|
private |
Definition at line 108 of file SiStripGainsPCLHarvester.h.
Referenced by beginRun(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 77 of file SiStripGainsPCLHarvester.h.
Referenced by dqmEndJob(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 83 of file SiStripGainsPCLHarvester.h.
Referenced by produceTagFilter(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 82 of file SiStripGainsPCLHarvester.h.
Referenced by produceTagFilter(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 106 of file SiStripGainsPCLHarvester.h.
Referenced by checkBookAPVColls(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 100 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), endRun(), and gainQualityMonitor().
|
private |
Definition at line 105 of file SiStripGainsPCLHarvester.h.
Referenced by checkBookAPVColls(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 105 of file SiStripGainsPCLHarvester.h.
Referenced by endRun(), and SiStripGainsPCLHarvester().
|
private |
Charge monitor plots to be output
Definition at line 93 of file SiStripGainsPCLHarvester.h.
Referenced by gainQualityMonitor(), and SiStripGainsPCLHarvester().