#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 (const edm::ParameterSet &) | |
SiPixelOfflineCalibAnalysisBase () | |
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 const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ESProxyIndex const * | esGetTokenIndices (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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
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_ = 0 |
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 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 | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
Protected Member Functions inherited from SiPixelOfflineCalibAnalysisBase | |
uint32_t & | EventNumber () |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
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) |
Protected Attributes inherited from SiPixelOfflineCalibAnalysisBase | |
edm::ESHandle< SiPixelCalibConfiguration > | calib_ |
std::string | calibrationMode_ |
edm::ESHandle< TrackerGeometry > | geom_ |
short | nTriggers_ |
edm::ESHandle< SiPixelFedCablingMap > | theCablingMap_ |
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 61 of file SiPixelSCurveCalibrationAnalysis.h.
|
inlineexplicit |
Definition at line 63 of file SiPixelSCurveCalibrationAnalysis.h.
References doFits(), doSetup(), and ~SiPixelSCurveCalibrationAnalysis().
|
override |
Definition at line 137 of file SiPixelSCurveCalibrationAnalysis.cc.
Referenced by SiPixelSCurveCalibrationAnalysis().
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 141 of file SiPixelSCurveCalibrationAnalysis.cc.
References SiPixelOfflineCalibAnalysisBase::bookDQMHistogram1D(), cuy::col, curvesSavedCounter_, createfilelist::int, maxCurvesToSave_, MonitorElement::setBinContent(), MonitorElement::setBinError(), SiPixelOfflineCalibAnalysisBase::setDQMDirectory(), SiPixelOfflineCalibAnalysisBase::translateDetIdToString(), and vCalPointsAsFloats_.
Referenced by doFits().
|
overrideprivatevirtual |
Reimplemented from SiPixelOfflineCalibAnalysisBase.
Definition at line 19 of file SiPixelSCurveCalibrationAnalysis.cc.
References makeThresholdSummary(), and printoutthresholds_.
|
overrideprivatevirtual |
Reimplemented from SiPixelOfflineCalibAnalysisBase.
Definition at line 184 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 211 of file SiPixelSCurveCalibrationAnalysis.cc.
References SiPixelOfflineCalibAnalysisBase::calibrationMode_.
|
overridevirtual |
Reimplemented from SiPixelOfflineCalibAnalysisBase.
Definition at line 323 of file SiPixelSCurveCalibrationAnalysis.cc.
References CustomPhysics_cfi::amplitude, buildACurveHistogram(), calculateEffAndError(), vertices_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_, saveCurvesThatFlaggedBad_, electronIdCutBased_cfi::threshold, SiPixelOfflineCalibAnalysisBase::vCalValues_, write2dFitResult_, and write2dHistograms_.
Referenced by SiPixelSCurveCalibrationAnalysis().
void SiPixelSCurveCalibrationAnalysis::doSetup | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 107 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 226 of file SiPixelSCurveCalibrationAnalysis.cc.
References delta, errAllZeros, errNoTurnOn, errOK, convertSQLitetoXML_cfg::output, and SiPixelOfflineCalibAnalysisBase::vCalValues_.
Referenced by doFits().
sCurveErrorFlag SiPixelSCurveCalibrationAnalysis::fittedSCurveSanityCheck | ( | float | threshold, |
float | sigma, | ||
float | amplitude | ||
) |
Definition at line 254 of file SiPixelSCurveCalibrationAnalysis.cc.
References errFitNonPhysical, errFlaggedBadByUser, errOK, maximumEffAsymptote_, maximumSigma_, maximumThreshold_, minimumSigma_, and SiPixelOfflineCalibAnalysisBase::vCalValues_.
Referenced by doFits().
|
private |
Definition at line 24 of file SiPixelSCurveCalibrationAnalysis.cc.
References gather_cfg::cout, sipixelobjects::ElectronicIndex::dcol, sipixelobjects::LocalPixel::DcolPxid::dcol, gamEcalExtractorBlocks_cff::detector, SiPixelFedCablingMap::findItem(), MonitorElement::getBinContent(), MonitorElement::getNbinsX(), MonitorElement::getNbinsY(), MonitorElement::getTitle(), histograms_, sipixelobjects::PixelROC::idInDetUnit(), kSigmas, kThresholds, sipixelobjects::ElectronicIndex::link, create_public_lumi_plots::loc, dataset::name, callgraph::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_, SiPixelFrameConverter::toCabling(), and writeZeroes_.
Referenced by calibrationEnd().
|
overrideprivatevirtual |
Reimplemented from SiPixelOfflineCalibAnalysisBase.
Definition at line 278 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 92 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by buildACurveHistogram(), and calibrationSetup().
|
private |
Definition at line 99 of file SiPixelSCurveCalibrationAnalysis.h.
|
static |
Definition at line 73 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by chi2toMinimize(), and doFits().
|
static |
Definition at line 72 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by chi2toMinimize(), and doFits().
|
private |
Definition at line 115 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doFits(), makeThresholdSummary(), and newDetID().
|
private |
Definition at line 90 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by buildACurveHistogram(), calibrationSetup(), and doSetup().
|
private |
Definition at line 108 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and fittedSCurveSanityCheck().
|
private |
Definition at line 106 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 104 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and fittedSCurveSanityCheck().
|
private |
Definition at line 111 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and newDetID().
|
private |
Definition at line 102 of file SiPixelSCurveCalibrationAnalysis.h.
|
private |
Definition at line 107 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup().
|
private |
Definition at line 105 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and fittedSCurveSanityCheck().
|
private |
Definition at line 103 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup().
|
private |
Definition at line 95 of file SiPixelSCurveCalibrationAnalysis.h.
|
private |
Definition at line 96 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by calibrationEnd(), and doSetup().
|
private |
Definition at line 89 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by calibrationSetup(), doFits(), and doSetup().
|
private |
Definition at line 98 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and makeThresholdSummary().
|
private |
Definition at line 88 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and newDetID().
std::vector<float> SiPixelSCurveCalibrationAnalysis::vCalPointsAsFloats_ |
Definition at line 74 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by buildACurveHistogram(), and calibrationSetup().
|
private |
Definition at line 94 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doFits(), doSetup(), and newDetID().
|
private |
Definition at line 93 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doFits(), doSetup(), and newDetID().
|
private |
Definition at line 97 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and makeThresholdSummary().