CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ZdcHardcodeGeometryEP.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: ZdcHardcodeGeometryEP
4 // Class: ZdcHardcodeGeometryEP
5 //
13 //
14 // Original Author: Edmundo Garcia
15 // Created: Mon Aug 6 12:33:33 CDT 2007
16 // $Id: ZdcHardcodeGeometryEP.cc,v 1.4 2009/01/23 18:43:40 heltsley Exp $
17 //
22 
23 
25  m_loader (0),
26  m_topology () ,
27  m_applyAlignment ( ps.getUntrackedParameter<bool>("applyAlignment", false) )
28 {
29  //the following line is needed to tell the framework what
30  // data is being produced
31  setWhatProduced( this,
33 
34 // disable
35 // setWhatProduced( this,
36 // &ZdcHardcodeGeometryEP::produceIdeal,
37 // edm::es::Label( "ZDC" ) );
38 }
39 
40 
42 {
43  delete m_loader ;
44 }
45 
46 
47 //
48 // member functions
49 //
50 
51 // ------------ method called to produce the data ------------
52 
55 {
56 // ZdcHardcodeGeometryLoader loader ( m_topology ) ;
58 
59  ReturnType ptr ( m_loader->load() ) ;
60 
61  return ptr ;
62 }
63 
64 
static std::string producerTag()
Definition: ZdcGeometry.h:46
ZdcHardcodeGeometryEP(const edm::ParameterSet &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
virtual ReturnType load(DetId::Detector det, int subdet)
ReturnType produce(const ZDCGeometryRecord &)
ZdcHardcodeGeometryLoader * m_loader
boost::shared_ptr< CaloSubdetectorGeometry > ReturnType