test
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 
9 
13 
16 
22 
23 #include <memory>
24 
25 using namespace edm;
26 
28  comp11 = p.getUntrackedParameter<bool>("compatibiltyWith11",true);
29  // Find out if using the DDD or CondDB Geometry source.
30  useDDD = p.getUntrackedParameter<bool>("useDDD",true);
31  setWhatProduced(this);
32 
33 }
34 
35 
37 
38 
39 boost::shared_ptr<RPCGeometry>
41  if(useDDD){
43  record.getRecord<IdealGeometryRecord>().get(cpv);
45  record.getRecord<MuonNumberingRecord>().get(mdc);
46  RPCGeometryBuilderFromDDD builder(comp11);
47  return boost::shared_ptr<RPCGeometry>(builder.build(&(*cpv), *mdc));
48  }else{
50  record.getRecord<RPCRecoGeometryRcd>().get(rigrpc);
51  RPCGeometryBuilderFromCondDB builder(comp11);
52  return boost::shared_ptr<RPCGeometry>(builder.build(*rigrpc));
53  }
54 
55 }
56 
T getUntrackedParameter(std::string const &, T const &) const
RPCGeometry * build(const RecoIdealGeometry &rgeo)
JetCorrectorParameters::Record record
Definition: classes.h:7
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:60