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 ---------------------------
34 };
35 
36 //
37 //
38 // constructors and destructor
39 //
41  : navigationSchoolName_(iConfig.getParameter<std::string>("ComponentName")) {
42  //the following line is needed to tell the framework what
43  // data is being produced
44 
46  magFieldToken_ = cc.consumes(edm::ESInputTag("", iConfig.getParameter<std::string>("SimpleMagneticField")));
47  geometricSearchTrackerToken_ = cc.consumes();
48 
49  //now do what ever other initialization is needed
50 }
51 
52 //
53 // member functions
54 //
55 
56 // ------------ method called to produce the data ------------
58  using namespace edm::es;
59 
60  //get the geometricsearch tracker geometry
63 }
64 
67  desc.add<std::string>("ComponentName");
68  desc.add<std::string>("SimpleMagneticField", "");
69  descriptions.addDefault(desc);
70 }
71 
Visibility.h
NavigationSchoolRecord
Definition: NavigationSchoolRecord.h:12
edm::ESInputTag
Definition: ESInputTag.h:87
ESHandle.h
NavigationSchoolESProducer::geometricSearchTrackerToken_
edm::ESGetToken< GeometricSearchTracker, TrackerRecoGeometryRecord > geometricSearchTrackerToken_
Definition: NavigationSchoolESProducer.cc:32
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
ESProducer.h
NavigationSchoolFactory.h
beamerCreator.create
def create(alignables, pedeDump, additionalData, outputFile, config)
Definition: beamerCreator.py:44
NavigationSchoolESProducer::produce
virtual ReturnType produce(const NavigationSchoolRecord &)
Definition: NavigationSchoolESProducer.cc:57
MakerMacros.h
fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:103
dso_hidden
#define dso_hidden
Definition: Visibility.h:12
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
ModuleDef.h
NavigationSchoolESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: NavigationSchoolESProducer.cc:65
NavigationSchoolESProducer
Definition: NavigationSchoolESProducer.cc:19
get
#define get
cc
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord >
ModuleFactory.h
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
ESInputTag.h
std
Definition: JetResolutionObject.h:76
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
NavigationSchoolESProducer::ReturnType
std::unique_ptr< NavigationSchool > ReturnType
Definition: NavigationSchoolESProducer.cc:23
NavigationSchoolESProducer::NavigationSchoolESProducer
NavigationSchoolESProducer(const edm::ParameterSet &)
Definition: NavigationSchoolESProducer.cc:40
edm::es
Definition: es_Label.h:33
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::ESProducer
Definition: ESProducer.h:104
NavigationSchoolRecord.h
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
NavigationSchoolESProducer::magFieldToken_
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: NavigationSchoolESProducer.cc:31
NavigationSchoolESProducer::navigationSchoolName_
const std::string navigationSchoolName_
Definition: NavigationSchoolESProducer.cc:33