test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
FFTJetLookupTableESProducer< CT > Class Template Reference

#include <JetMETCorrections/FFTJetModules/plugins/FFTJetLookupTableESProducer.cc>

Inheritance diagram for FFTJetLookupTableESProducer< CT >:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Types

typedef FFTJetLookupTableRcd< CT > MyRecord
 
typedef
FFTJetCorrectorParametersRcd
< CT > 
ParentRecord
 
typedef boost::shared_ptr
< FFTJetLookupTableSequence
ReturnType
 
- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey, boost::shared_ptr
< DataProxy > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 

Public Member Functions

 FFTJetLookupTableESProducer (const edm::ParameterSet &)
 
ReturnType produce (const MyRecord &)
 
virtual ~FFTJetLookupTableESProducer ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider ()
 

Private Member Functions

void doWhenChanged (const ParentRecord &)
 

Private Attributes

bool isArchiveCompressed
 
ReturnType product
 
bool remakeProduct
 
std::vector< edm::ParameterSettables
 
bool verbose
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
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 &)
 

Detailed Description

template<typename CT>
class FFTJetLookupTableESProducer< CT >

Description: produces lookup tables for jet reconstruction

Implementation: [Notes on implementation]

Definition at line 112 of file FFTJetLookupTableESProducer.cc.

Member Typedef Documentation

template<typename CT>
typedef FFTJetLookupTableRcd<CT> FFTJetLookupTableESProducer< CT >::MyRecord

Definition at line 116 of file FFTJetLookupTableESProducer.cc.

template<typename CT>
typedef FFTJetCorrectorParametersRcd<CT> FFTJetLookupTableESProducer< CT >::ParentRecord

Definition at line 117 of file FFTJetLookupTableESProducer.cc.

template<typename CT>
typedef boost::shared_ptr<FFTJetLookupTableSequence> FFTJetLookupTableESProducer< CT >::ReturnType

Definition at line 115 of file FFTJetLookupTableESProducer.cc.

Constructor & Destructor Documentation

template<typename CT >
FFTJetLookupTableESProducer< CT >::FFTJetLookupTableESProducer ( const edm::ParameterSet psIn)

Definition at line 142 of file FFTJetLookupTableESProducer.cc.

References edm::eventsetup::dependsOn(), FFTJetLookupTableESProducer< CT >::doWhenChanged(), and edm::ESProducer::setWhatProduced().

144  : tables(psIn.getParameter<std::vector<edm::ParameterSet> >("tables")),
145  isArchiveCompressed(psIn.getParameter<bool>("isArchiveCompressed")),
146  verbose(psIn.getUntrackedParameter<bool>("verbose")),
147  remakeProduct(true)
148 {
149  // The following line is needed to tell the framework what
150  // data is being produced
152 }
void doWhenChanged(const ParentRecord &)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
depends_on::OneHolder< T, TDependsOnRecord > dependsOn(void(T::*iT)(const TDependsOnRecord &))
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::vector< edm::ParameterSet > tables
template<typename CT>
virtual FFTJetLookupTableESProducer< CT >::~FFTJetLookupTableESProducer ( )
inlinevirtual

Definition at line 120 of file FFTJetLookupTableESProducer.cc.

120 {}

Member Function Documentation

template<typename CT>
void FFTJetLookupTableESProducer< CT >::doWhenChanged ( const ParentRecord )
inlineprivate
template<typename CT >
FFTJetLookupTableESProducer< CT >::ReturnType FFTJetLookupTableESProducer< CT >::produce ( const MyRecord iRecord)

Definition at line 157 of file FFTJetLookupTableESProducer.cc.

References buildLookupTables(), edm::eventsetup::EventSetupRecord::get(), and dataDML::tables.

158 {
159  if (remakeProduct)
160  {
161  // According to:
162  // https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideHowToGetDependentRecord
163  //
164  // If ARecord is dependent on BRecord then you can
165  // call the method getRecord of ARecord:
166  //
167  // const BRecord& b = aRecord.getRecord<BRecord>();
168  //
169  const ParentRecord& rec = iRecord.template getRecord<ParentRecord>();
171  rec.get(parHandle);
173  *parHandle, tables, isArchiveCompressed, verbose);
174  remakeProduct = false;
175  }
176  return product;
177 }
static boost::shared_ptr< FFTJetLookupTableSequence > buildLookupTables(const FFTJetCorrectorParameters &tablePars, const std::vector< edm::ParameterSet > &tableDefs, const bool isArchiveCompressed, const bool verbose)
std::vector< edm::ParameterSet > tables
FFTJetCorrectorParametersRcd< CT > ParentRecord

Member Data Documentation

template<typename CT>
bool FFTJetLookupTableESProducer< CT >::isArchiveCompressed
private

Definition at line 130 of file FFTJetLookupTableESProducer.cc.

template<typename CT>
ReturnType FFTJetLookupTableESProducer< CT >::product
private

Definition at line 135 of file FFTJetLookupTableESProducer.cc.

template<typename CT>
bool FFTJetLookupTableESProducer< CT >::remakeProduct
private
template<typename CT>
std::vector<edm::ParameterSet> FFTJetLookupTableESProducer< CT >::tables
private

Definition at line 129 of file FFTJetLookupTableESProducer.cc.

template<typename CT>
bool FFTJetLookupTableESProducer< CT >::verbose
private