|
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > | KeyedProxies |
|
typedef std::vector< EventSetupRecordKey > | Keys |
|
typedef std::map< EventSetupRecordKey, KeyedProxies > | RecordProxies |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
| ESProducer (const ESProducer &)=delete |
|
ESProducer const & | operator= (const ESProducer &)=delete |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const es::Label &iLabel={}) |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const char *iLabel) |
|
template<typename T > |
auto | setWhatProduced (T *iThis, const std::string &iLabel) |
|
template<typename T , typename TDecorator > |
auto | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={}) |
|
template<typename T , typename TReturn , typename TRecord > |
auto | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel={}) |
|
template<typename T , typename TReturn , typename TRecord , typename TArg > |
ESConsumesCollectorT< TRecord > | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={}) |
|
template<class TFactory > |
void | registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
|
virtual void | registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string()) |
|
void | registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) override |
| override DataProxyProvider method More...
|
|
void | eraseAll (const EventSetupRecordKey &iRecordKey) |
| deletes all the Proxies in aStream More...
|
|
void | invalidateProxies (const EventSetupRecordKey &iRecordKey) |
|
template<class T > |
void | usingRecord () |
|
void | usingRecordWithKey (const EventSetupRecordKey &) |
|
template<typename TDependentRecord, typename TInputRecord>
class SiStripGainESProducerTemplate< TDependentRecord, TInputRecord >
Definition at line 25 of file SiStripGainESProducerTemplate.h.
template<typename TDependentRecord , typename TInputRecord >
Definition at line 142 of file SiStripGainESProducerTemplate.h.
References SiStripGainESProducerTemplate< TDependentRecord, TInputRecord >::automaticMode_, NGains, SiStripGainESProducerTemplate< TDependentRecord, TInputRecord >::norm_, SiStripGainESProducerTemplate< TDependentRecord, TInputRecord >::pDD, and SiStripGainESProducerTemplate< TDependentRecord, TInputRecord >::printdebug_.
Referenced by SiStripGainESProducerTemplate< TDependentRecord, TInputRecord >::SiStripGainNormalizationFunction(), and SiStripGainESProducerTemplate< TDependentRecord, TInputRecord >::~SiStripGainESProducerTemplate().
147 std::vector<uint32_t> DetIds;
148 pDD[apvGainIndex]->getDetIds(DetIds);
150 double SumOfGains=0.;
153 for(std::vector<uint32_t>::const_iterator detit=DetIds.begin(); detit!=DetIds.end(); detit++){
159 for(std::vector<float>::const_iterator apvit=detRange.first; apvit!=detRange.second; apvit++){
161 SumOfGains+=(*apvit);
164 edm::LogInfo(
"SiStripGainESProducer::produce()")<<
"detid/component: " << *detit <<
"/"<<iComp<<
" gain factor " <<*apvit ;
170 if(SumOfGains>0 && NGains>0){
171 NFactor=SumOfGains/
NGains;
174 edm::LogError(
"SiStripGainESProducer::produce() - ERROR: empty set of gain values received. Cannot compute normalization factor. Assuming 1 for such factor") << std::endl;
181 NFactor=
norm_[apvGainIndex];
184 if (
printdebug_)
edm::LogInfo(
"SiStripGainESProducer")<<
" putting A SiStrip Gain object in eventSetup with normalization factor " << NFactor ;
std::vector< edm::ESHandle< SiStripApvGain > > pDD
std::vector< double > norm_
std::pair< ContainerIterator, ContainerIterator > Range
template<typename TDependentRecord , typename TInputRecord >
Definition at line 97 of file SiStripGainESProducerTemplate.h.
References a, SiStripGainESProducerTemplate< TDependentRecord, TInputRecord >::apvgain_, SiStripGainESProducerTemplate< TDependentRecord, TInputRecord >::fillApvGain(), muonCSCDigis_cfi::gain, SiStripGainESProducerTemplate< TDependentRecord, TInputRecord >::getNFactor(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), mps_fire::i, SiStripGain::multiply(), SiStripGainESProducerTemplate< TDependentRecord, TInputRecord >::pDD, and edm::second().
Referenced by SiStripGainESProducerTemplate< TDependentRecord, TInputRecord >::produce(), and SiStripGainESProducerTemplate< TDependentRecord, TInputRecord >::~SiStripGainESProducerTemplate().
137 edm::LogError(
"SiStripGainESProducer") <<
"[SiStripGainNormalizationFunction] - ERROR: asking for a pair of records different from <SiStripGainRcd,SiStripApvGainRcd> and <SiStripGainSimRcd,SiStripApvGainSimRcd>" << std::endl;
void multiply(const SiStripApvGain &apvgain, const double &factor, const std::pair< std::string, std::string > &recordLabelPair)
std::vector< edm::ESHandle< SiStripApvGain > > pDD
void fillApvGain(const SiStripGainRcd &a, const std::pair< std::string, std::string > &recordLabelPair, std::vector< edm::ESHandle< SiStripApvGain > > &pDD)
U second(std::pair< T, U > const &p)
const DepRecordT getRecord() const
double getNFactor(const int apvGainIndex)
std::vector< std::pair< std::string, std::string > > apvgain_