CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ME0GeometryESModule.cc
Go to the documentation of this file.
1 
9 
13 
16 
22 
23 #include <memory>
24 
25 using namespace edm;
26 
28 {
29  useDDD = p.getParameter<bool>("useDDD");
30  setWhatProduced(this);
31 }
32 
33 
35 
36 
37 boost::shared_ptr<ME0Geometry>
39 {
40  if(useDDD){
42  record.getRecord<IdealGeometryRecord>().get(cpv);
44  record.getRecord<MuonNumberingRecord>().get(mdc);
46  return boost::shared_ptr<ME0Geometry>(builder.build(&(*cpv), *mdc));
47  }else{
49  record.getRecord<ME0RecoGeometryRcd>().get(rigme0);
51  return boost::shared_ptr<ME0Geometry>(builder.build(*rigme0));
52  }
53 }
54 
T getParameter(std::string const &) const
ME0GeometryESModule(const edm::ParameterSet &p)
Constructor.
ME0Geometry * build(const DDCompactView *cview, const MuonDDDConstants &muonConstants)
JetCorrectorParameters::Record record
Definition: classes.h:7
ME0Geometry * build(const RecoIdealGeometry &rgeo)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
boost::shared_ptr< ME0Geometry > produce(const MuonGeometryRecord &record)
Produce ME0Geometry.
virtual ~ME0GeometryESModule()
Destructor.