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

#include <MultiRecHitCollectorESProducer.h>

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

Public Member Functions

 MultiRecHitCollectorESProducer (const edm::ParameterSet &iConfig)
 
boost::shared_ptr
< MultiRecHitCollector
produce (const MultiRecHitRecord &)
 
void setConf (const edm::ParameterSet &conf)
 
virtual ~MultiRecHitCollectorESProducer ()
 
- 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
< MultiRecHitCollector
collector_
 
edm::ParameterSet conf_
 

Additional Inherited Members

- Public Types inherited from edm::eventsetup::DataProxyProvider
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 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 19 of file MultiRecHitCollectorESProducer.h.

Constructor & Destructor Documentation

MultiRecHitCollectorESProducer::MultiRecHitCollectorESProducer ( const edm::ParameterSet iConfig)

Definition at line 24 of file MultiRecHitCollectorESProducer.cc.

References edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

25 {
26  std::string myname = iConfig.getParameter<std::string>("ComponentName");
27  setConf(iConfig);
28  setWhatProduced(this,myname);
29 }
void setConf(const edm::ParameterSet &conf)
T getParameter(std::string const &) const
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
MultiRecHitCollectorESProducer::~MultiRecHitCollectorESProducer ( )
virtual

Definition at line 31 of file MultiRecHitCollectorESProducer.cc.

31 {}

Member Function Documentation

boost::shared_ptr< MultiRecHitCollector > MultiRecHitCollectorESProducer::produce ( const MultiRecHitRecord iRecord)

Definition at line 34 of file MultiRecHitCollectorESProducer.cc.

References debug, edm::eventsetup::EventSetupRecord::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), PixelTracksForL3Isolation_cfi::measurementTrackerName, alignBH_cfg::mode, edm::ESHandle< class >::product(), and AlCaHLTBitMon_QueryRunRegistry::string.

34  {
35  std::string mode = "Grouped";
36  if (conf_.getParameter<std::string>("Mode")=="Simple") mode = "Simple";
37 
38  std::string mrhupdator = conf_.getParameter<std::string>("MultiRecHitUpdator");
39  std::string propagatorAlongName = conf_.getParameter<std::string>("propagatorAlong");
40  std::string estimatorName = conf_.getParameter<std::string>("estimator");
42  bool debug = conf_.getParameter<bool>("Debug");
43 
44 
46  iRecord.get(mrhupdator, mrhuhandle);
47  ESHandle<Propagator> propagatorhandle;
48  iRecord.getRecord<CkfComponentsRecord>().getRecord<TrackingComponentsRecord>().get(propagatorAlongName, propagatorhandle);
50  iRecord.getRecord<CkfComponentsRecord>().getRecord<TrackingComponentsRecord>().get(estimatorName, estimatorhandle);
51  ESHandle<MeasurementTracker> measurementhandle;
52  iRecord.getRecord<CkfComponentsRecord>().get(measurementTrackerName, measurementhandle);
53 
54  if (mode == "Grouped"){
55  std::string propagatorOppositeName = conf_.getParameter<std::string>("propagatorOpposite");
56  ESHandle<Propagator> propagatorOppositehandle;
57  iRecord.getRecord<CkfComponentsRecord>().getRecord<TrackingComponentsRecord>().get(propagatorOppositeName, propagatorOppositehandle);
58  collector_ = boost::shared_ptr<MultiRecHitCollector>(new GroupedDAFHitCollector(measurementhandle.product(),
59  mrhuhandle.product(),
60  estimatorhandle.product(),
61  propagatorhandle.product(),
62  propagatorOppositehandle.product(), debug));
63  }
64  else {
65  collector_ = boost::shared_ptr<MultiRecHitCollector>(new SimpleDAFHitCollector(measurementhandle.product(),
66  mrhuhandle.product(),
67  estimatorhandle.product(),
68  propagatorhandle.product(), debug));
69  }
70 
71  return collector_;
72 
73 }
T getParameter(std::string const &) const
boost::shared_ptr< MultiRecHitCollector > collector_
void get(HolderT &iHolder) const
#define debug
Definition: HDRShower.cc:19
T const * product() const
Definition: ESHandle.h:86
void MultiRecHitCollectorESProducer::setConf ( const edm::ParameterSet conf)
inline

Definition at line 26 of file MultiRecHitCollectorESProducer.h.

References conf_.

26 { conf_ = conf; }

Member Data Documentation

boost::shared_ptr<MultiRecHitCollector> MultiRecHitCollectorESProducer::collector_
private

Definition at line 29 of file MultiRecHitCollectorESProducer.h.

edm::ParameterSet MultiRecHitCollectorESProducer::conf_
private

Definition at line 30 of file MultiRecHitCollectorESProducer.h.

Referenced by setConf().