#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 | beginJob () override |
void | endJob () override |
std::unique_ptr< SiStripNoises > | getNewObject (const std::map< std::pair< uint32_t, int >, float > &theMap) |
std::unique_ptr< SiStripNoises > | getNewObject_withDefaults (const std::map< std::pair< uint32_t, int >, float > &theMap, const float theDefault) |
Private Attributes | |
edm::FileInPath | fp_ |
const bool | m_fillDefaults |
const std::vector< edm::ParameterSet > | m_parameters |
const bool | m_saveMaps |
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) |
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<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) |
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 83 of file SiStripNoisesFromDBMiscalibrator.cc.
References fp_, edm::ParameterSet::getUntrackedParameter(), m_fillDefaults, m_parameters, m_saveMaps, missing_map, new_payload_map, old_payload_map, ratio_map, scale_map, and smear_map.
|
override |
Definition at line 118 of file SiStripNoisesFromDBMiscalibrator.cc.
|
overrideprivate |
Definition at line 125 of file SiStripNoisesFromDBMiscalibrator.cc.
References SiStripMiscalibrate::Entry::add(), cond::service::PoolDBOutputService::currentTime(), ztail::d, spr::find(), edm::EventSetup::get(), SiStripNoises::getDetIds(), getNewObject(), getNewObject_withDefaults(), SiStripNoises::getNoise(), SiStripNoises::getRange(), SiStripMiscalibrate::getRegionFromString(), SiStripMiscalibrate::getRegionsFromDetId(), edm::Service< T >::isAvailable(), dqmiolumiharvest::j, m_fillDefaults, m_parameters, SiStripMiscalibrate::Entry::mean(), new_payload_map, hgcalDigitizer_cfi::noise, me0TriggerPseudoDigis_cff::nStrips, old_payload_map, CalibrationSummaryClient_cfi::params, edm::ESHandle< T >::product(), FastTimerService_cff::range, ratio_map, HLT_2018_cff::region, SiStripMiscalibrate::Entry::reset(), scale_map, SiStripMiscalibrate::Smearings::setSmearing(), smear_map, AlCaHLTBitMon_QueryRunRegistry::string, and cond::service::PoolDBOutputService::writeOne().
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 262 of file SiStripNoisesFromDBMiscalibrator.cc.
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 265 of file SiStripNoisesFromDBMiscalibrator.cc.
References SiStripMiscalibrate::getTruncatedRange(), m_fillDefaults, m_saveMaps, missing_map, new_payload_map, old_payload_map, FastTimerService_cff::range, ratio_map, scale_map, and smear_map.
|
static |
Definition at line 383 of file SiStripNoisesFromDBMiscalibrator.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), edm::ParameterSetDescription::addVPSet(), DEFINE_FWK_MODULE, edm::ParameterSetDescription::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 356 of file SiStripNoisesFromDBMiscalibrator.cc.
References hgcalDigitizer_cfi::noise, and getGTfromDQMFile::obj.
Referenced by analyze().
|
private |
Definition at line 294 of file SiStripNoisesFromDBMiscalibrator.cc.
References fp_, edm::FileInPath::fullPath(), LogDebug, combine::missing, missing_map, Skims_PA_cff::name, hgcalDigitizer_cfi::noise, getGTfromDQMFile::obj, indexGen::ofile, 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 69 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by analyze(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 68 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by endJob(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 77 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by endJob(), getNewObject_withDefaults(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 76 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().
|
private |
Definition at line 74 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 72 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripNoisesFromDBMiscalibrator().
|
private |
Definition at line 73 of file SiStripNoisesFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripNoisesFromDBMiscalibrator().