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 
11 
13 {
14 public:
15 
17  {
18  setWhatProduced(this, config.getParameter<std::string>("ComponentName"));
19 
21  edm::es::Label(config.getParameter<std::string>("ComponentName")));
22  }
23 
25 
26  typedef boost::shared_ptr<TrackAssociatorBase> ReturnType;
27 
29  {
30  using namespace edm::es;
31  boost::shared_ptr<TrackAssociatorBase> pMuonAssociatorByHits( new MuonAssociatorByHits(config_) );
32  return pMuonAssociatorByHits;
33  }
34 
35  boost::shared_ptr<MuonToSimAssociatorBase>
37  {
38  boost::shared_ptr<MuonToSimAssociatorBase> ret( new MuonToSimAssociatorByHits(config_) );
39  return ret;
40  }
41 
42 private:
43 
45 };
46 
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
boost::shared_ptr< MuonToSimAssociatorBase > produceMuonAssociator(const TrackAssociatorRecord &record)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
boost::shared_ptr< TrackAssociatorBase > ReturnType