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
CkfDebugTrajectoryBuilderESProducer Class Reference

#include <CkfDebugTrajectoryBuilderESProducer.h>

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

Public Member Functions

 CkfDebugTrajectoryBuilderESProducer (const edm::ParameterSet &p)
 
boost::shared_ptr
< TrajectoryBuilder
produce (const CkfComponentsRecord &)
 
virtual ~CkfDebugTrajectoryBuilderESProducer ()
 
- 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

boost::shared_ptr
< TrajectoryBuilder
_trajectoryBuilder
 
edm::ParameterSet pset_
 

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

Definition at line 10 of file CkfDebugTrajectoryBuilderESProducer.h.

Constructor & Destructor Documentation

CkfDebugTrajectoryBuilderESProducer::CkfDebugTrajectoryBuilderESProducer ( const edm::ParameterSet p)

Definition at line 25 of file CkfDebugTrajectoryBuilderESProducer.cc.

References edm::ParameterSet::getParameter(), and AlCaHLTBitMon_ParallelJobs::p.

26 {
27  std::string myName = p.getParameter<std::string>("ComponentName");
28  pset_ = p;
29  setWhatProduced(this,myName);
30 }
T getParameter(std::string const &) const
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
CkfDebugTrajectoryBuilderESProducer::~CkfDebugTrajectoryBuilderESProducer ( )
virtual

Definition at line 32 of file CkfDebugTrajectoryBuilderESProducer.cc.

32 {}

Member Function Documentation

boost::shared_ptr< TrajectoryBuilder > CkfDebugTrajectoryBuilderESProducer::produce ( const CkfComponentsRecord iRecord)

Definition at line 35 of file CkfDebugTrajectoryBuilderESProducer.cc.

References edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and edm::ESHandle< class >::product().

36 {
37  std::string updatorName = pset_.getParameter<std::string>("updator");
38  std::string propagatorAlongName = pset_.getParameter<std::string>("propagatorAlong");
39  std::string propagatorOppositeName = pset_.getParameter<std::string>("propagatorOpposite");
40  std::string estimatorName = pset_.getParameter<std::string>("estimator");
41  std::string recHitBuilderName = pset_.getParameter<std::string>("TTRHBuilder");
42 
44  edm::ESHandle<Propagator> propagatorAlongHandle;
45  edm::ESHandle<Propagator> propagatorOppositeHandle;
48  edm::ESHandle<MeasurementTracker> measurementTrackerHandle;
49 
50  iRecord.getRecord<TrackingComponentsRecord>().get(updatorName,updatorHandle);
51  iRecord.getRecord<TrackingComponentsRecord>().get(propagatorAlongName,propagatorAlongHandle);
52  iRecord.getRecord<TrackingComponentsRecord>().get(propagatorOppositeName,propagatorOppositeHandle);
53  iRecord.getRecord<TrackingComponentsRecord>().get(estimatorName,estimatorHandle);
54  iRecord.getRecord<TransientRecHitRecord>().get(recHitBuilderName,recHitBuilderHandle);
55  iRecord.get(measurementTrackerHandle);
56 
58  boost::shared_ptr<TrajectoryBuilder>(new CkfDebugTrajectoryBuilder(pset_,
59  updatorHandle.product(),
60  propagatorAlongHandle.product(),
61  propagatorOppositeHandle.product(),
62  estimatorHandle.product(),
63  recHitBuilderHandle.product(),
64  measurementTrackerHandle.product()) );
65  // CkfDebugger dbg( es, theMeasurementTracker);
66  // _trajectoryBuilder->setDebugger( dbg);
67  return _trajectoryBuilder;
68 }
T getParameter(std::string const &) const
boost::shared_ptr< TrajectoryBuilder > _trajectoryBuilder
void get(HolderT &iHolder) const
T const * product() const
Definition: ESHandle.h:62

Member Data Documentation

boost::shared_ptr<TrajectoryBuilder> CkfDebugTrajectoryBuilderESProducer::_trajectoryBuilder
private

Definition at line 16 of file CkfDebugTrajectoryBuilderESProducer.h.

edm::ParameterSet CkfDebugTrajectoryBuilderESProducer::pset_
private

Definition at line 17 of file CkfDebugTrajectoryBuilderESProducer.h.