#include <Tools/SiPixelGainCalibScaler/plugins/SiPixelGainCalibScaler.cc>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::one::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) override |
void | beginJob () override |
template<class tokenType , class PayloadType > | |
void | computeAndStorePalyoads (const edm::EventSetup &iSetup, const tokenType &token) |
void | endJob () override |
Additional Inherited Members | |
Public Types inherited from edm::one::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
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) |
Description: Scales Pixel Gain Payloads by applying the VCal offset and slopes.
Implementation: Makes use of trick to loop over all IOVs in a tag by running on all the runs with EmptySource and just access DB once the IOV has changed via ESWatcher mechanism
Definition at line 94 of file SiPixelGainCalibScaler.cc.
|
explicit |
Definition at line 129 of file SiPixelGainCalibScaler.cc.
References edm::EDConsumerBase::esConsumes(), Exception, gainHLTCalibToken_, gainOfflineCalibToken_, gainScale::VCalInfo::init(), m_parameters, phase0VCal, phase1VCal, tkGeomToken_, and tkTopoToken_.
|
override |
Definition at line 162 of file SiPixelGainCalibScaler.cc.
|
overrideprivatevirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 169 of file SiPixelGainCalibScaler.cc.
References edm::ESWatcher< T >::check(), gainHLTCalibToken_, gainOfflineCalibToken_, iEvent, isForHLT_, pixelHLTGainWatcher_, pixelOfflineGainWatcher_, and writedatasetfile::run.
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 344 of file SiPixelGainCalibScaler.cc.
|
private |
Definition at line 191 of file SiPixelGainCalibScaler.cc.
References cond::service::PoolDBOutputService::appendOneIOV(), cond::service::PoolDBOutputService::beginOfTime(), cuy::col, cond::service::PoolDBOutputService::createOneIOV(), cond::service::PoolDBOutputService::currentTime(), ztail::d, TrackerGeometry::dets(), cppFunctionSkipper::exception, nano_mu_digi_cff::float, PedestalClient_cfi::gain, gainScale::VCalInfo::getConversionFactor(), gainScale::VCalInfo::getConversionFactorL1(), edm::EventSetup::getData(), gainScale::VCalInfo::getOffset(), gainScale::VCalInfo::getOffsetL1(), edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), TrackerGeometry::isThere(), nano_mu_digi_cff::layer, SiStripPI::max, hgcalPlots::ncols, GeomDetEnumerators::P1PXB, GeomDetEnumerators::P1PXEC, jetsAK4_Puppi_cff::payload, phase0VCal, phase1VCal, PixelSubdetector::PixelBarrel, gainScale::VCalInfo::printAllInfo(), TrackerTopology::pxbLayer(), FastTimerService_cff::range, recordName_, DetId::subdetId(), tkGeomToken_, tkTopoToken_, unpackBuffers-CaloStage2::token, verbose_, and cms::Exception::what().
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 347 of file SiPixelGainCalibScaler.cc.
|
static |
Definition at line 350 of file SiPixelGainCalibScaler.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), submitPVResolutionJobs::desc, phase0VCal, phase1VCal, AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.
|
private |
Definition at line 117 of file SiPixelGainCalibScaler.cc.
Referenced by analyze(), and SiPixelGainCalibScaler().
|
private |
Definition at line 118 of file SiPixelGainCalibScaler.cc.
Referenced by analyze(), and SiPixelGainCalibScaler().
|
private |
Definition at line 110 of file SiPixelGainCalibScaler.cc.
Referenced by analyze().
|
private |
Definition at line 112 of file SiPixelGainCalibScaler.cc.
Referenced by SiPixelGainCalibScaler().
|
private |
Definition at line 114 of file SiPixelGainCalibScaler.cc.
Referenced by computeAndStorePalyoads(), fillDescriptions(), and SiPixelGainCalibScaler().
|
private |
Definition at line 115 of file SiPixelGainCalibScaler.cc.
Referenced by computeAndStorePalyoads(), fillDescriptions(), and SiPixelGainCalibScaler().
|
private |
Definition at line 122 of file SiPixelGainCalibScaler.cc.
Referenced by analyze().
|
private |
Definition at line 123 of file SiPixelGainCalibScaler.cc.
Referenced by analyze().
|
private |
Definition at line 109 of file SiPixelGainCalibScaler.cc.
Referenced by computeAndStorePalyoads().
|
private |
Definition at line 119 of file SiPixelGainCalibScaler.cc.
Referenced by computeAndStorePalyoads(), and SiPixelGainCalibScaler().
|
private |
Definition at line 120 of file SiPixelGainCalibScaler.cc.
Referenced by computeAndStorePalyoads(), and SiPixelGainCalibScaler().
|
private |
Definition at line 111 of file SiPixelGainCalibScaler.cc.
Referenced by computeAndStorePalyoads().