CMS 3D CMS Logo

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  gemGeometry = std::make_shared<GEMGeometry>();
39 
40  if( useDDD ) {
42  record.getRecord<IdealGeometryRecord>().get(cpv);
44  record.getRecord<MuonNumberingRecord>().get(mdc);
46  builder.build(gemGeometry, &(*cpv), *mdc);
47  } else {
49  record.getRecord<GEMRecoGeometryRcd>().get(riggem);
51  builder.build(gemGeometry, *riggem);
52  }
53 
54  return gemGeometry;
55 }
56 
T getParameter(std::string const &) const
std::shared_ptr< GEMGeometry > produce(const MuonGeometryRecord &record)
Produce GEMGeometry.
void build(const std::shared_ptr< GEMGeometry > &theGeometry, const RecoIdealGeometry &rgeo)
JetCorrectorParameters::Record record
Definition: classes.h:7
GEMGeometryESModule(const edm::ParameterSet &p)
Constructor.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
HLT enums.
void build(const std::shared_ptr< GEMGeometry > &theGeometry, const DDCompactView *cview, const MuonDDDConstants &muonConstants)
~GEMGeometryESModule() override
Destructor.