#include <SiStripApvGainBuilderFromTag.h>
Private Member Functions | |
void | fillParameters (std::map< int, std::vector< double > > &mapToFill, const std::string ¶meterName) const |
Fills the parameters read from cfg and matching the name in the given map. More... | |
void | fillSubDetParameter (std::map< int, std::vector< double > > &mapToFill, const std::vector< double > &v, const int subDet, const unsigned short layers) const |
Private Attributes | |
bool | printdebug_ |
edm::ParameterSet | pset_ |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
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 | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
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) |
Produces a tag for the apvGain object starting from an already existing tag in the db.
The input tag is used as starting point and all the values for missing apvs are filled with the meanGain specified via cfg.
It will optionally apply a correction specified via cfg if the applyTuning bool is true.
The resulting new gain values can optionally be smeared with a gaussian of sigma specified in the cfg.
Note: we are not using the usual DummyCondDBWriter because we cannot pass an input tag to a service without several changes to the base classes used together with it.
Definition at line 31 of file SiStripApvGainBuilderFromTag.h.
|
explicit |
Definition at line 14 of file SiStripApvGainBuilderFromTag.cc.
|
inlineoverride |
Definition at line 37 of file SiStripApvGainBuilderFromTag.h.
References analyze(), fillParameters(), fillSubDetParameter(), LayerTriplets::layers(), genParticles_cff::map, AlCaHLTBitMon_QueryRunRegistry::string, and findQualityFiles::v.
|
override |
Definition at line 19 of file SiStripApvGainBuilderFromTag.cc.
References cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::beginOfTime(), KineDebug3::count(), cond::service::PoolDBOutputService::createNewIOV(), cond::service::PoolDBOutputService::currentTime(), SoftLeptonByDistance_cfi::distance, cond::service::PoolDBOutputService::endOfTime(), cmsRelvalreport::exit, spr::find(), edm::EventSetup::get(), SiStripDetInfoFileReader::getAllData(), SiStripApvGain::getApvGain(), SiStripApvGain::getDetIds(), SiStripFakeAPVParameters::getIndex(), edm::ParameterSet::getParameter(), SiStripApvGain::getRange(), edm::ParameterSet::getUntrackedParameter(), estimatePileup::inputRange, edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), LogDebug, haddnano::obj, printdebug_, edm::ESHandle< T >::product(), pset_, SiStripApvGain::put(), matplotRender::reader, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ~SiStripApvGainBuilderFromTag().
|
private |
Fills the parameters read from cfg and matching the name in the given map.
Referenced by ~SiStripApvGainBuilderFromTag().
|
private |
Fills the map with the paramters for the given subdetector.
Each vector "v" holds the parameters for the layers/rings, if the vector has only one parameter all the layers/rings get that parameter.
The only other possibility is that the number of parameters equals the number of layers, otherwise an exception of type "Configuration" will be thrown.
Referenced by ~SiStripApvGainBuilderFromTag().
|
private |
Definition at line 53 of file SiStripApvGainBuilderFromTag.h.
Referenced by analyze().
|
private |
Definition at line 54 of file SiStripApvGainBuilderFromTag.h.
Referenced by analyze().