CMS 3D CMS Logo

NavigationSchoolESProducer.cc
Go to the documentation of this file.
2 
3 #include <memory>
4 
5 // user include files
8 
11 
14 
15 //
16 // class decleration
17 //
18 
20 public:
22 
23  typedef std::unique_ptr<NavigationSchool> ReturnType;
24 
25  virtual ReturnType produce(const NavigationSchoolRecord&);
26 
27  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
28 
29 private:
30  // ----------member data ---------------------------
35 };
36 
37 //
38 //
39 // constructors and destructor
40 //
42  : navigationSchoolName_(iConfig.getParameter<std::string>("ComponentName")),
43  navigationSchoolPluginName_(iConfig.getParameter<std::string>("PluginName")) {
44  //the following line is needed to tell the framework what
45  // data is being produced
47  magFieldToken_ = cc.consumes(edm::ESInputTag("", iConfig.getParameter<std::string>("SimpleMagneticField")));
48  geometricSearchTrackerToken_ = cc.consumes();
49 
50  //now do what ever other initialization is needed
51  if (navigationSchoolPluginName_.empty())
53 }
54 
55 //
56 // member functions
57 //
58 
59 // ------------ method called to produce the data ------------
61  using namespace edm::es;
62 
63  //get the geometricsearch tracker geometry
66 }
67 
70  desc.add<std::string>("ComponentName");
71  desc.add<std::string>("PluginName", "");
72  desc.add<std::string>("SimpleMagneticField", "");
73  descriptions.addDefault(desc);
74 }
75 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:166
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
def create(alignables, pedeDump, additionalData, outputFile, config)
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
virtual ReturnType produce(const NavigationSchoolRecord &)
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
std::unique_ptr< NavigationSchool > ReturnType
void addDefault(ParameterSetDescription const &psetDescription)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61
#define dso_hidden
Definition: Visibility.h:12
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::ESGetToken< GeometricSearchTracker, TrackerRecoGeometryRecord > geometricSearchTrackerToken_
#define get
NavigationSchoolESProducer(const edm::ParameterSet &)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const