CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCGeometryESModule.cc
Go to the documentation of this file.
1 
10 
14 
17 
23 
24 #include <memory>
25 
26 using namespace edm;
27 
29  comp11 = p.getUntrackedParameter<bool>("compatibiltyWith11",true);
30  // Find out if using the DDD or CondDB Geometry source.
31  useDDD = p.getUntrackedParameter<bool>("useDDD",true);
32  setWhatProduced(this);
33 
34 }
35 
36 
38 
39 
40 boost::shared_ptr<RPCGeometry>
42  if(useDDD){
44  record.getRecord<IdealGeometryRecord>().get(cpv);
46  record.getRecord<MuonNumberingRecord>().get(mdc);
47  RPCGeometryBuilderFromDDD builder(comp11);
48  return boost::shared_ptr<RPCGeometry>(builder.build(&(*cpv), *mdc));
49  }else{
51  record.getRecord<RPCRecoGeometryRcd>().get(rigrpc);
52  RPCGeometryBuilderFromCondDB builder(comp11);
53  return boost::shared_ptr<RPCGeometry>(builder.build(*rigrpc));
54  }
55 
56 }
57 
T getUntrackedParameter(std::string const &, T const &) const
RPCGeometry * build(const RecoIdealGeometry &rgeo)
JetCorrectorParameters::Record record
Definition: classes.h:11
RPCGeometry * build(const DDCompactView *cview, const MuonDDDConstants &muonConstants)
RPCGeometryESModule(const edm::ParameterSet &p)
Constructor.
boost::shared_ptr< RPCGeometry > produce(const MuonGeometryRecord &record)
Produce RPCGeometry.
virtual ~RPCGeometryESModule()
Destructor.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:56