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 
10 
14 
17 
23 
24 #include <memory>
25 
26 using namespace edm;
27 
29  comp11 = p.getUntrackedParameter<bool>("compatibiltyWith11",true);
30  // Find out if using the DDD or CondDB Geometry source.
31  useDDD = p.getUntrackedParameter<bool>("useDDD",true);
32  setWhatProduced(this);
33 
34 }
35 
36 
38 
39 
40 boost::shared_ptr<GEMGeometry>
42  if(useDDD){
44  record.getRecord<IdealGeometryRecord>().get(cpv);
46  record.getRecord<MuonNumberingRecord>().get(mdc);
47  GEMGeometryBuilderFromDDD builder(comp11);
48  return boost::shared_ptr<GEMGeometry>(builder.build(&(*cpv), *mdc));
49  }else{
51  record.getRecord<GEMRecoGeometryRcd>().get(riggem);
52  GEMGeometryBuilderFromCondDB builder(comp11);
53  return boost::shared_ptr<GEMGeometry>(builder.build(*riggem));
54  }
55 
56 }
57 
T getUntrackedParameter(std::string const &, T const &) const
boost::shared_ptr< GEMGeometry > produce(const MuonGeometryRecord &record)
Produce GEMGeometry.
JetCorrectorParameters::Record record
Definition: classes.h:13
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.