CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

ZdcHardcodeGeometryEP Class Reference

#include <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

ReturnType produce (const ZDCGeometryRecord &)
 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 21 of file ZdcHardcodeGeometryEP.h.


Member Typedef Documentation

Definition at line 27 of file ZdcHardcodeGeometryEP.h.


Constructor & Destructor Documentation

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

Definition at line 24 of file ZdcHardcodeGeometryEP.cc.

References ZdcGeometry::producerTag(), and edm::ESProducer::setWhatProduced().

                                                                        :
   m_loader   (0),
   m_topology () ,
   m_applyAlignment ( ps.getUntrackedParameter<bool>("applyAlignment", false) )
{
   //the following line is needed to tell the framework what
   // data is being produced
   setWhatProduced( this,
                    ZdcGeometry::producerTag() );

// disable
//   setWhatProduced( this,
//                  &ZdcHardcodeGeometryEP::produceIdeal,
//                  edm::es::Label( "ZDC" ) );
}
ZdcHardcodeGeometryEP::~ZdcHardcodeGeometryEP ( )

Definition at line 41 of file ZdcHardcodeGeometryEP.cc.

References m_loader.

{ 
   delete m_loader ;
}

Member Function Documentation

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

Definition at line 54 of file ZdcHardcodeGeometryEP.cc.

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

{
//   ZdcHardcodeGeometryLoader loader ( m_topology ) ;
   m_loader = new ZdcHardcodeGeometryLoader( m_topology ) ;

   ReturnType ptr ( m_loader->load() ) ;

   return ptr ;
}

Member Data Documentation

Definition at line 39 of file ZdcHardcodeGeometryEP.h.

Definition at line 35 of file ZdcHardcodeGeometryEP.h.

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

Definition at line 37 of file ZdcHardcodeGeometryEP.h.

Referenced by produce().