#include <SiPixelSCurveCalibrationAnalysis.h>
Public Member Functions | |
void | buildACurveHistogram (const uint32_t &detid, const uint32_t &row, const uint32_t &col, sCurveErrorFlag errorFlag, const std::vector< float > &efficiencies, const std::vector< float > &errors) |
bool | doFits (uint32_t detid, std::vector< SiPixelCalibDigi >::const_iterator ipix) override |
void | doSetup (const edm::ParameterSet &) |
sCurveErrorFlag | estimateSCurveParameters (const std::vector< float > &eff, float &threshold, float &sigma) |
sCurveErrorFlag | fittedSCurveSanityCheck (float threshold, float sigma, float amplitude) |
SiPixelSCurveCalibrationAnalysis (const edm::ParameterSet &iConfig) | |
~SiPixelSCurveCalibrationAnalysis () override | |
Public Member Functions inherited from SiPixelOfflineCalibAnalysisBase | |
void | addTF1ToDQMMonitoringElement (MonitorElement *ele, TF1 *func) |
MonitorElement * | bookDQMHistogram1D (uint32_t detid, std::string name, std::string title, int nchX, double lowX, double highX) |
MonitorElement * | bookDQMHistogram1D (uint32_t detid, std::string name, std::string title, int nchX, float *xbinsize) |
MonitorElement * | bookDQMHistogram2D (uint32_t detid, std::string name, std::string title, int nchX, double lowX, double highX, int nchY, double lowY, double highY) |
MonitorElement * | bookDQMHistoPlaquetteSummary2D (uint32_t detid, std::string name, std::string title) |
std::vector< uint32_t > & | getRunNumbers () |
bool | setDQMDirectory (std::string dirName) |
bool | setDQMDirectory (uint32_t detID) |
SiPixelOfflineCalibAnalysisBase () | |
SiPixelOfflineCalibAnalysisBase (const edm::ParameterSet &) | |
std::string | translateDetIdToString (uint32_t detid) |
~SiPixelOfflineCalibAnalysisBase () override | |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
SerialTaskQueue * | globalLuminosityBlocksQueue () |
SerialTaskQueue * | globalRunsQueue () |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
~EDAnalyzer () override | |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase &&)=default | |
EDConsumerBase (EDConsumerBase const &)=delete | |
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
virtual | ~EDConsumerBase () noexcept(false) |
Public Attributes | |
std::vector< float > | vCalPointsAsFloats_ |
Static Public Attributes | |
static std::vector< float > | effErrors_ |
static std::vector< float > | efficiencies_ |
Static Public Attributes inherited from SiPixelOfflineCalibAnalysisBase | |
static TF1 * | fitFunction_ = nullptr |
Private Member Functions | |
void | calibrationEnd () override |
void | calibrationSetup (const edm::EventSetup &iSetup) override |
bool | checkCorrectCalibrationType () override |
void | makeThresholdSummary (void) |
void | newDetID (uint32_t detid) override |
Private Attributes | |
unsigned int | curvesSavedCounter_ |
std::map< uint32_t, bool > | detIDsToSave_ |
detIDHistogramMap | histograms_ |
unsigned int | maxCurvesToSave_ |
double | maximumEffAsymptote_ |
double | maximumSigma_ |
double | maximumSigmaBin_ |
double | maximumThreshold_ |
double | maximumThresholdBin_ |
double | minimumChi2prob_ |
double | minimumEffAsymptote_ |
double | minimumSigma_ |
double | minimumThreshold_ |
std::vector< std::string > | plaquettesToSave_ |
bool | printoutthresholds_ |
bool | saveCurvesThatFlaggedBad_ |
std::string | thresholdfilename_ |
bool | useDetectorHierarchyFolders_ |
bool | write2dFitResult_ |
bool | write2dHistograms_ |
bool | writeZeroes_ |
Additional Inherited Members | |
Public Types inherited from SiPixelOfflineCalibAnalysisBase | |
typedef dqm::legacy::DQMStore | DQMStore |
typedef dqm::legacy::MonitorElement | MonitorElement |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from SiPixelOfflineCalibAnalysisBase | |
static const std::vector< short > * | getVcalValues () |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsInputProcessBlocks () |
static bool | wantsProcessBlocks () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
Protected Member Functions inherited from SiPixelOfflineCalibAnalysisBase | |
uint32_t & | EventNumber () |
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 SiPixelOfflineCalibAnalysisBase | |
edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > | cablingMapToken_ |
edm::ESHandle< SiPixelCalibConfiguration > | calib_ |
std::string | calibrationMode_ |
edm::ESGetToken< SiPixelCalibConfiguration, SiPixelCalibConfigurationRcd > | calibToken_ |
edm::ESGetToken< SiPixelCalibConfiguration, SiPixelCalibConfigurationRcd > | calibTokenBeginRun_ |
edm::ESHandle< TrackerGeometry > | geom_ |
short | nTriggers_ |
edm::ESHandle< SiPixelFedCablingMap > | theCablingMap_ |
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > | trackerGeomToken_ |
Static Protected Attributes inherited from SiPixelOfflineCalibAnalysisBase | |
static std::vector< short > | vCalValues_ |
CalibTracker/SiPixelSCurveCalibration/src/SiPixelSCurveCalibrationAnalysis.cc
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 62 of file SiPixelSCurveCalibrationAnalysis.h.
|
inlineexplicit |
Definition at line 64 of file SiPixelSCurveCalibrationAnalysis.h.
References doSetup().
|
override |
Definition at line 138 of file SiPixelSCurveCalibrationAnalysis.cc.
void SiPixelSCurveCalibrationAnalysis::buildACurveHistogram | ( | const uint32_t & | detid, |
const uint32_t & | row, | ||
const uint32_t & | col, | ||
sCurveErrorFlag | errorFlag, | ||
const std::vector< float > & | efficiencies, | ||
const std::vector< float > & | errors | ||
) |
Definition at line 142 of file SiPixelSCurveCalibrationAnalysis.cc.
References SiPixelOfflineCalibAnalysisBase::bookDQMHistogram1D(), cuy::col, curvesSavedCounter_, electronProducer_cfi::efficiencies, createfilelist::int, maxCurvesToSave_, dqm::impl::MonitorElement::setBinContent(), dqm::impl::MonitorElement::setBinError(), SiPixelOfflineCalibAnalysisBase::setDQMDirectory(), SiPixelOfflineCalibAnalysisBase::translateDetIdToString(), and vCalPointsAsFloats_.
Referenced by doFits().
|
overrideprivatevirtual |
Reimplemented from SiPixelOfflineCalibAnalysisBase.
Definition at line 20 of file SiPixelSCurveCalibrationAnalysis.cc.
References makeThresholdSummary(), and printoutthresholds_.
|
overrideprivatevirtual |
Reimplemented from SiPixelOfflineCalibAnalysisBase.
Definition at line 185 of file SiPixelSCurveCalibrationAnalysis.cc.
References curvesSavedCounter_, SiPixelOfflineCalibAnalysisBase::fitFunction_, SiPixelOfflineCalibAnalysisBase::getVcalValues(), mps_fire::i, maxCurvesToSave_, SiPixelOfflineCalibAnalysisBase::nTriggers_, saveCurvesThatFlaggedBad_, vCalPointsAsFloats_, and SiPixelOfflineCalibAnalysisBase::vCalValues_.
|
overrideprivatevirtual |
Reimplemented from SiPixelOfflineCalibAnalysisBase.
Definition at line 212 of file SiPixelSCurveCalibrationAnalysis.cc.
References SiPixelOfflineCalibAnalysisBase::calibrationMode_.
|
overridevirtual |
Reimplemented from SiPixelOfflineCalibAnalysisBase.
Definition at line 324 of file SiPixelSCurveCalibrationAnalysis.cc.
References CustomPhysics_cfi::amplitude, buildACurveHistogram(), calculateEffAndError(), hltPixelTracks_cff::chi2, chi2toMinimize(), cuy::col, detIDsToSave_, effErrors_, efficiencies_, errBadChi2Prob, errOK, relativeConstraints::error, estimateSCurveParameters(), fittedSCurveSanityCheck(), histograms_, kChi2s, kChi2Summary, kFitResults, kFitResultSummary, kSigmas, kSigmaSummary, kThresholds, kThresholdSummary, minimumChi2prob_, SiPixelOfflineCalibAnalysisBase::nTriggers_, CalibrationSummaryClient_cfi::params, saveCurvesThatFlaggedBad_, remoteMonitoring_LED_IterMethod_cfg::threshold, SiPixelOfflineCalibAnalysisBase::vCalValues_, write2dFitResult_, and write2dHistograms_.
void SiPixelSCurveCalibrationAnalysis::doSetup | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 108 of file SiPixelSCurveCalibrationAnalysis.cc.
References detIDsToSave_, edm::ParameterSet::getUntrackedParameter(), mps_fire::i, maxCurvesToSave_, maximumEffAsymptote_, maximumSigma_, maximumSigmaBin_, maximumThreshold_, maximumThresholdBin_, minimumChi2prob_, minimumEffAsymptote_, minimumSigma_, minimumThreshold_, printoutthresholds_, saveCurvesThatFlaggedBad_, AlCaHLTBitMon_QueryRunRegistry::string, thresholdfilename_, useDetectorHierarchyFolders_, write2dFitResult_, write2dHistograms_, and writeZeroes_.
Referenced by SiPixelSCurveCalibrationAnalysis().
sCurveErrorFlag SiPixelSCurveCalibrationAnalysis::estimateSCurveParameters | ( | const std::vector< float > & | eff, |
float & | threshold, | ||
float & | sigma | ||
) |
Definition at line 227 of file SiPixelSCurveCalibrationAnalysis.cc.
References dumpMFGeometry_cfg::delta, errAllZeros, errNoTurnOn, errOK, convertSQLitetoXML_cfg::output, remoteMonitoring_LED_IterMethod_cfg::threshold, and SiPixelOfflineCalibAnalysisBase::vCalValues_.
Referenced by doFits().
sCurveErrorFlag SiPixelSCurveCalibrationAnalysis::fittedSCurveSanityCheck | ( | float | threshold, |
float | sigma, | ||
float | amplitude | ||
) |
Definition at line 255 of file SiPixelSCurveCalibrationAnalysis.cc.
References errFitNonPhysical, errFlaggedBadByUser, errOK, maximumEffAsymptote_, maximumSigma_, maximumThreshold_, minimumSigma_, remoteMonitoring_LED_IterMethod_cfg::threshold, and SiPixelOfflineCalibAnalysisBase::vCalValues_.
Referenced by doFits().
|
private |
Definition at line 25 of file SiPixelSCurveCalibrationAnalysis.cc.
References gather_cfg::cout, sipixelobjects::ElectronicIndex::dcol, sipixelobjects::LocalPixel::DcolPxid::dcol, hgcalTestNeighbor_cfi::detector, PixelSLinkDataInputSource_cfi::fedid, SiPixelFedCablingMap::findItem(), postprocess-scan-build::formatter, dqm::impl::MonitorElement::getBinContent(), dqm::impl::MonitorElement::getNbinsX(), dqm::impl::MonitorElement::getNbinsY(), dqm::impl::MonitorElement::getTitle(), histograms_, sipixelobjects::PixelROC::idInDetUnit(), kSigmas, kThresholds, sipixelobjects::ElectronicIndex::link, Skims_PA_cff::name, castor_dqm_sourceclient_file_cfg::path, edm::ESHandle< T >::product(), sipixelobjects::ElectronicIndex::pxid, sipixelobjects::LocalPixel::DcolPxid::pxid, sipixelobjects::ElectronicIndex::roc, sipixelobjects::LocalPixel::rocCol(), sipixelobjects::LocalPixel::rocRow(), AlCaHLTBitMon_QueryRunRegistry::string, SiPixelOfflineCalibAnalysisBase::theCablingMap_, thresholdfilename_, and writeZeroes_.
Referenced by calibrationEnd().
|
overrideprivatevirtual |
Reimplemented from SiPixelOfflineCalibAnalysisBase.
Definition at line 279 of file SiPixelSCurveCalibrationAnalysis.cc.
References SiPixelOfflineCalibAnalysisBase::bookDQMHistogram1D(), SiPixelOfflineCalibAnalysisBase::bookDQMHistoPlaquetteSummary2D(), histograms_, kChi2s, kChi2Summary, kFitResults, kFitResultSummary, kSigmas, kSigmaSummary, kThresholds, kThresholdSummary, maximumSigmaBin_, maximumThresholdBin_, SiPixelOfflineCalibAnalysisBase::setDQMDirectory(), AlCaHLTBitMon_QueryRunRegistry::string, SiPixelOfflineCalibAnalysisBase::translateDetIdToString(), useDetectorHierarchyFolders_, write2dFitResult_, and write2dHistograms_.
|
private |
Definition at line 93 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by buildACurveHistogram(), and calibrationSetup().
|
private |
Definition at line 100 of file SiPixelSCurveCalibrationAnalysis.h.
|
static |
Definition at line 74 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by chi2toMinimize(), and doFits().
|
static |
Definition at line 73 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by chi2toMinimize(), and doFits().
|
private |
Definition at line 116 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doFits(), makeThresholdSummary(), and newDetID().
|
private |
Definition at line 91 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by buildACurveHistogram(), calibrationSetup(), and doSetup().
|
private |
Definition at line 109 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and fittedSCurveSanityCheck().
|
private |
Definition at line 107 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and fittedSCurveSanityCheck().
|
private |
Definition at line 113 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and newDetID().
|
private |
Definition at line 105 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and fittedSCurveSanityCheck().
|
private |
Definition at line 112 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and newDetID().
|
private |
Definition at line 103 of file SiPixelSCurveCalibrationAnalysis.h.
|
private |
Definition at line 108 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup().
|
private |
Definition at line 106 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and fittedSCurveSanityCheck().
|
private |
Definition at line 104 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup().
|
private |
Definition at line 96 of file SiPixelSCurveCalibrationAnalysis.h.
|
private |
Definition at line 97 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by calibrationEnd(), and doSetup().
|
private |
Definition at line 90 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by calibrationSetup(), doFits(), and doSetup().
|
private |
Definition at line 99 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and makeThresholdSummary().
|
private |
Definition at line 89 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and newDetID().
std::vector<float> SiPixelSCurveCalibrationAnalysis::vCalPointsAsFloats_ |
Definition at line 75 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by buildACurveHistogram(), and calibrationSetup().
|
private |
Definition at line 95 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doFits(), doSetup(), and newDetID().
|
private |
Definition at line 94 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doFits(), doSetup(), and newDetID().
|
private |
Definition at line 98 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and makeThresholdSummary().