CMS 3D CMS Logo

L1GctConfigProducers Class Reference

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

#include <L1Trigger/L1GctConfigProducers/interface/L1GctConfigProducers.h>

Inheritance diagram for L1GctConfigProducers:

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

List of all members.

Public Types

typedef boost::shared_ptr
< L1GctJetEtCalibrationFunction
CalibFunReturnType
typedef boost::shared_ptr
< L1GctChannelMask
ChanMaskReturnType
typedef boost::shared_ptr
< L1GctHfLutSetup
HfLSetupReturnType
typedef boost::shared_ptr
< L1GctJetCounterSetup
JCtSetupReturnType
typedef boost::shared_ptr
< L1GctJetFinderParams
JfParamsReturnType

Public Member Functions

 L1GctConfigProducers (const edm::ParameterSet &)
CalibFunReturnType produceCalibFun (const L1GctJetCalibFunRcd &)
ChanMaskReturnType produceChanMask (const L1GctChannelMaskRcd &)
HfLSetupReturnType produceHfLSetup (const L1GctHfLutSetupRcd &)
JCtSetupReturnType produceJCNegEta (const L1GctJetCounterNegativeEtaRcd &)
JCtSetupReturnType produceJCPosEta (const L1GctJetCounterPositiveEtaRcd &)
JfParamsReturnType produceJfParams (const L1GctJetFinderParamsRcd &)
 ~L1GctConfigProducers ()

Private Attributes

L1GctCalibFunConfigurerm_CalibFunConf
L1GctHfLutSetupConfigurerm_HfLSetupConf
L1GctJctSetupConfigurerm_JctSetupConfNegativeEta
L1GctJctSetupConfigurerm_JctSetupConfPositiveEta
L1GctJfParamsConfigurerm_JfParamsConf


Detailed Description

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

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

Definition at line 61 of file L1GctConfigProducers.h.


Member Typedef Documentation

typedef boost::shared_ptr<L1GctJetEtCalibrationFunction> L1GctConfigProducers::CalibFunReturnType

Definition at line 66 of file L1GctConfigProducers.h.

typedef boost::shared_ptr<L1GctChannelMask> L1GctConfigProducers::ChanMaskReturnType

Definition at line 70 of file L1GctConfigProducers.h.

typedef boost::shared_ptr<L1GctHfLutSetup> L1GctConfigProducers::HfLSetupReturnType

Definition at line 69 of file L1GctConfigProducers.h.

typedef boost::shared_ptr<L1GctJetCounterSetup> L1GctConfigProducers::JCtSetupReturnType

Definition at line 67 of file L1GctConfigProducers.h.

typedef boost::shared_ptr<L1GctJetFinderParams> L1GctConfigProducers::JfParamsReturnType

Definition at line 68 of file L1GctConfigProducers.h.


Constructor & Destructor Documentation

L1GctConfigProducers::L1GctConfigProducers ( const edm::ParameterSet iConfig  ) 

Definition at line 32 of file L1GctConfigProducers.cc.

References produceCalibFun(), produceChanMask(), produceHfLSetup(), produceJCNegEta(), produceJCPosEta(), produceJfParams(), and edm::ESProducer::setWhatProduced().

00032                                                                          :
00033   m_CalibFunConf(new L1GctCalibFunConfigurer(iConfig)),
00034   m_JctSetupConfNegativeEta(new L1GctJctSetupConfigurer(iConfig.getParameter<edm::ParameterSet>("jetCounterSetup").getParameter< std::vector<edm::ParameterSet> >("jetCountersNegativeWheel"))),
00035   m_JctSetupConfPositiveEta(new L1GctJctSetupConfigurer(iConfig.getParameter<edm::ParameterSet>("jetCounterSetup").getParameter< std::vector<edm::ParameterSet> >("jetCountersPositiveWheel"))),
00036   m_JfParamsConf(new L1GctJfParamsConfigurer(iConfig)),
00037   m_HfLSetupConf(new L1GctHfLutSetupConfigurer(iConfig))
00038 {
00039    //the following lines are needed to tell the framework what
00040    // data is being produced
00041    setWhatProduced(this,&L1GctConfigProducers::produceCalibFun);
00042    setWhatProduced(this,&L1GctConfigProducers::produceJfParams);
00043    setWhatProduced(this,&L1GctConfigProducers::produceJCNegEta);
00044    setWhatProduced(this,&L1GctConfigProducers::produceJCPosEta);
00045    setWhatProduced(this,&L1GctConfigProducers::produceHfLSetup);
00046    setWhatProduced(this,&L1GctConfigProducers::produceChanMask);
00047 
00048    //now do what ever other initialization is needed
00049 
00050 }

L1GctConfigProducers::~L1GctConfigProducers (  ) 

Definition at line 53 of file L1GctConfigProducers.cc.

