#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 | 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_ |
std::unique_ptr< TrackerTopology > | tTopo_ |
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 369 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, checkBookAPVColls(), beamvalidation::exit(), gainToken_, edm::EventSetup::getData(), edm::EventSetup::getHandle(), PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, qualityToken_, and mps_setup::stdout.
|
privatevirtual |
Definition at line 509 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 107 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 701 of file SiStripGainsPCLHarvester.cc.
References edm::EventSetup::getData(), tTopo_, and tTopoToken_.
|
static |
Definition at line 694 of file SiStripGainsPCLHarvester.cc.
References edm::ConfigurationDescriptions::addDefault(), and submitPVResolutionJobs::desc.
|
private |
Definition at line 148 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(), 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 648 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 473 of file SiStripGainsPCLHarvester.cc.
References MinNrEntries.
Referenced by algoComputeMPVandGain().
|
private |
|
private |
Definition at line 619 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 99 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and checkBookAPVColls().
|
private |
Definition at line 98 of file SiStripGainsPCLHarvester.h.
Referenced by beginRun(), checkBookAPVColls(), gainQualityMonitor(), and getNewObject().
|
private |
Definition at line 75 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and produceTagFilter().
|
private |
Definition at line 95 of file SiStripGainsPCLHarvester.h.
Referenced by checkBookAPVColls().
|
private |
Definition at line 93 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and SiStripGainsPCLHarvester().
|
private |
Charge monitor per detector plane
Definition at line 73 of file SiStripGainsPCLHarvester.h.
Referenced by gainQualityMonitor(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 72 of file SiStripGainsPCLHarvester.h.
Referenced by dqmEndJob(), and getNewObject().
|
private |
Definition at line 91 of file SiStripGainsPCLHarvester.h.
Referenced by dqmEndJob(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 103 of file SiStripGainsPCLHarvester.h.
Referenced by beginRun(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 74 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain(), and produceTagFilter().
|
private |
Type of statistics for the calibration
Definition at line 88 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 87 of file SiStripGainsPCLHarvester.h.
Referenced by dqmEndJob(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 85 of file SiStripGainsPCLHarvester.h.
Referenced by dqmEndJob(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 76 of file SiStripGainsPCLHarvester.h.
Referenced by algoComputeMPVandGain().
|
private |
Definition at line 83 of file SiStripGainsPCLHarvester.h.
Referenced by getPeakOfLandau(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 82 of file SiStripGainsPCLHarvester.h.
Referenced by checkBookAPVColls().
|
private |
Definition at line 81 of file SiStripGainsPCLHarvester.h.
Referenced by checkBookAPVColls(), and produceTagFilter().
|
private |
Definition at line 104 of file SiStripGainsPCLHarvester.h.
Referenced by beginRun(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 79 of file SiStripGainsPCLHarvester.h.
Referenced by produceTagFilter(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 78 of file SiStripGainsPCLHarvester.h.
Referenced by produceTagFilter(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 102 of file SiStripGainsPCLHarvester.h.
Referenced by checkBookAPVColls(), and SiStripGainsPCLHarvester().
|
private |
Definition at line 96 of file SiStripGainsPCLHarvester.h.
Referenced by endRun(), and gainQualityMonitor().
|
private |
Definition at line 101 of file SiStripGainsPCLHarvester.h.
Referenced by endRun(), and SiStripGainsPCLHarvester().
|
private |
Charge monitor plots to be output
Definition at line 89 of file SiStripGainsPCLHarvester.h.
Referenced by gainQualityMonitor(), and SiStripGainsPCLHarvester().