CMS 3D CMS Logo

ZdcHardcodeGeometryEP Class Reference

Description: <one line="" class="" summary>="">. More...

#include <Geometry/ForwardGeometry/plugins/ZdcHardcodeGeometryEP.h>

Inheritance diagram for ZdcHardcodeGeometryEP:

edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Types

typedef boost::shared_ptr
< CaloSubdetectorGeometry
ReturnType

Public Member Functions

void idealRecordCallBack (const IdealGeometryRecord &)
ReturnType produceAligned (const ZDCGeometryRecord &)
ReturnType produceIdeal (const IdealGeometryRecord &)
 ZdcHardcodeGeometryEP (const edm::ParameterSet &)
 ~ZdcHardcodeGeometryEP ()

Private Attributes

bool m_applyAlignment
ZdcHardcodeGeometryLoaderm_loader
ZdcTopology m_topology


Detailed Description

Description: <one line="" class="" summary>="">.

Implementation: <Notes on="" implementation>="">

Definition at line 22 of file ZdcHardcodeGeometryEP.h.


Member Typedef Documentation

typedef boost::shared_ptr<CaloSubdetectorGeometry> ZdcHardcodeGeometryEP::ReturnType

Definition at line 28 of file ZdcHardcodeGeometryEP.h.


Constructor & Destructor Documentation

ZdcHardcodeGeometryEP::ZdcHardcodeGeometryEP ( const edm::ParameterSet ps  ) 

Definition at line 22 of file ZdcHardcodeGeometryEP.cc.

References edm::eventsetup::dependsOn(), idealRecordCallBack(), produceAligned(), and edm::ESProducer::setWhatProduced().

00022                                                                         :
00023    m_loader   (0),
00024    m_topology () ,
00025    m_applyAlignment ( ps.getUntrackedParameter<bool>("applyAlignment", false) )
00026 {
00027    //the following line is needed to tell the framework what
00028    // data is being produced
00029    setWhatProduced( this,
00030                     &ZdcHardcodeGeometryEP::produceAligned,
00031                     dependsOn( &ZdcHardcodeGeometryEP::idealRecordCallBack ),
00032                     "ZDC");
00033 
00034 // disable
00035 //   setWhatProduced( this,
00036 //                  &ZdcHardcodeGeometryEP::produceIdeal,
00037 //                  edm::es::Label( "ZDC" ) );
00038 }

ZdcHardcodeGeometryEP::~ZdcHardcodeGeometryEP (  ) 

Definition at line 41 of file ZdcHardcodeGeometryEP.cc.

References m_loader.

00042 { 
00043    delete m_loader ;
00044 }


Member Function Documentation

void ZdcHardcodeGeometryEP::idealRecordCallBack ( const IdealGeometryRecord iRecord  ) 

Definition at line 54 of file ZdcHardcodeGeometryEP.cc.

Referenced by ZdcHardcodeGeometryEP().

00055 {
00056 }

ZdcHardcodeGeometryEP::ReturnType ZdcHardcodeGeometryEP::produceAligned ( const ZDCGeometryRecord iRecord  ) 

Definition at line 70 of file ZdcHardcodeGeometryEP.cc.

References ZdcHardcodeGeometryLoader::load(), m_loader, m_topology, and ptr.

Referenced by ZdcHardcodeGeometryEP().

00071 {
00072 //   ZdcHardcodeGeometryLoader loader ( m_topology ) ;
00073    m_loader = new ZdcHardcodeGeometryLoader( m_topology ) ;
00074 
00075    ReturnType ptr ( m_loader->load() ) ;
00076 
00077    return ptr ;
00078 }

ZdcHardcodeGeometryEP::ReturnType ZdcHardcodeGeometryEP::produceIdeal ( const IdealGeometryRecord iRecord  ) 

Definition at line 59 of file ZdcHardcodeGeometryEP.cc.

References ZdcHardcodeGeometryLoader::load(), m_applyAlignment, m_topology, and ptr.

00060 {
00061    assert( !m_applyAlignment ) ;
00062 
00063    ZdcHardcodeGeometryLoader loader ( m_topology ) ;
00064 
00065    ReturnType ptr ( loader.load() ) ;
00066    return ptr ;
00067 }


Member Data Documentation

bool ZdcHardcodeGeometryEP::m_applyAlignment [private]

Definition at line 43 of file ZdcHardcodeGeometryEP.h.

Referenced by produceIdeal().

ZdcHardcodeGeometryLoader* ZdcHardcodeGeometryEP::m_loader [private]

Definition at line 39 of file ZdcHardcodeGeometryEP.h.

Referenced by produceAligned(), and ~ZdcHardcodeGeometryEP().

ZdcTopology ZdcHardcodeGeometryEP::m_topology [private]

Definition at line 41 of file ZdcHardcodeGeometryEP.h.

Referenced by produceAligned(), and produceIdeal().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:35:56 2009 for CMSSW by  doxygen 1.5.4