CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
EventSelector Class Referenceabstract

A selector of events. More...

#include "CommonTools/Utils/interface/EventSelector.h"

Inheritance diagram for EventSelector:
HLTEventSelector RunLumiSelector StringCutEventSelector< Object, any > StringCutsEventSelector< Object, existenceMatter > VariableEventSelector VariableFormulaEventSelector WPlusJetsEventSelector WSelector

Public Member Functions

const std::vector< std::string > & description ()
 
 EventSelector ()
 
 EventSelector (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
 
 EventSelector (const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
 
const std::string & name () const
 name of the module (from configuration) More...
 
virtual bool select (const edm::Event &) const =0
 decision of the selector module More...
 
virtual ~EventSelector ()
 

Protected Attributes

std::vector< std::string > description_
 
std::string name_
 

Detailed Description

A selector of events.

Base class for event selection modules for SUSY analysis.

This is a placeholder.

Author
Salvatore Rappoccio
Version
Id
EventSelector.h,v 1.1 2009/12/21 19:27:08 srappocc Exp

Definition at line 16 of file EventSelector.h.

Constructor & Destructor Documentation

◆ EventSelector() [1/3]

EventSelector::EventSelector ( )
inline

Definition at line 18 of file EventSelector.h.

18 {}

◆ EventSelector() [2/3]

EventSelector::EventSelector ( const edm::ParameterSet iConfig,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 19 of file EventSelector.h.

19 : EventSelector(iConfig, iC) {}

◆ EventSelector() [3/3]

EventSelector::EventSelector ( const edm::ParameterSet iConfig,
edm::ConsumesCollector iC 
)
inline

Definition at line 20 of file EventSelector.h.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), name_, and AlCaHLTBitMon_QueryRunRegistry::string.

20  {
21  std::string selector = iConfig.getParameter<std::string>("selector");
22  name_ = iConfig.getUntrackedParameter<std::string>("name", selector);
23  }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
T getUntrackedParameter(std::string const &, T const &) const
std::string name_
Definition: EventSelector.h:32

◆ ~EventSelector()

virtual EventSelector::~EventSelector ( )
inlinevirtual

Definition at line 24 of file EventSelector.h.

24 {}

Member Function Documentation

◆ description()

const std::vector<std::string>& EventSelector::description ( )
inline

Definition at line 27 of file EventSelector.h.

References description_.

27 { return description_; }
std::vector< std::string > description_
Definition: EventSelector.h:33

◆ name()

const std::string& EventSelector::name ( ) const
inline

name of the module (from configuration)

Definition at line 26 of file EventSelector.h.

References name_.

Referenced by config.CFG::__str__(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().

26 { return name_; }
std::string name_
Definition: EventSelector.h:32

◆ select()

virtual bool EventSelector::select ( const edm::Event ) const
pure virtual

Member Data Documentation

◆ description_

std::vector<std::string> EventSelector::description_
protected

◆ name_

std::string EventSelector::name_
protected