#include <Geometry/RPCGeometryBuilder/src/RPCGeometryESModule.h>
Public Member Functions | |
boost::shared_ptr< RPCGeometry > | produce (const MuonGeometryRecord &record) |
Produce RPCGeometry. | |
RPCGeometryESModule (const edm::ParameterSet &p) | |
Constructor. | |
virtual | ~RPCGeometryESModule () |
Destructor. | |
Private Attributes | |
bool | comp11 |
Definition at line 17 of file RPCGeometryESModule.h.
RPCGeometryESModule::RPCGeometryESModule | ( | const edm::ParameterSet & | p | ) |
Constructor.
Definition at line 23 of file RPCGeometryESModule.cc.
References comp11, edm::ParameterSet::getUntrackedParameter(), and edm::ESProducer::setWhatProduced().
00023 { 00024 setWhatProduced(this); 00025 comp11 = p.getUntrackedParameter<bool>("compatibiltyWith11",true); 00026 }
RPCGeometryESModule::~RPCGeometryESModule | ( | ) | [virtual] |
boost::shared_ptr< RPCGeometry > RPCGeometryESModule::produce | ( | const MuonGeometryRecord & | record | ) |
Produce RPCGeometry.
Definition at line 33 of file RPCGeometryESModule.cc.
References RPCGeometryBuilderFromDDD::build(), comp11, and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
00033 { 00034 edm::ESHandle<DDCompactView> cpv; 00035 record.getRecord<IdealGeometryRecord>().get(cpv); 00036 edm::ESHandle<MuonDDDConstants> mdc; 00037 record.getRecord<MuonNumberingRecord>().get(mdc); 00038 RPCGeometryBuilderFromDDD builder(comp11); 00039 return boost::shared_ptr<RPCGeometry>(builder.build(&(*cpv), *mdc)); 00040 }
bool RPCGeometryESModule::comp11 [private] |
Definition at line 29 of file RPCGeometryESModule.h.
Referenced by produce(), and RPCGeometryESModule().