CMS 3D CMS Logo

HcalGainWidthsPopConAnalyzer Class Reference

Inheritance diagram for HcalGainWidthsPopConAnalyzer:

popcon::PopConAnalyzer< HcalGainWidthsHandler > edm::EDAnalyzer

List of all members.

Public Types

typedef HcalGainWidthsHandler SourceHandler

Public Member Functions

 HcalGainWidthsPopConAnalyzer (const edm::ParameterSet &pset)

Private Member Functions

virtual void analyze (const edm::Event &ev, const edm::EventSetup &esetup)
virtual void endJob ()
void write ()

Private Attributes

popcon::PopCon m_populator
SourceHandler m_source
HcalGainWidthsmyDBObject


Detailed Description

Definition at line 7 of file HcalGainWidthsPopConAnalyzer.cc.


Member Typedef Documentation

typedef HcalGainWidthsHandler HcalGainWidthsPopConAnalyzer::SourceHandler

Reimplemented from popcon::PopConAnalyzer< HcalGainWidthsHandler >.

Definition at line 10 of file HcalGainWidthsPopConAnalyzer.cc.


Constructor & Destructor Documentation

HcalGainWidthsPopConAnalyzer::HcalGainWidthsPopConAnalyzer ( const edm::ParameterSet pset  )  [inline]

Definition at line 12 of file HcalGainWidthsPopConAnalyzer.cc.

00012                                                            : 
00013     popcon::PopConAnalyzer<HcalGainWidthsHandler>(pset),
00014     m_populator(pset),
00015     m_source(pset.getParameter<edm::ParameterSet>("Source")) {}


Member Function Documentation

virtual void HcalGainWidthsPopConAnalyzer::analyze ( const edm::Event ev,
const edm::EventSetup esetup 
) [inline, private, virtual]

Reimplemented from popcon::PopConAnalyzer< HcalGainWidthsHandler >.

Definition at line 24 of file HcalGainWidthsPopConAnalyzer.cc.

References edm::EventSetup::get(), myDBObject, and edm::ESHandle< T >::product().

00025   {
00026     //Using ES to get the data:
00027 
00028     edm::ESHandle<HcalGainWidths> objecthandle;
00029     esetup.get<HcalGainWidthsRcd>().get(objecthandle);
00030     myDBObject = new HcalGainWidths(*objecthandle.product() );
00031   }

virtual void HcalGainWidthsPopConAnalyzer::endJob ( void   )  [inline, private, virtual]

Reimplemented from popcon::PopConAnalyzer< HcalGainWidthsHandler >.

Definition at line 18 of file HcalGainWidthsPopConAnalyzer.cc.

References HcalGainWidthsHandler::initObject(), m_source, myDBObject, and write().

00019   {
00020     m_source.initObject(myDBObject);
00021     write();
00022   }

void HcalGainWidthsPopConAnalyzer::write ( void   )  [inline, private]

Reimplemented from popcon::PopConAnalyzer< HcalGainWidthsHandler >.

Definition at line 33 of file HcalGainWidthsPopConAnalyzer.cc.

References m_populator, m_source, and popcon::PopCon::write().

Referenced by endJob().


Member Data Documentation

popcon::PopCon HcalGainWidthsPopConAnalyzer::m_populator [private]

Reimplemented from popcon::PopConAnalyzer< HcalGainWidthsHandler >.

Definition at line 36 of file HcalGainWidthsPopConAnalyzer.cc.

Referenced by write().

SourceHandler HcalGainWidthsPopConAnalyzer::m_source [private]

Reimplemented from popcon::PopConAnalyzer< HcalGainWidthsHandler >.

Definition at line 37 of file HcalGainWidthsPopConAnalyzer.cc.

Referenced by endJob(), and write().

HcalGainWidths* HcalGainWidthsPopConAnalyzer::myDBObject [private]

Definition at line 39 of file HcalGainWidthsPopConAnalyzer.cc.

Referenced by analyze(), and endJob().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:23:41 2009 for CMSSW by  doxygen 1.5.4