CMS 3D CMS Logo

RPCGeometryESModule Class Reference

ESProducer for RPCGeometry in MuonGeometryRecord. More...

#include <Geometry/RPCGeometryBuilder/src/RPCGeometryESModule.h>

Inheritance diagram for RPCGeometryESModule:

edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

boost::shared_ptr< RPCGeometryproduce (const MuonGeometryRecord &record)
 Produce RPCGeometry.
 RPCGeometryESModule (const edm::ParameterSet &p)
 Constructor.
virtual ~RPCGeometryESModule ()
 Destructor.

Private Attributes

bool comp11


Detailed Description

ESProducer for RPCGeometry in MuonGeometryRecord.

Author:
M. Maggi - INFN Bari

Definition at line 17 of file RPCGeometryESModule.h.


Constructor & Destructor Documentation

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]

Destructor.

Definition at line 29 of file RPCGeometryESModule.cc.

00029 {}


Member Function Documentation

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 }


Member Data Documentation

bool RPCGeometryESModule::comp11 [private]

Definition at line 29 of file RPCGeometryESModule.h.

Referenced by produce(), and RPCGeometryESModule().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:30:59 2009 for CMSSW by  doxygen 1.5.4