CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
edm::AnalyzerWrapper< T > Class Template Reference

#include <EDAnalyzerWrapper.h>

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

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 More...
 
 AnalyzerWrapper (const edm::ParameterSet &cfg)
 default contructor More...
 
virtual void beginJob ()
 everything which has to be done before the event loop More...
 
virtual void endJob ()
 everything which has to be done after the event loop More...
 
virtual ~AnalyzerWrapper ()
 default destructor More...
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Protected Attributes

boost::shared_ptr< Tanalyzer_
 shared pointer to analysis class of type BasicAnalyzer More...
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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 edm::AnalyzerWrapper< T >::analyzer_, edm::EDConsumerBase::consumesCollector(), fileService, and TFileService::tFileDirectory().

69  {
70  // defined TFileService
72  // create analysis class of type BasicAnalyzer
73  analyzer_ = boost::shared_ptr<T>( new T( cfg, fileService->tFileDirectory(), consumesCollector()) );
74  }
TFileDirectory & tFileDirectory()
Definition: TFileService.h:42
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::Service< TFileService > fileService
boost::shared_ptr< T > analyzer_
shared pointer to analysis class of type BasicAnalyzer
long double T
template<class T >
virtual edm::AnalyzerWrapper< T >::~AnalyzerWrapper ( )
inlinevirtual

default destructor

Definition at line 54 of file EDAnalyzerWrapper.h.

54 {};

Member Function Documentation

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

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

Definition at line 58 of file EDAnalyzerWrapper.h.

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

58 { analyzer_->analyze(event); }
boost::shared_ptr< T > analyzer_
shared pointer to analysis class of type BasicAnalyzer
Definition: event.py:1
template<class T >
virtual void edm::AnalyzerWrapper< T >::beginJob ( void  )
inlinevirtual

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_.

56 { analyzer_->beginJob(); }
boost::shared_ptr< T > analyzer_
shared pointer to analysis class of type BasicAnalyzer
template<class T >
virtual void edm::AnalyzerWrapper< T >::endJob ( void  )
inlinevirtual

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_.

60 { analyzer_->endJob(); }
boost::shared_ptr< T > analyzer_
shared pointer to analysis class of type BasicAnalyzer

Member Data Documentation

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