CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ipf2pat::ObjectSelector< Selector, CollectionType > Class Template Reference

#include <ObjectSelector.h>

Public Member Functions

 ObjectSelector (const edm::ParameterSet &ps)
 
const CollectionType & select (const edm::Handle< CollectionType > &handleToCollection, const edm::EventBase &event)
 

Private Attributes

const edm::EventSetupeventSetupPtr_
 
Selector selector_
 

Detailed Description

template<typename Selector, typename CollectionType>
class ipf2pat::ObjectSelector< Selector, CollectionType >

Definition at line 17 of file ObjectSelector.h.

Constructor & Destructor Documentation

◆ ObjectSelector()

template<typename Selector , typename CollectionType >
ipf2pat::ObjectSelector< Selector, CollectionType >::ObjectSelector ( const edm::ParameterSet ps)
inline

Definition at line 19 of file ObjectSelector.h.

19  :
20  eventSetupPtr_(0),
21  selector_(ps) {}

Member Function Documentation

◆ select()

template<typename Selector , typename CollectionType >
const CollectionType& ipf2pat::ObjectSelector< Selector, CollectionType >::select ( const edm::Handle< CollectionType > &  handleToCollection,
const edm::EventBase event 
)
inline

Definition at line 24 of file ObjectSelector.h.

25  {
26  /* static edm::Event e; */
27  selector_.select( handleToCollection, event, *eventSetupPtr_ );
28  return selector_.selected();
29  }

References ipf2pat::ObjectSelector< Selector, CollectionType >::eventSetupPtr_, and ipf2pat::ObjectSelector< Selector, CollectionType >::selector_.

Member Data Documentation

◆ eventSetupPtr_

template<typename Selector , typename CollectionType >
const edm::EventSetup* ipf2pat::ObjectSelector< Selector, CollectionType >::eventSetupPtr_
private

◆ selector_

template<typename Selector , typename CollectionType >
Selector ipf2pat::ObjectSelector< Selector, CollectionType >::selector_
private
ipf2pat::ObjectSelector::eventSetupPtr_
const edm::EventSetup * eventSetupPtr_
Definition: ObjectSelector.h:33
ipf2pat::ObjectSelector::selector_
Selector selector_
Definition: ObjectSelector.h:35
event
Definition: event.py:1