test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DetIdAssociatorESProducer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: DetIdAssociatorESProducer
4 // Class: DetIdAssociatorESProducer
5 //
13 //
14 // Original Author: Jean-Roch Vlimant
15 // Created: Thu Oct 4 02:28:48 CEST 2007
16 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 #include "boost/shared_ptr.hpp"
23 
24 // user include files
27 
29 #include "DetIdAssociatorFactory.h"
30 
32 
33 
34 //
35 // class decleration
36 //
37 
39 public:
42 
43  typedef boost::shared_ptr<DetIdAssociator> ReturnType;
44 
46 private:
49 };
50 
51 //
52 // constants, enums and typedefs
53 //
54 
55 //
56 // static data member definitions
57 //
58 
59 //
60 // constructors and destructor
61 //
63 {
64  cName =iConfig.getParameter<std::string>("ComponentName");
65  pSet = iConfig;
66  setWhatProduced(this, cName);
67 }
68 
69 
71 {
72 }
73 
74 
75 //
76 // member functions
77 //
78 
79 // ------------ method called to produce the data ------------
82 {
83  using namespace edm::es;
84  LogTrace("TrackAssociator") << "Making DetIdAssociatorRecord with label: " << cName;
86  dia->setGeometry(iRecord);
87  dia->setConditions(iRecord);
88  dia->buildMap();
89  LogTrace("TrackAssociator") << "Map id built for DetIdAssociatorRecord with label: " << cName;
90  return dia;
91 }
92 
93 //define this as a plug-in
T getParameter(std::string const &) const
boost::shared_ptr< DetIdAssociator > ReturnType
DetIdAssociatorESProducer(const edm::ParameterSet &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
ReturnType produce(const DetIdAssociatorRecord &)
#define LogTrace(id)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
T get(const Candidate &c)
Definition: component.h:55