CMS 3D CMS Logo

Public Member Functions | Private Attributes

ipf2pat::ObjectSelector< Selector, CollectionType > Class Template Reference

#include <ObjectSelector.h>

List of all members.

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

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

Definition at line 19 of file ObjectSelector.h.

                                              : 
      eventSetupPtr_(0),
      selector_(ps) {}

Member Function Documentation

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.

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

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

Member Data Documentation

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