#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 | checkAndRetrieveTopology (const edm::EventSetup &setup) |
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 | IsGoodLandauFit (double *FitResults) |
bool | produceTagFilter (const MonitorElement *Charge_Vs_Index) |
int | statCollectionFromMode (const char *tag) const |
Private Attributes | |
std::unordered_map< unsigned int, std::shared_ptr< stAPVGain > > | APVsColl |
std::vector< std::shared_ptr< stAPVGain > > | APVsCollOrdered |
unsigned int | BAD |
const TrackerGeometry * | bareTkGeomPtr_ = nullptr |
int | CalibrationLevel |
bool | doChargeMonitorPerPlane |
bool | doStoreOnDB |
std::vector< std::string > | dqm_tag_ |
edm::ESGetToken< SiStripGain, SiStripGainRcd > | gainToken_ |
unsigned int | GOOD |
std::string | m_calibrationMode |
std::string | m_DQMdir |
std::string | m_Record |
unsigned int | MASKED |
double | MinNrEntries |
int | NPixelDets |
int | NStripAPVs |
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > | qualityToken_ |
double | tagCondition_GoodFrac |
double | tagCondition_NClusters |
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > | tkGeomToken_ |
const TrackerTopology * | tTopo_ = nullptr |
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > | tTopoToken_ |
std::vector< std::string > | VChargeHisto |
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 | |
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<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
declare what type of product will make and with which optional label More... | |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
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) |
template<Transition B> | |
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 (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () noexcept |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) noexcept |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
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 29 of file SiStripGainsPCLHarvester.cc.
References CalibrationLevel, doChargeMonitorPerPlane, dqm_tag_, gainToken_, edm::ParameterSet::getUntrackedParameter(), m_calibrationMode, m_DQMdir, m_Record, MinNrEntries, qualityToken_, AlCaHLTBitMon_QueryRunRegistry::string, tagCondition_GoodFrac, tagCondition_NClusters, tkGeomToken_, tTopoToken_, and VChargeHisto.
|
private |
Definition at line 367 of file SiStripGainsPCLHarvester.cc.
References sistrip::APV, APVsColl, BAD, CalibrationLevel, getPeakOfLandau(), GOOD, Exhume::I, mps_fire::i, IsGoodLandauFit(), m_calibrationMode, MASKED, and mps_setup::stdout.
Referenced by dqmEndJob().
|
override |
Definition at line 60 of file SiStripGainsPCLHarvester.cc.
References a, sistrip::APV, APVsCollOrdered, checkAndRetrieveTopology(), checkBookAPVColls(), beamvalidation::exit(), gainToken_, edm::EventSetup::getData(), edm::EventSetup::getHandle(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, qualityToken_, and mps_setup::stdout.
|
privatevirtual |
Definition at line 616 of file SiStripGainsPCLHarvester.cc.
References singleTopDQM_cfi::setup, tTopo_, and tTopoToken_.
Referenced by beginRun().
|
privatevirtual |
Definition at line 507 of file SiStripGainsPCLHarvester.cc.
References sistrip::APV, APVsColl, APVsCollOrdered, bareTkGeomPtr_, edm::EventSetup::getData(), mps_fire::i, dqmiolumiharvest::j, PixelTopology::ncolumns(), NPixelDets, PixelTopology::nrows(), NStripAPVs, StripTopology::nstrips(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, DetId::rawId(), ntupleEnum::SubDet, DetId::subdetId(), StripSubdetector::TEC, StripSubdetector::TIB, StripSubdetector::TID, tkGeomToken_, and StripSubdetector::TOB.
Referenced by beginRun().
|
overrideprivatevirtual |
Implements DQMEDHarvester.
Definition at line 108 of file SiStripGainsPCLHarvester.cc.
References algoComputeMPVandGain(), cond::service::PoolDBOutputService::currentTime(), doStoreOnDB, dqm_tag_, spr::find(), gainQualityMonitor(), dqm::implementation::IGetter::get(), getNewObject(), edm::Service< T >::isAvailable(), m_calibrationMode, m_DQMdir, m_Record, AlCaHLTBitMon_QueryRunRegistry::string, and cond::service::PoolDBOutputService::writeOne().
|
override |
Definition at line 705 of file SiStripGainsPCLHarvester.cc.
|
static |
Definition at line 698 of file SiStripGainsPCLHarvester.cc.
References edm::ConfigurationDescriptions::addDefault(), and submitPVResolutionJobs::desc.
|
private |
Definition at line 149 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 652 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 471 of file SiStripGainsPCLHarvester.cc.
References MinNrEntries, and tools::TF1.
Referenced by algoComputeMPVandGain().
|
private |
|
private |
Definition at line 623 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 100 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and checkBookAPVColls().
|
private |
Definition at line 99 of file SiStripGainsPCLHarvester.h.
Referenced by beginRun(), checkBookAPVColls(), gainQualityMonitor(), and getNewObject().
|
private |
Definition at line 76 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and produceTagFilter().
|
private |
Definition at line 96 of file SiStripGainsPCLHarvester.h.
Referenced by checkBookAPVColls().
|
private |
Definition at line 94 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and SiStripGainsPCLHarvester().
|
private |
Charge monitor per detector plane
Definition at line 74 of file SiStripGainsPCLHarvester.h.
Referenced by gainQualityMonitor(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 73 of file SiStripGainsPCLHarvester.h.
Referenced by dqmEndJob(), and getNewObject().
|
private |
Definition at line 92 of file SiStripGainsPCLHarvester.h.
Referenced by dqmEndJob(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 104 of file SiStripGainsPCLHarvester.h.
Referenced by beginRun(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 75 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and produceTagFilter().
|
private |
Type of statistics for the calibration
Definition at line 89 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 88 of file SiStripGainsPCLHarvester.h.
Referenced by dqmEndJob(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 86 of file SiStripGainsPCLHarvester.h.
Referenced by dqmEndJob(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 77 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain().
|
private |
Definition at line 84 of file SiStripGainsPCLHarvester.h.
Referenced by getPeakOfLandau(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 83 of file SiStripGainsPCLHarvester.h.
Referenced by checkBookAPVColls().
|
private |
Definition at line 82 of file SiStripGainsPCLHarvester.h.
Referenced by checkBookAPVColls(), and produceTagFilter().
|
private |
Definition at line 105 of file SiStripGainsPCLHarvester.h.
Referenced by beginRun(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 80 of file SiStripGainsPCLHarvester.h.
Referenced by produceTagFilter(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 79 of file SiStripGainsPCLHarvester.h.
Referenced by produceTagFilter(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 103 of file SiStripGainsPCLHarvester.h.
Referenced by checkBookAPVColls(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 97 of file SiStripGainsPCLHarvester.h.
Referenced by checkAndRetrieveTopology(), and gainQualityMonitor().
|
private |
Definition at line 102 of file SiStripGainsPCLHarvester.h.
Referenced by checkAndRetrieveTopology(), and SiStripGainsPCLHarvester().
|
private |
Charge monitor plots to be output
Definition at line 90 of file SiStripGainsPCLHarvester.h.
Referenced by gainQualityMonitor(), and SiStripGainsPCLHarvester().