#include <CalibTracker/SiPixelTools/src/SiPixelOfflineCalibAnalysisBase.cc>
Public Types | |
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 |
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 () | |
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 |
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
virtual | ~EDConsumerBase () noexcept(false) |
Static Public Member Functions | |
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 () |
Static Public Attributes | |
static TF1 * | fitFunction_ = nullptr |
Protected Member Functions | |
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) |
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::EventSetup &iSetup) |
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 |
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 302 of file SiPixelOfflineCalibAnalysisBase.cc.
References TrackCollections2monitor_cff::func, and dqm::legacy::MonitorElement::getTH1().
|
overrideprivatevirtual |
Implements edm::EDAnalyzer.
Definition at line 67 of file SiPixelOfflineCalibAnalysisBase.cc.
References edm::DetSetVector< T >::begin(), cablingMapToken_, calib_, calibrationSetup(), calibToken_, checkCorrectCalibrationType(), 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::EDAnalyzer.
Definition at line 134 of file SiPixelOfflineCalibAnalysisBase.cc.
|
private |
|
overrideprivatevirtual |
Reimplemented from edm::EDAnalyzer.
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 177 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 183 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 189 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 202 of file SiPixelOfflineCalibAnalysisBase.cc.
References dqm::implementation::IBooker::book2D(), daqBE_, 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 248 of file SiPixelOfflineCalibAnalysisBase.cc.
Referenced by endJob().
|
privatevirtual |
Reimplemented in SiPixelSCurveCalibrationAnalysis, SiPixelGainCalibrationAnalysis, and SiPixelIsAliveCalibration.
Definition at line 244 of file SiPixelOfflineCalibAnalysisBase.cc.
Referenced by analyze(), and beginRun().
|
privatevirtual |
Reimplemented in SiPixelSCurveCalibrationAnalysis, SiPixelGainCalibrationAnalysis, and SiPixelIsAliveCalibration.
Definition at line 224 of file SiPixelOfflineCalibAnalysisBase.cc.
Referenced by analyze().
|
private |
Definition at line 257 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 226 of file SiPixelOfflineCalibAnalysisBase.cc.
References cuy::col, gather_cfg::cout, and mps_fire::i.
Referenced by analyze().
|
overrideprivatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 138 of file SiPixelOfflineCalibAnalysisBase.cc.
References calibrationEnd(), createOutputFile_, daqBE_, outputFileName_, and dqm::implementation::DQMStore::save().
Referenced by o2olib.O2ORunMgr::executeJob().
|
inlineprotected |
|
inline |
|
static |
Definition at line 149 of file SiPixelOfflineCalibAnalysisBase.cc.
References vCalValues_.
Referenced by SiPixelSCurveCalibrationAnalysis::calibrationSetup(), and chi2toMinimize().
|
privatevirtual |
Reimplemented in SiPixelSCurveCalibrationAnalysis, SiPixelGainCalibrationAnalysis, and SiPixelIsAliveCalibration.
Definition at line 251 of file SiPixelOfflineCalibAnalysisBase.cc.
References detIdNames_.
Referenced by analyze().
bool SiPixelOfflineCalibAnalysisBase::setDQMDirectory | ( | std::string | dirName | ) |
Definition at line 214 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 219 of file SiPixelOfflineCalibAnalysisBase.cc.
References folderMaker_, and SiPixelFolderOrganizer::setModuleFolder().
std::string SiPixelOfflineCalibAnalysisBase::translateDetIdToString | ( | uint32_t | detid | ) |
Definition at line 151 of file SiPixelOfflineCalibAnalysisBase.cc.
References detIdNames_, PixelBarrelName::name(), PixelEndcapName::name(), convertSQLitetoXML_cfg::output, AlCaHLTBitMon_QueryRunRegistry::string, and DetId::subdetId().
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().