CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackerGeometricDetESModule.cc
Go to the documentation of this file.
10 #include "ExtractStringFromDDD.h"
12 
18 
19 
20 #include <memory>
21 
22 using namespace edm;
23 
25  : fromDDD_(p.getParameter<bool>("fromDDD"))
26 {
27  setWhatProduced(this);
28 }
29 
31 
32 std::auto_ptr<GeometricDet>
34  if(fromDDD_){
35 
37  iRecord.get( cpv );
38 
39  DDDCmsTrackerContruction theDDDCmsTrackerContruction;
40  return std::auto_ptr<GeometricDet> (const_cast<GeometricDet*>(theDDDCmsTrackerContruction.construct(&(*cpv))));
41 
42  }else{
43 
45  iRecord.get( pgd );
46 
48  return std::auto_ptr<GeometricDet> ( const_cast<GeometricDet*>(cdbtc.construct( *pgd )) );
49  }
50 }
51 
const GeometricDet * construct(const PGeometricDet &pgd)
const GeometricDet * construct(const DDCompactView *cpv)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::auto_ptr< GeometricDet > produce(const IdealGeometryRecord &)
void get(HolderT &iHolder) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:56
TrackerGeometricDetESModule(const edm::ParameterSet &p)