CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

HcalHardcodeGeometryEP Class Reference

#include <tmp/HcalHardcodeGeometryEP/interface/HcalHardcodeGeometryEP.h>

Inheritance diagram for HcalHardcodeGeometryEP:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Types

typedef boost::shared_ptr
< CaloSubdetectorGeometry
ReturnType

Public Member Functions

 HcalHardcodeGeometryEP (const edm::ParameterSet &)
void idealRecordCallBack (const IdealGeometryRecord &)
ReturnType produceAligned (const HcalGeometryRecord &)
ReturnType produceIdeal (const IdealGeometryRecord &)
virtual ~HcalHardcodeGeometryEP ()

Private Attributes

edm::ParameterSet ps0

Detailed Description

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

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

Definition at line 19 of file HcalHardcodeGeometryEP.h.


Member Typedef Documentation

Definition at line 25 of file HcalHardcodeGeometryEP.h.


Constructor & Destructor Documentation

HcalHardcodeGeometryEP::HcalHardcodeGeometryEP ( const edm::ParameterSet ps)

Definition at line 44 of file HcalHardcodeGeometryEP.cc.

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

                                                                          : ps0(ps) {
  
  //the following line is needed to tell the framework what
  // data is being produced
  setWhatProduced( this,
                   &HcalHardcodeGeometryEP::produceAligned,
                   dependsOn( &HcalHardcodeGeometryEP::idealRecordCallBack ),
                   HcalGeometry::producerTag() );

// disable
//   setWhatProduced( this,
//                  &HcalHardcodeGeometryEP::produceIdeal,
//                  edm::es::Label( "HCAL" ) );
}
HcalHardcodeGeometryEP::~HcalHardcodeGeometryEP ( ) [virtual]

Definition at line 60 of file HcalHardcodeGeometryEP.cc.

{ 
}

Member Function Documentation

void HcalHardcodeGeometryEP::idealRecordCallBack ( const IdealGeometryRecord iRecord)

Definition at line 72 of file HcalHardcodeGeometryEP.cc.

Referenced by HcalHardcodeGeometryEP().

{
}
HcalHardcodeGeometryEP::ReturnType HcalHardcodeGeometryEP::produceAligned ( const HcalGeometryRecord iRecord)
HcalHardcodeGeometryEP::ReturnType HcalHardcodeGeometryEP::produceIdeal ( const IdealGeometryRecord iRecord)

Definition at line 77 of file HcalHardcodeGeometryEP.cc.

References edm::eventsetup::EventSetupRecord::get(), HcalFlexiHardcodeGeometryLoader::load(), and ps0.

Referenced by produceAligned().

{

   edm::LogInfo("HCAL") << "Using default HCAL topology" ;
   edm::ESHandle<HcalTopology> topology ;
   iRecord.get( topology ) ;
   HcalFlexiHardcodeGeometryLoader loader(ps0);
   return ReturnType (loader.load (*topology));
}

Member Data Documentation

Definition at line 33 of file HcalHardcodeGeometryEP.h.

Referenced by produceIdeal().