#include <L1TriggerConfig/L1GeometryProducers/interface/L1CaloGeometryProd.h>
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 |
Description: <one line="" class="" summary>="">
Usage: <usage>
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 34 of file L1CaloGeometryProd.h.
typedef std::auto_ptr<L1CaloGeometry> L1CaloGeometryProd::ReturnType |
Definition at line 39 of file L1CaloGeometryProd.h.
L1CaloGeometryProd::L1CaloGeometryProd | ( | const edm::ParameterSet & | ps | ) |
Definition at line 40 of file L1CaloGeometryProd.cc.
References edm::ParameterSet::getParameter(), m_geom, and edm::ESProducer::setWhatProduced().
{ //the following line is needed to tell the framework what // data is being produced setWhatProduced(this); //now do what ever other initialization is needed // This producer should never make more than one version of L1Geometry, // so we can initialize it in the ctor. m_geom = L1CaloGeometry( ps.getParameter<unsigned int>("numberGctEmJetPhiBins"), ps.getParameter<double>("gctEmJetPhiBinOffset"), ps.getParameter<unsigned int>("numberGctEtSumPhiBins"), ps.getParameter<double>("gctEtSumPhiBinOffset"), ps.getParameter<unsigned int>("numberGctHtSumPhiBins"), ps.getParameter<double>("gctHtSumPhiBinOffset"), ps.getParameter<unsigned int>("numberGctCentralEtaBinsPerHalf"), ps.getParameter<unsigned int>("numberGctForwardEtaBinsPerHalf"), ps.getParameter<unsigned int>("etaSignBitOffset"), ps.getParameter< std::vector<double> >("gctEtaBinBoundaries") ) ; }
L1CaloGeometryProd::~L1CaloGeometryProd | ( | ) |
Definition at line 64 of file L1CaloGeometryProd.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
L1CaloGeometryProd::ReturnType L1CaloGeometryProd::produce | ( | const L1CaloGeometryRecord & | iRecord | ) |
Definition at line 79 of file L1CaloGeometryProd.cc.
References m_geom.
{ using namespace edm::es; std::auto_ptr<L1CaloGeometry> pL1CaloGeometry ; pL1CaloGeometry = std::auto_ptr< L1CaloGeometry >( new L1CaloGeometry( m_geom ) ) ; return pL1CaloGeometry ; }
L1CaloGeometry L1CaloGeometryProd::m_geom [private] |
Definition at line 44 of file L1CaloGeometryProd.h.
Referenced by L1CaloGeometryProd(), and produce().