CMS 3D CMS Logo

L1CaloGeometryProd Class Reference

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

#include <L1TriggerConfig/L1GeometryProducers/interface/L1CaloGeometryProd.h>

Inheritance diagram for L1CaloGeometryProd:

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

List of all members.

Public Types

typedef std::auto_ptr
< L1CaloGeometry
ReturnType

Public Member Functions

 L1CaloGeometryProd (const edm::ParameterSet &)
ReturnType produce (const L1CaloGeometryRecord &)
 ~L1CaloGeometryProd ()

Private Attributes

L1CaloGeometry m_geom


Detailed Description

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

Usage: <usage>

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

Definition at line 34 of file L1CaloGeometryProd.h.


Member Typedef Documentation

typedef std::auto_ptr<L1CaloGeometry> L1CaloGeometryProd::ReturnType

Definition at line 39 of file L1CaloGeometryProd.h.


Constructor & Destructor Documentation

L1CaloGeometryProd::L1CaloGeometryProd ( const edm::ParameterSet ps  ) 

Definition at line 40 of file L1CaloGeometryProd.cc.

References edm::ParameterSet::getParameter(), m_geom, and edm::ESProducer::setWhatProduced().

00041 {
00042    //the following line is needed to tell the framework what
00043    // data is being produced
00044    setWhatProduced(this);
00045 
00046    //now do what ever other initialization is needed
00047 
00048    // This producer should never make more than one version of L1Geometry,
00049    // so we can initialize it in the ctor.
00050    m_geom =
00051      L1CaloGeometry( ps.getParameter<unsigned int>("numberGctEmJetPhiBins"),
00052                      ps.getParameter<double>("gctEmJetPhiBinOffset"),
00053                      ps.getParameter<unsigned int>("numberGctEtSumPhiBins"),
00054                      ps.getParameter<double>("gctEtSumPhiBinOffset"),
00055                      ps.getParameter<unsigned int>("numberGctCentralEtaBinsPerHalf"),
00056                      ps.getParameter<unsigned int>("numberGctForwardEtaBinsPerHalf"),
00057                      ps.getParameter<unsigned int>("etaSignBitOffset"),
00058                      ps.getParameter< std::vector<double> >("gctEtaBinBoundaries") ) ;
00059 }

L1CaloGeometryProd::~L1CaloGeometryProd (  ) 

Definition at line 62 of file L1CaloGeometryProd.cc.

00063 {
00064  
00065    // do anything here that needs to be done at desctruction time
00066    // (e.g. close files, deallocate resources etc.)
00067 
00068 }


Member Function Documentation

L1CaloGeometryProd::ReturnType L1CaloGeometryProd::produce ( const L1CaloGeometryRecord iRecord  ) 

Definition at line 77 of file L1CaloGeometryProd.cc.

References m_geom.

00078 {
00079    using namespace edm::es;
00080    std::auto_ptr<L1CaloGeometry> pL1CaloGeometry ;
00081 
00082    pL1CaloGeometry = std::auto_ptr< L1CaloGeometry >(
00083       new L1CaloGeometry( m_geom ) ) ;
00084 
00085    return pL1CaloGeometry ;
00086 }


Member Data Documentation

L1CaloGeometry L1CaloGeometryProd::m_geom [private]

Definition at line 44 of file L1CaloGeometryProd.h.

Referenced by L1CaloGeometryProd(), and produce().


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