#include <CalibTracker/SiPixelSCurveCalibration/src/SiPixelSCurveCalibrationAnalysis.cc>
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) |
virtual bool | doFits (uint32_t detid, std::vector< SiPixelCalibDigi >::const_iterator ipix) |
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 () | |
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 () | |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
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_ = NULL |
Private Member Functions | |
virtual void | calibrationEnd () |
virtual void | calibrationSetup (const edm::EventSetup &iSetup) |
virtual bool | checkCorrectCalibrationType () |
void | makeThresholdSummary (void) |
virtual void | newDetID (uint32_t detid) |
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 &) |
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 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_ |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 57 of file SiPixelSCurveCalibrationAnalysis.h.
|
inlineexplicit |
Definition at line 59 of file SiPixelSCurveCalibrationAnalysis.h.
References doSetup().
SiPixelSCurveCalibrationAnalysis::~SiPixelSCurveCalibrationAnalysis | ( | ) |
Definition at line 134 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 139 of file SiPixelSCurveCalibrationAnalysis.cc.
References SiPixelOfflineCalibAnalysisBase::bookDQMHistogram1D(), cuy::col, curvesSavedCounter_, maxCurvesToSave_, MonitorElement::setBinContent(), MonitorElement::setBinError(), SiPixelOfflineCalibAnalysisBase::setDQMDirectory(), SiPixelOfflineCalibAnalysisBase::translateDetIdToString(), and vCalPointsAsFloats_.
Referenced by doFits().
|
privatevirtual |
Reimplemented from SiPixelOfflineCalibAnalysisBase.
Definition at line 20 of file SiPixelSCurveCalibrationAnalysis.cc.
References makeThresholdSummary(), and printoutthresholds_.
|
privatevirtual |
Reimplemented from SiPixelOfflineCalibAnalysisBase.
Definition at line 169 of file SiPixelSCurveCalibrationAnalysis.cc.
References curvesSavedCounter_, SiPixelOfflineCalibAnalysisBase::fitFunction_, SiPixelOfflineCalibAnalysisBase::getVcalValues(), i, maxCurvesToSave_, SiPixelOfflineCalibAnalysisBase::nTriggers_, saveCurvesThatFlaggedBad_, vCalPointsAsFloats_, and SiPixelOfflineCalibAnalysisBase::vCalValues_.
|
privatevirtual |
Reimplemented from SiPixelOfflineCalibAnalysisBase.
Definition at line 193 of file SiPixelSCurveCalibrationAnalysis.cc.
References SiPixelOfflineCalibAnalysisBase::calibrationMode_.
|
virtual |
Reimplemented from SiPixelOfflineCalibAnalysisBase.
Definition at line 298 of file SiPixelSCurveCalibrationAnalysis.cc.
References buildACurveHistogram(), calculateEffAndError(), chi2toMinimize(), cuy::col, detIDsToSave_, effErrors_, efficiencies_, errBadChi2Prob, errOK, relativeConstraints::error, estimateSCurveParameters(), fittedSCurveSanityCheck(), fitWZ::gMinuit, histograms_, kChi2s, kChi2Summary, kFitResults, kFitResultSummary, kSigmas, kSigmaSummary, kThresholds, kThresholdSummary, minimumChi2prob_, SiPixelOfflineCalibAnalysisBase::nTriggers_, NULL, saveCurvesThatFlaggedBad_, dtDQMClient_cfg::threshold, SiPixelOfflineCalibAnalysisBase::vCalValues_, write2dFitResult_, and write2dHistograms_.
void SiPixelSCurveCalibrationAnalysis::doSetup | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 104 of file SiPixelSCurveCalibrationAnalysis.cc.
References detIDsToSave_, edm::ParameterSet::getUntrackedParameter(), 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 207 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 235 of file SiPixelSCurveCalibrationAnalysis.cc.
References errFitNonPhysical, errFlaggedBadByUser, errOK, maximumEffAsymptote_, maximumSigma_, maximumThreshold_, 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, cond::rpcobgas::detid, MonitorElement::getBinContent(), MonitorElement::getNbinsX(), MonitorElement::getNbinsY(), MonitorElement::getTitle(), histograms_, sipixelobjects::PixelROC::idInDetUnit(), kSigmas, kThresholds, sipixelobjects::ElectronicIndex::link, mergeVDriftHistosByStation::name, fed_dqm_sourceclient-live_cfg::path, edm::ESHandle< class >::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().
|
privatevirtual |
Reimplemented from SiPixelOfflineCalibAnalysisBase.
Definition at line 260 of file SiPixelSCurveCalibrationAnalysis.cc.
References SiPixelOfflineCalibAnalysisBase::bookDQMHistogram1D(), SiPixelOfflineCalibAnalysisBase::bookDQMHistoPlaquetteSummary2D(), cond::rpcobgas::detid, 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 81 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by buildACurveHistogram(), and calibrationSetup().
|
private |
Definition at line 88 of file SiPixelSCurveCalibrationAnalysis.h.
|
static |
Definition at line 66 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by chi2toMinimize(), and doFits().
|
static |
Definition at line 65 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by chi2toMinimize(), and doFits().
|
private |
Definition at line 106 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doFits(), makeThresholdSummary(), and newDetID().
|
private |
Definition at line 80 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by buildACurveHistogram(), calibrationSetup(), and doSetup().
|
private |
Definition at line 98 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and fittedSCurveSanityCheck().
|
private |
Definition at line 96 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and fittedSCurveSanityCheck().
|
private |
Definition at line 102 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and newDetID().
|
private |
Definition at line 94 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and fittedSCurveSanityCheck().
|
private |
Definition at line 101 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and newDetID().
|
private |
Definition at line 92 of file SiPixelSCurveCalibrationAnalysis.h.
|
private |
Definition at line 97 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup().
|
private |
Definition at line 95 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup().
|
private |
Definition at line 93 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup().
|
private |
Definition at line 84 of file SiPixelSCurveCalibrationAnalysis.h.
|
private |
Definition at line 85 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by calibrationEnd(), and doSetup().
|
private |
Definition at line 79 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by calibrationSetup(), doFits(), and doSetup().
|
private |
Definition at line 87 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and makeThresholdSummary().
|
private |
Definition at line 78 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and newDetID().
std::vector<float> SiPixelSCurveCalibrationAnalysis::vCalPointsAsFloats_ |
Definition at line 67 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by buildACurveHistogram(), and calibrationSetup().
|
private |
Definition at line 83 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doFits(), doSetup(), and newDetID().
|
private |
Definition at line 82 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doFits(), doSetup(), and newDetID().
|
private |
Definition at line 86 of file SiPixelSCurveCalibrationAnalysis.h.
Referenced by doSetup(), and makeThresholdSummary().