CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
SiStripLorentzAngleDepESProducer Class Reference

#include <CalibTracker/SiStripESProducers/plugins/real/SiStripLorentzAngleDepESProducer.cc>

Inheritance diagram for SiStripLorentzAngleDepESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

boost::shared_ptr
< SiStripLorentzAngle
produce (const SiStripLorentzAngleDepRcd &)
 
 SiStripLorentzAngleDepESProducer (const edm::ParameterSet &)
 
 ~SiStripLorentzAngleDepESProducer ()
 
- 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 Attributes

edm::ParameterSet getDeconv
 
edm::ParameterSet getLatency
 
edm::ParameterSet getPeak
 
edm::ParameterSet pset_
 
boost::shared_ptr
< SiStripLorentzAngle
siStripLA_
 

Additional Inherited Members

- 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
 
- 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

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 22 of file SiStripLorentzAngleDepESProducer.h.

Constructor & Destructor Documentation

SiStripLorentzAngleDepESProducer::SiStripLorentzAngleDepESProducer ( const edm::ParameterSet iConfig)

Definition at line 25 of file SiStripLorentzAngleDepESProducer.cc.

References edm::ESProducer::setWhatProduced().

25  :
26  pset_(iConfig),
27  getLatency(iConfig.getParameter<edm::ParameterSet>("LatencyRecord")),
28  getPeak(iConfig.getParameter<edm::ParameterSet>("LorentzAnglePeakMode")),
29  getDeconv(iConfig.getParameter<edm::ParameterSet>("LorentzAngleDeconvMode"))
30 {
31  setWhatProduced(this);
32 
33  edm::LogInfo("SiStripLorentzAngleDepESProducer") << "ctor" << std::endl;
34 
35 }
T getParameter(std::string const &) const
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
SiStripLorentzAngleDepESProducer::~SiStripLorentzAngleDepESProducer ( )
inline

Definition at line 25 of file SiStripLorentzAngleDepESProducer.h.

25 {};

Member Function Documentation

boost::shared_ptr< SiStripLorentzAngle > SiStripLorentzAngleDepESProducer::produce ( const SiStripLorentzAngleDepRcd iRecord)

Definition at line 38 of file SiStripLorentzAngleDepESProducer.cc.

References getDeconv, getLatency, edm::ParameterSet::getParameter(), getPeak, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), edm::ParameterSet::getUntrackedParameter(), edm::ESHandle< class >::product(), siStripLA_, SiStripLorentzAngle_Frontier_cff::siStripLorentzAngle, and redigi_cff::SiStripLorentzAngle.

Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().

39 {
40 
41  edm::LogInfo("SiStripLorentzAngleDepESProducer") << "Producer called" << std::endl;
42 
43  std::string latencyRecordName = getLatency.getParameter<std::string>("record");
44  std::string latencyLabel = getLatency.getUntrackedParameter<std::string>("label");
45  bool peakMode = false;
46 
47  if( latencyRecordName == "SiStripLatencyRcd" ) {
49  iRecord.getRecord<SiStripLatencyRcd>().get( latencyLabel, latency);
50  if(latency -> singleReadOutMode() == 1) peakMode = true;
51  } else edm::LogError("SiStripLorentzAngleDepESProducer") << "[SiStripLorentzAngleDepESProducer::produce] No Latency Record found " << std::endl;
52 
53  std::string lorentzAngleRecordName;
54  std::string lorentzAngleLabel;
55 
56  if (peakMode){
57  lorentzAngleRecordName = getPeak.getParameter<std::string>("record");
58  lorentzAngleLabel = getPeak.getUntrackedParameter<std::string>("label");
59  } else {
60  lorentzAngleRecordName = getDeconv.getParameter<std::string>("record");
61  lorentzAngleLabel = getDeconv.getUntrackedParameter<std::string>("label");
62  }
63 
64  if ( lorentzAngleRecordName == "SiStripLorentzAngleRcd"){
66  iRecord.getRecord<SiStripLorentzAngleRcd>().get(lorentzAngleLabel, siStripLorentzAngle);
67  siStripLA_.reset(new SiStripLorentzAngle(*(siStripLorentzAngle.product())));
68  } else edm::LogError("SiStripLorentzAngleDepESProducer") << "[SiStripLorentzAngleDepESProducer::produce] No Lorentz Angle Record found " << std::endl;
69 
70 
71  return siStripLA_;
72 
73 
74 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
tuple SiStripLorentzAngle
Definition: redigi_cff.py:15
boost::shared_ptr< SiStripLorentzAngle > siStripLA_
T const * product() const
Definition: ESHandle.h:62

Member Data Documentation

edm::ParameterSet SiStripLorentzAngleDepESProducer::getDeconv
private

Definition at line 38 of file SiStripLorentzAngleDepESProducer.h.

Referenced by produce().

edm::ParameterSet SiStripLorentzAngleDepESProducer::getLatency
private

Definition at line 36 of file SiStripLorentzAngleDepESProducer.h.

Referenced by produce().

edm::ParameterSet SiStripLorentzAngleDepESProducer::getPeak
private

Definition at line 37 of file SiStripLorentzAngleDepESProducer.h.

Referenced by produce().

edm::ParameterSet SiStripLorentzAngleDepESProducer::pset_
private

Definition at line 31 of file SiStripLorentzAngleDepESProducer.h.

boost::shared_ptr<SiStripLorentzAngle> SiStripLorentzAngleDepESProducer::siStripLA_
private

Definition at line 40 of file SiStripLorentzAngleDepESProducer.h.

Referenced by produce().