#include <CondTools/SiStrip/plugins/SiStripNoisesFromDBMiscalibrator.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 | endJob () override |
SiStripNoises | getNewObject (const std::map< std::pair< uint32_t, int >, float > &theMap) |
SiStripNoises | getNewObject_withDefaults (const std::map< std::pair< uint32_t, int >, float > &theMap, const float theDefault) |
Private Attributes | |
const edm::FileInPath | fp_ |
const bool | m_fillDefaults |
const edm::ESGetToken < SiStripNoises, SiStripNoisesRcd > | m_noiseToken |
const std::vector < edm::ParameterSet > | m_parameters |
const uint32_t | m_printdebug |
const bool | m_saveMaps |
const edm::ESGetToken < TrackerTopology, TrackerTopologyRcd > | m_tTopoToken |
std::unique_ptr< TrackerMap > | missing_map |
std::unique_ptr< TrackerMap > | new_payload_map |
std::unique_ptr< TrackerMap > | old_payload_map |
std::unique_ptr< TrackerMap > | ratio_map |
std::unique_ptr< TrackerMap > | scale_map |
std::unique_ptr< TrackerMap > | smear_map |
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 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<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () noexcept |
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... | |
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: Class to miscalibrate a SiStrip Noise payload from Database
Implementation: Read a SiStrip Noise payload from DB (either central DB or sqlite file) and apply a miscalibration (either an offset / gaussian smearing or both) returns a local sqlite file with the same since of the original payload
Definition at line 51 of file SiStripNoisesFromDBMiscalibrator.cc.
|
explicit |
Definition at line 85 of file SiStripNoisesFromDBMiscalibrator.cc.
References edm::EDConsumerBase::esConsumes(), fp_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), SiStripDetInfoFileReader::kDefaultFile, m_fillDefaults, m_noiseToken, m_parameters, m_saveMaps, m_tTopoToken, missing_map, new_payload_map, old_payload_map, ratio_map, scale_map, and smear_map.
|
overridedefault |
|
overrideprivatevirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 128 of file SiStripNoisesFromDBMiscalibrator.cc.
References cond::service::PoolDBOutputService::createOneIOV(), ztail::d, spr::find(), edm::EventSetup::getData(), getNewObject(), getNewObject_withDefaults(), SiStripMiscalibrate::getRegionFromString(), SiStripMiscalibrate::getRegionsFromDetId(), dqmiolumiharvest::j, m_fillDefaults, m_noiseToken, m_parameters, m_printdebug, m_tTopoToken, new_payload_map, gpuVertexFinder::noise, me0TriggerPseudoDigis_cff::nStrips, old_payload_map, submitPVValidationJobs::params, sistrip::SpyUtilities::range(), ratio_map, HLT_FULL_cff::region, scale_map, SiStripMiscalibrate::Smearings::setSmearing(), smear_map, and AlCaHLTBitMon_QueryRunRegistry::string.
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 278 of file SiStripNoisesFromDBMiscalibrator.cc.
References SiStripMiscalibrate::getTruncatedRange(), m_fillDefaults, m_saveMaps, missing_map, new_payload_map, old_payload_map, sistrip::SpyUtilities::range(), ratio_map, scale_map, and smear_map.
|
static |
Definition at line 394 of file SiStripNoisesFromDBMiscalibrator.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), edm::ParameterSetDescription::addVPSet(), submitPVResolutionJobs::desc, edm::ParameterSetDescription::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 368 of file SiStripNoisesFromDBMiscalibrator.cc.
References gpuVertexFinder::noise, and getGTfromDQMFile::obj.
Referenced by analyze().
|
private |
Definition at line 307 of file SiStripNoisesFromDBMiscalibrator.cc.
References fp_, edm::FileInPath::fullPath(), LogDebug, combine::missing, missing_map, mergeVDriftHistosByStation::name, gpuVertexFinder::noise, getGTfromDQMFile::obj, SiStripDetInfoFileReader::read(), DQM::reader, and pileupReCalc_HLTpaths::trunc.
Referenced by analyze().
|
private |
Definition at line 70 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by getNewObject_withDefaults(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 67 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 72 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by analyze(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 69 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by analyze(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 66 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by analyze().
|
private |
Definition at line 68 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by endJob(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 71 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by analyze(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 79 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by endJob(), getNewObject_withDefaults(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 78 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 77 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 76 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 74 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 75 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripNoisesFromDBMiscalibrator().