#include <CondTools/SiStrip/plugins/SiStripChannelGainFromDBMiscalibrator.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< SiStripApvGain > | getNewObject (const std::map< std::pair< uint32_t, int >, float > &theMap) |
Private Attributes | |
const uint32_t | m_gainType |
const std::vector< edm::ParameterSet > | m_parameters |
const std::string | m_Record |
const bool | m_saveMaps |
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 ESProduct , Transition Tr = Transition::Event> | |
auto | esConsumes (eventsetup::EventSetupRecordKey const &, 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 Channel Gain payload from Database
Implementation: Read a SiStrip Channel Gain 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 SiStripChannelGainFromDBMiscalibrator.cc.
|
explicit |
Definition at line 81 of file SiStripChannelGainFromDBMiscalibrator.cc.
References edm::ParameterSet::getUntrackedParameter(), m_gainType, m_parameters, m_saveMaps, new_payload_map, old_payload_map, ratio_map, scale_map, smear_map, and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
Definition at line 114 of file SiStripChannelGainFromDBMiscalibrator.cc.
|
overrideprivate |
Definition at line 125 of file SiStripChannelGainFromDBMiscalibrator.cc.
References SiStripMiscalibrate::Entry::add(), cond::service::PoolDBOutputService::currentTime(), edmIntegrityCheck::d, spr::find(), g4SimHits_cfi::Gain, edm::EventSetup::get(), SiStripGain::getApvGain(), SiStripGain::getDetIds(), getNewObject(), SiStripGain::getRange(), SiStripMiscalibrate::getRegionFromString(), SiStripMiscalibrate::getRegionsFromDetId(), edm::Service< T >::isAvailable(), m_gainType, m_parameters, m_Record, SiStripMiscalibrate::Entry::mean(), new_payload_map, old_payload_map, edm::ESHandle< T >::product(), ratio_map, 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 SiStripChannelGainFromDBMiscalibrator.cc.
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 268 of file SiStripChannelGainFromDBMiscalibrator.cc.
References SiStripMiscalibrate::getTruncatedRange(), m_gainType, m_saveMaps, new_payload_map, old_payload_map, ratio_map, scale_map, smear_map, and AlCaHLTBitMon_QueryRunRegistry::string.
|
static |
Definition at line 332 of file SiStripChannelGainFromDBMiscalibrator.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 297 of file SiStripChannelGainFromDBMiscalibrator.cc.
References GetRecoTauVFromDQM_MC_cff::obj.
Referenced by analyze().
|
private |
Definition at line 66 of file SiStripChannelGainFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripChannelGainFromDBMiscalibrator().
|
private |
Definition at line 68 of file SiStripChannelGainFromDBMiscalibrator.cc.
Referenced by analyze(), and SiStripChannelGainFromDBMiscalibrator().
|
private |
Definition at line 65 of file SiStripChannelGainFromDBMiscalibrator.cc.
Referenced by analyze().
|
private |
Definition at line 67 of file SiStripChannelGainFromDBMiscalibrator.cc.
Referenced by endJob(), and SiStripChannelGainFromDBMiscalibrator().
|
private |
Definition at line 74 of file SiStripChannelGainFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripChannelGainFromDBMiscalibrator().
|
private |
Definition at line 73 of file SiStripChannelGainFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripChannelGainFromDBMiscalibrator().
|
private |
Definition at line 72 of file SiStripChannelGainFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripChannelGainFromDBMiscalibrator().
|
private |
Definition at line 70 of file SiStripChannelGainFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripChannelGainFromDBMiscalibrator().
|
private |
Definition at line 71 of file SiStripChannelGainFromDBMiscalibrator.cc.
Referenced by analyze(), endJob(), and SiStripChannelGainFromDBMiscalibrator().