#include <CalibTracker/SiPixelTools/src/SiPixelOfflineCalibAnalysisBase.cc>
Public Types | |
typedef dqm::legacy::DQMStore | DQMStore |
typedef dqm::legacy::MonitorElement | MonitorElement |
Public Types inherited from edm::one::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Public Member Functions | |
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) |
virtual bool | doFits (uint32_t detid, std::vector< SiPixelCalibDigi >::const_iterator ipix) |
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::one::EDAnalyzer< edm::one::WatchRuns > | |
EDAnalyzer ()=default | |
EDAnalyzer (const EDAnalyzer &)=delete | |
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
SerialTaskQueue * | globalRunsQueue () final |
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
bool | wantsGlobalLuminosityBlocks () const noexcept final |
bool | wantsGlobalRuns () const noexcept final |
bool | wantsInputProcessBlocks () const noexcept final |
bool | wantsProcessBlocks () const noexcept final |
Public Member Functions inherited from edm::one::EDAnalyzerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzerBase () | |
ModuleDescription const & | moduleDescription () const |
bool | wantsStreamLuminosityBlocks () const noexcept |
bool | wantsStreamRuns () const noexcept |
~EDAnalyzerBase () 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 | |
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
std::vector< ESResolverIndex > 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 const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, 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::ESRecordsToProductResolverIndices const &) |
virtual | ~EDConsumerBase () noexcept(false) |
Static Public Member Functions | |
static const std::vector< short > * | getVcalValues () |
Static Public Member Functions inherited from edm::one::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Static Public Attributes | |
static TF1 * | fitFunction_ = nullptr |
Protected Member Functions | |
uint32_t & | EventNumber () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
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) |
void | resetItemsToGetFrom (BranchType iType) |
Static Protected Attributes | |
static std::vector< short > | vCalValues_ |
Private Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) override |
void | beginJob () override |
void | beginRun (const edm::Run &, const edm::EventSetup &) override |
virtual void | calibrationEnd () |
virtual void | calibrationSetup (const edm::EventSetup &iSetup) |
virtual bool | checkCorrectCalibrationType () |
bool | checkPixel (uint32_t detid, short row, short column) |
void | endJob () override |
void | endRun (const edm::Run &, const edm::EventSetup &) override |
virtual void | newDetID (uint32_t detid) |
Private Attributes | |
bool | createOutputFile_ |
DQMStore * | daqBE_ |
std::map< uint32_t, std::string > | detIdNames_ |
std::map< uint32_t, int > | detIdsEntered_ |
uint32_t | eventCounter_ |
SiPixelFolderOrganizer * | folderMaker_ |
std::string | outputFileName_ |
std::vector< uint32_t > | runnumbers_ |
edm::InputTag | siPixelCalibDigiProducer_ |
SiPixelHistogramId * | theHistogramIdWorker_ |
edm::EDGetTokenT< edm::DetSetVector< SiPixelCalibDigi > > | tPixelCalibDigi |
Description: Base class for Pixel calibrations
Implementation: <Notes on="" implementation>="">
Definition at line 60 of file SiPixelOfflineCalibAnalysisBase.h.
Definition at line 63 of file SiPixelOfflineCalibAnalysisBase.h.
Definition at line 62 of file SiPixelOfflineCalibAnalysisBase.h.
|
explicit |
Definition at line 37 of file SiPixelOfflineCalibAnalysisBase.cc.
References cablingMapToken_, calibToken_, calibTokenBeginRun_, createOutputFile_, daqBE_, folderMaker_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), outputFileName_, siPixelCalibDigiProducer_, AlCaHLTBitMon_QueryRunRegistry::string, tPixelCalibDigi, and trackerGeomToken_.
|
override |
Definition at line 60 of file SiPixelOfflineCalibAnalysisBase.cc.
SiPixelOfflineCalibAnalysisBase::SiPixelOfflineCalibAnalysisBase | ( | ) |
Definition at line 53 of file SiPixelOfflineCalibAnalysisBase.cc.
References Exception.
void SiPixelOfflineCalibAnalysisBase::addTF1ToDQMMonitoringElement | ( | MonitorElement * | ele, |
TF1 * | func | ||
) |
Definition at line 305 of file SiPixelOfflineCalibAnalysisBase.cc.
References EcalMonitorTask_cff::func, and dqm::legacy::MonitorElement::getTH1().
|
overrideprivatevirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 67 of file SiPixelOfflineCalibAnalysisBase.cc.
References edm::DetSetVector< T >::begin(), cablingMapToken_, calib_, calibrationSetup(), calibToken_, checkCorrectCalibrationType(), hcalRecHitTable_cff::detId, detIdNames_, detIdsEntered_, doFits(), edm::DetSetVector< T >::end(), eventCounter_, geom_, edm::EventSetup::getHandle(), iEvent, newDetID(), cond::runnumber, runnumbers_, theCablingMap_, tPixelCalibDigi, trackerGeomToken_, and translateDetIdToString().
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 137 of file SiPixelOfflineCalibAnalysisBase.cc.
|
overrideprivate |
Definition at line 119 of file SiPixelOfflineCalibAnalysisBase.cc.
References calibrationMode_, calibrationSetup(), calibTokenBeginRun_, gather_cfg::cout, edm::EventSetup::getHandle(), edm::InputTag::label(), nTriggers_, siPixelCalibDigiProducer_, theHistogramIdWorker_, and vCalValues_.
SiPixelOfflineCalibAnalysisBase::MonitorElement * SiPixelOfflineCalibAnalysisBase::bookDQMHistogram1D | ( | uint32_t | detid, |
std::string | name, | ||
std::string | title, | ||
int | nchX, | ||
double | lowX, | ||
double | highX | ||
) |
Definition at line 180 of file SiPixelOfflineCalibAnalysisBase.cc.
References dqm::implementation::IBooker::book1D(), daqBE_, Skims_PA_cff::name, SiPixelHistogramId::setHistoId(), AlCaHLTBitMon_QueryRunRegistry::string, theHistogramIdWorker_, and runGCPTkAlMap::title.
Referenced by SiPixelSCurveCalibrationAnalysis::buildACurveHistogram(), SiPixelGainCalibrationAnalysis::doFits(), SiPixelIsAliveCalibration::newDetID(), SiPixelGainCalibrationAnalysis::newDetID(), and SiPixelSCurveCalibrationAnalysis::newDetID().
SiPixelOfflineCalibAnalysisBase::MonitorElement * SiPixelOfflineCalibAnalysisBase::bookDQMHistogram1D | ( | uint32_t | detid, |
std::string | name, | ||
std::string | title, | ||
int | nchX, | ||
float * | xbinsize | ||
) |
Definition at line 186 of file SiPixelOfflineCalibAnalysisBase.cc.
References dqm::implementation::IBooker::book1D(), daqBE_, Skims_PA_cff::name, SiPixelHistogramId::setHistoId(), AlCaHLTBitMon_QueryRunRegistry::string, theHistogramIdWorker_, and runGCPTkAlMap::title.
SiPixelOfflineCalibAnalysisBase::MonitorElement * SiPixelOfflineCalibAnalysisBase::bookDQMHistogram2D | ( | uint32_t | detid, |
std::string | name, | ||
std::string | title, | ||
int | nchX, | ||
double | lowX, | ||
double | highX, | ||
int | nchY, | ||
double | lowY, | ||
double | highY | ||
) |
Definition at line 192 of file SiPixelOfflineCalibAnalysisBase.cc.
References dqm::implementation::IBooker::book2D(), daqBE_, Skims_PA_cff::name, SiPixelHistogramId::setHistoId(), AlCaHLTBitMon_QueryRunRegistry::string, theHistogramIdWorker_, and runGCPTkAlMap::title.
SiPixelOfflineCalibAnalysisBase::MonitorElement * SiPixelOfflineCalibAnalysisBase::bookDQMHistoPlaquetteSummary2D | ( | uint32_t | detid, |
std::string | name, | ||
std::string | title | ||
) |
Definition at line 205 of file SiPixelOfflineCalibAnalysisBase.cc.
References dqm::implementation::IBooker::book2D(), daqBE_, hcalRecHitTable_cff::detId, geom_, TrackerGeometry::idToDet(), Skims_PA_cff::name, PixelTopology::ncolumns(), PixelTopology::nrows(), SiPixelHistogramId::setHistoId(), PixelGeomDetUnit::specificTopology(), AlCaHLTBitMon_QueryRunRegistry::string, theHistogramIdWorker_, and runGCPTkAlMap::title.
Referenced by SiPixelIsAliveCalibration::newDetID(), SiPixelGainCalibrationAnalysis::newDetID(), and SiPixelSCurveCalibrationAnalysis::newDetID().
|
privatevirtual |
Reimplemented in SiPixelSCurveCalibrationAnalysis, SiPixelGainCalibrationAnalysis, and SiPixelIsAliveCalibration.
Definition at line 251 of file SiPixelOfflineCalibAnalysisBase.cc.
Referenced by endJob().
|
privatevirtual |
Reimplemented in SiPixelSCurveCalibrationAnalysis, SiPixelGainCalibrationAnalysis, and SiPixelIsAliveCalibration.
Definition at line 247 of file SiPixelOfflineCalibAnalysisBase.cc.
Referenced by analyze(), and beginRun().
|
privatevirtual |
Reimplemented in SiPixelSCurveCalibrationAnalysis, SiPixelGainCalibrationAnalysis, and SiPixelIsAliveCalibration.
Definition at line 227 of file SiPixelOfflineCalibAnalysisBase.cc.
Referenced by analyze().
|
private |
Definition at line 260 of file SiPixelOfflineCalibAnalysisBase.cc.
References calib_, cuy::col, sipixelobjects::ElectronicIndex::dcol, sipixelobjects::LocalPixel::DcolPxid::dcol, hgcalTestNeighbor_cfi::detector, PixelSLinkDataInputSource_cfi::fedid, SiPixelCalibConfiguration::getColumnPattern(), SiPixelCalibConfiguration::getRowPattern(), edm::ESHandle< T >::product(), sipixelobjects::ElectronicIndex::pxid, sipixelobjects::LocalPixel::DcolPxid::pxid, sipixelobjects::LocalPixel::rocCol(), sipixelobjects::LocalPixel::rocRow(), and theCablingMap_.
|
virtual |
Reimplemented in SiPixelSCurveCalibrationAnalysis, SiPixelGainCalibrationAnalysis, and SiPixelIsAliveCalibration.
Definition at line 229 of file SiPixelOfflineCalibAnalysisBase.cc.
References cuy::col, gather_cfg::cout, and mps_fire::i.
Referenced by analyze().
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 141 of file SiPixelOfflineCalibAnalysisBase.cc.
References calibrationEnd(), createOutputFile_, daqBE_, outputFileName_, and dqm::implementation::DQMStore::save().
Referenced by o2olib.O2ORunMgr::executeJob().
|
overrideprivate |
Definition at line 135 of file SiPixelOfflineCalibAnalysisBase.cc.
|
inlineprotected |
Definition at line 120 of file SiPixelOfflineCalibAnalysisBase.h.
References eventCounter_.
|
inline |
Definition at line 104 of file SiPixelOfflineCalibAnalysisBase.h.
References runnumbers_.
|
static |
Definition at line 152 of file SiPixelOfflineCalibAnalysisBase.cc.
References vCalValues_.
Referenced by SiPixelSCurveCalibrationAnalysis::calibrationSetup(), and chi2toMinimize().
|
privatevirtual |
Reimplemented in SiPixelSCurveCalibrationAnalysis, SiPixelGainCalibrationAnalysis, and SiPixelIsAliveCalibration.
Definition at line 254 of file SiPixelOfflineCalibAnalysisBase.cc.
References detIdNames_.
Referenced by analyze().
bool SiPixelOfflineCalibAnalysisBase::setDQMDirectory | ( | std::string | dirName | ) |
Definition at line 217 of file SiPixelOfflineCalibAnalysisBase.cc.
References daqBE_, dqm::implementation::IGetter::dirExists(), TrackerOfflineValidation_Dqm_cff::dirName, and dqm::implementation::DQMStore::setCurrentFolder().
Referenced by SiPixelSCurveCalibrationAnalysis::buildACurveHistogram(), SiPixelIsAliveCalibration::calibrationEnd(), SiPixelGainCalibrationAnalysis::doFits(), SiPixelIsAliveCalibration::newDetID(), SiPixelGainCalibrationAnalysis::newDetID(), and SiPixelSCurveCalibrationAnalysis::newDetID().
bool SiPixelOfflineCalibAnalysisBase::setDQMDirectory | ( | uint32_t | detID | ) |
Definition at line 222 of file SiPixelOfflineCalibAnalysisBase.cc.
References folderMaker_, and SiPixelFolderOrganizer::setModuleFolder().
std::string SiPixelOfflineCalibAnalysisBase::translateDetIdToString | ( | uint32_t | detid | ) |
Definition at line 154 of file SiPixelOfflineCalibAnalysisBase.cc.
References hcalRecHitTable_cff::detId, detIdNames_, PixelBarrelName::name(), PixelEndcapName::name(), convertSQLitetoXML_cfg::output, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by analyze(), SiPixelSCurveCalibrationAnalysis::buildACurveHistogram(), SiPixelIsAliveCalibration::calibrationEnd(), SiPixelGainCalibrationAnalysis::doFits(), SiPixelIsAliveCalibration::newDetID(), SiPixelGainCalibrationAnalysis::newDetID(), SiPixelSCurveCalibrationAnalysis::newDetID(), and SiPixelGainCalibrationAnalysis::printSummary().
|
protected |
Definition at line 115 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by analyze(), and SiPixelOfflineCalibAnalysisBase().
|
protected |
Definition at line 108 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by analyze(), checkPixel(), SiPixelIsAliveCalibration::doFits(), and SiPixelIsAliveCalibration::newDetID().
|
protected |
|
protected |
Definition at line 113 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by analyze(), and SiPixelOfflineCalibAnalysisBase().
|
protected |
Definition at line 112 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by beginRun(), and SiPixelOfflineCalibAnalysisBase().
|
private |
Definition at line 127 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by endJob(), and SiPixelOfflineCalibAnalysisBase().
|
private |
Definition at line 124 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by bookDQMHistogram1D(), bookDQMHistogram2D(), bookDQMHistoPlaquetteSummary2D(), endJob(), setDQMDirectory(), and SiPixelOfflineCalibAnalysisBase().
|
private |
Definition at line 135 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by analyze(), newDetID(), and translateDetIdToString().
|
private |
Definition at line 134 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by analyze().
|
private |
Definition at line 130 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by analyze(), and EventNumber().
|
static |
Definition at line 102 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by SiPixelSCurveCalibrationAnalysis::calibrationSetup(), and chi2toMinimize().
|
private |
Definition at line 123 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by setDQMDirectory(), and SiPixelOfflineCalibAnalysisBase().
|
protected |
Definition at line 109 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by analyze(), and bookDQMHistoPlaquetteSummary2D().
|
protected |
Definition at line 118 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by beginRun(), SiPixelSCurveCalibrationAnalysis::calibrationSetup(), and SiPixelSCurveCalibrationAnalysis::doFits().
|
private |
Definition at line 126 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by endJob(), and SiPixelOfflineCalibAnalysisBase().
|
private |
Definition at line 129 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by analyze(), and getRunNumbers().
|
private |
Definition at line 137 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by beginRun(), and SiPixelOfflineCalibAnalysisBase().
|
protected |
Definition at line 110 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by analyze(), checkPixel(), and SiPixelSCurveCalibrationAnalysis::makeThresholdSummary().
|
private |
Definition at line 125 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by beginRun(), bookDQMHistogram1D(), bookDQMHistogram2D(), and bookDQMHistoPlaquetteSummary2D().
|
private |
Definition at line 139 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by analyze(), and SiPixelOfflineCalibAnalysisBase().
|
protected |
Definition at line 114 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by analyze(), and SiPixelOfflineCalibAnalysisBase().
|
staticprotected |
Definition at line 119 of file SiPixelOfflineCalibAnalysisBase.h.
Referenced by beginRun(), SiPixelSCurveCalibrationAnalysis::calibrationSetup(), SiPixelGainCalibrationAnalysis::doFits(), SiPixelSCurveCalibrationAnalysis::doFits(), SiPixelSCurveCalibrationAnalysis::estimateSCurveParameters(), SiPixelSCurveCalibrationAnalysis::fittedSCurveSanityCheck(), and getVcalValues().