CMS 3D CMS Logo

Public Member Functions | Protected Attributes

edm::AnalyzerWrapper< T > Class Template Reference

#include <EDAnalyzerWrapper.h>

Inheritance diagram for edm::AnalyzerWrapper< T >:
edm::EDAnalyzer

List of all members.

Public Member Functions

virtual void analyze (edm::Event const &event, const edm::EventSetup &eventSetup)
 everything which has to be done during the event loop. NOTE: We can't use the eventSetup in FWLite so ignore it
 AnalyzerWrapper (const edm::ParameterSet &cfg)
 default contructor
virtual void beginJob ()
 everything which has to be done before the event loop
virtual void endJob ()
 everything which has to be done after the event loop
virtual ~AnalyzerWrapper ()
 default destructor

Protected Attributes

boost::shared_ptr< T > analyzer_
 shared pointer to analysis class of type BasicAnalyzer

Detailed Description

template<class T>
class edm::AnalyzerWrapper< T >

Definition at line 48 of file EDAnalyzerWrapper.h.


Constructor & Destructor Documentation

template<class T >
edm::AnalyzerWrapper< T >::AnalyzerWrapper ( const edm::ParameterSet cfg)

default contructor

Definition at line 69 of file EDAnalyzerWrapper.h.

References loadConditions::analyzer_, and fileService.

                                                               {
    // defined TFileService
    edm::Service<TFileService> fileService;
    // create analysis class of type BasicAnalyzer
    analyzer_ = boost::shared_ptr<T>( new T( cfg, *fileService) );
  }
template<class T >
virtual edm::AnalyzerWrapper< T >::~AnalyzerWrapper ( ) [inline, virtual]

default destructor

Definition at line 54 of file EDAnalyzerWrapper.h.

{};

Member Function Documentation

template<class T >
virtual void edm::AnalyzerWrapper< T >::analyze ( edm::Event const &  event,
const edm::EventSetup eventSetup 
) [inline, virtual]

everything which has to be done during the event loop. NOTE: We can't use the eventSetup in FWLite so ignore it

Implements edm::EDAnalyzer.

Definition at line 58 of file EDAnalyzerWrapper.h.

References edm::AnalyzerWrapper< T >::analyzer_.

{ analyzer_->analyze(event); }
template<class T >
virtual void edm::AnalyzerWrapper< T >::beginJob ( void  ) [inline, virtual]

everything which has to be done before the event loop

Reimplemented from edm::EDAnalyzer.

Definition at line 56 of file EDAnalyzerWrapper.h.

References edm::AnalyzerWrapper< T >::analyzer_.

{ analyzer_->beginJob(); }
template<class T >
virtual void edm::AnalyzerWrapper< T >::endJob ( void  ) [inline, virtual]

everything which has to be done after the event loop

Reimplemented from edm::EDAnalyzer.

Definition at line 60 of file EDAnalyzerWrapper.h.

References edm::AnalyzerWrapper< T >::analyzer_.

{ analyzer_->endJob(); }

Member Data Documentation

template<class T >
boost::shared_ptr<T> edm::AnalyzerWrapper< T >::analyzer_ [protected]

shared pointer to analysis class of type BasicAnalyzer

Definition at line 64 of file EDAnalyzerWrapper.h.

Referenced by edm::AnalyzerWrapper< T >::analyze(), edm::AnalyzerWrapper< T >::beginJob(), and edm::AnalyzerWrapper< T >::endJob().