CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GEMGeometryESModule.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 
34 
35 std::shared_ptr<GEMGeometry>
37 {
38  if( useDDD ) {
40  record.getRecord<IdealGeometryRecord>().get(cpv);
42  record.getRecord<MuonNumberingRecord>().get(mdc);
44  return std::shared_ptr<GEMGeometry>(builder.build(&(*cpv), *mdc));
45  } else {
47  record.getRecord<GEMRecoGeometryRcd>().get(riggem);
48 
50  return std::shared_ptr<GEMGeometry>(builder.build(*riggem));
51  }
52 }
53 
T getParameter(std::string const &) const
std::shared_ptr< GEMGeometry > produce(const MuonGeometryRecord &record)
Produce GEMGeometry.
JetCorrectorParameters::Record record
Definition: classes.h:7
GEMGeometry * build(const DDCompactView *cview, const MuonDDDConstants &muonConstants)
GEMGeometry * build(const RecoIdealGeometry &rgeo)
GEMGeometryESModule(const edm::ParameterSet &p)
Constructor.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
virtual ~GEMGeometryESModule()
Destructor.