test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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 loadConditions::analyzer_, 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

Implements edm::EDAnalyzer.

Definition at line 58 of file EDAnalyzerWrapper.h.

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

58 { analyzer_->analyze(event); }
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
boost::shared_ptr< T > analyzer_
shared pointer to analysis class of type BasicAnalyzer
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

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().