CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MuonAssociatorESProducer.cc
Go to the documentation of this file.
1 #include <memory>
2 #include "boost/shared_ptr.hpp"
3 
7 
10 
12 {
13 public:
14 
16  {
17  setWhatProduced(this, config.getParameter<std::string>("ComponentName"));
18  }
19 
21 
22  typedef boost::shared_ptr<TrackAssociatorBase> ReturnType;
23 
25  {
26  using namespace edm::es;
27  boost::shared_ptr<TrackAssociatorBase> pMuonAssociatorByHits( new MuonAssociatorByHits(config_) );
28  return pMuonAssociatorByHits;
29  }
30 
31 private:
32 
34 };
35 
T getParameter(std::string const &) const
JetCorrectorParameters::Record record
Definition: classes.h:7
ReturnType produce(const TrackAssociatorRecord &record)
MuonAssociatorESProducer(edm::ParameterSet const &config)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
boost::shared_ptr< TrackAssociatorBase > ReturnType