References m_CalibFunConf, m_HfLSetupConf, m_JctSetupConfNegativeEta, m_JctSetupConfPositiveEta, and m_JfParamsConf.

00054 {
00055  
00056    // do anything here that needs to be done at desctruction time
00057    // (e.g. close files, deallocate resources etc.)
00058 
00059   if (m_CalibFunConf != 0) { delete m_CalibFunConf; }
00060   if (m_JctSetupConfNegativeEta != 0) { delete m_JctSetupConfNegativeEta; }
00061   if (m_JctSetupConfPositiveEta != 0) { delete m_JctSetupConfPositiveEta; }
00062   if (m_JfParamsConf != 0) { delete m_JfParamsConf; }
00063   if (m_HfLSetupConf != 0) { delete m_HfLSetupConf; }
00064 
00065 }


Member Function Documentation

L1GctConfigProducers::CalibFunReturnType L1GctConfigProducers::produceCalibFun ( const L1GctJetCalibFunRcd aRcd  ) 

Definition at line 70 of file L1GctConfigProducers.cc.

References edm::eventsetup::EventSetupRecordImplementation< T >::get(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), m_CalibFunConf, and L1GctCalibFunConfigurer::produceCalibFun().

Referenced by L1GctConfigProducers().

00071         {
00072           const L1CaloGeometryRecord& geomRcd =
00073             aRcd.getRecord< L1CaloGeometryRecord >() ;
00074           edm::ESHandle< L1CaloGeometry > geom ;
00075           geomRcd.get( geom ) ;
00076           return m_CalibFunConf->produceCalibFun( geom.product() ); }

L1GctConfigProducers::ChanMaskReturnType L1GctConfigProducers::produceChanMask ( const L1GctChannelMaskRcd  ) 

Definition at line 95 of file L1GctConfigProducers.cc.

Referenced by L1GctConfigProducers().

00095                                                                                    {
00096   return boost::shared_ptr<L1GctChannelMask>(new L1GctChannelMask);
00097 }

L1GctConfigProducers::HfLSetupReturnType L1GctConfigProducers::produceHfLSetup ( const L1GctHfLutSetupRcd  ) 

Definition at line 91 of file L1GctConfigProducers.cc.

References m_HfLSetupConf, and L1GctHfLutSetupConfigurer::produceHfLutSetup().

Referenced by L1GctConfigProducers().

00092         { return m_HfLSetupConf->produceHfLutSetup(); }

L1GctConfigProducers::JCtSetupReturnType L1GctConfigProducers::produceJCNegEta ( const L1GctJetCounterNegativeEtaRcd  ) 

Definition at line 79 of file L1GctConfigProducers.cc.

References m_JctSetupConfNegativeEta, and L1GctJctSetupConfigurer::produceJctSetup().

Referenced by L1GctConfigProducers().

L1GctConfigProducers::JCtSetupReturnType L1GctConfigProducers::produceJCPosEta ( const L1GctJetCounterPositiveEtaRcd  ) 

Definition at line 83 of file L1GctConfigProducers.cc.

References m_JctSetupConfPositiveEta, and L1GctJctSetupConfigurer::produceJctSetup().

Referenced by L1GctConfigProducers().

L1GctConfigProducers::JfParamsReturnType L1GctConfigProducers::produceJfParams ( const L1GctJetFinderParamsRcd  ) 

Definition at line 87 of file L1GctConfigProducers.cc.

References m_JfParamsConf, and L1GctJfParamsConfigurer::produceJfParams().

Referenced by L1GctConfigProducers().

00088         { return m_JfParamsConf->produceJfParams(); }


Member Data Documentation

L1GctCalibFunConfigurer* L1GctConfigProducers::m_CalibFunConf [private]

Definition at line 84 of file L1GctConfigProducers.h.

Referenced by produceCalibFun(), and ~L1GctConfigProducers().

L1GctHfLutSetupConfigurer* L1GctConfigProducers::m_HfLSetupConf [private]

Definition at line 88 of file L1GctConfigProducers.h.

Referenced by produceHfLSetup(), and ~L1GctConfigProducers().

L1GctJctSetupConfigurer* L1GctConfigProducers::m_JctSetupConfNegativeEta [private]

Definition at line 85 of file L1GctConfigProducers.h.

Referenced by produceJCNegEta(), and ~L1GctConfigProducers().

L1GctJctSetupConfigurer* L1GctConfigProducers::m_JctSetupConfPositiveEta [private]

Definition at line 86 of file L1GctConfigProducers.h.

Referenced by produceJCPosEta(), and ~L1GctConfigProducers().

L1GctJfParamsConfigurer* L1GctConfigProducers::m_JfParamsConf [private]

Definition at line 87 of file L1GctConfigProducers.h.

Referenced by produceJfParams(), and ~L1GctConfigProducers().


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