CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes | Friends
SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder > Class Template Reference

#include <SingleElementCollectionSelector.h>

Public Types

typedef InputCollection collection
 
typedef container::const_iterator const_iterator
 
typedef StoreContainer container
 
typedef Selector selector
 

Public Member Functions

const_iterator begin () const
 
const_iterator end () const
 
void select (const edm::Handle< InputCollection > &c, const edm::Event &, const edm::EventSetup &)
 
 SingleElementCollectionSelector (const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
 

Private Attributes

RefAdder addRef_
 
selector select_
 
container selected_
 

Friends

struct reco::modules::SingleElementCollectionSelectorEventSetupInit< SingleElementCollectionSelector >
 

Detailed Description

template<typename InputCollection, typename Selector, typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<InputCollection>::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
class SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >

selects a subset of a collection based on single element selection done via functor

Author
Luca Lista, INFN
Version
Revision
1.1
Id
SingleElementCollectionSelector.h,v 1.1 2009/03/03 13:07:28 llista Exp

Definition at line 37 of file SingleElementCollectionSelector.h.

Member Typedef Documentation

◆ collection

template<typename InputCollection, typename Selector, typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<InputCollection>::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
typedef InputCollection SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >::collection

Definition at line 38 of file SingleElementCollectionSelector.h.

◆ const_iterator

template<typename InputCollection, typename Selector, typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<InputCollection>::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
typedef container::const_iterator SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >::const_iterator

Definition at line 41 of file SingleElementCollectionSelector.h.

◆ container

template<typename InputCollection, typename Selector, typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<InputCollection>::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
typedef StoreContainer SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >::container

Definition at line 39 of file SingleElementCollectionSelector.h.

◆ selector

template<typename InputCollection, typename Selector, typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<InputCollection>::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
typedef Selector SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >::selector

Definition at line 40 of file SingleElementCollectionSelector.h.

Constructor & Destructor Documentation

◆ SingleElementCollectionSelector()

template<typename InputCollection, typename Selector, typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<InputCollection>::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >::SingleElementCollectionSelector ( const edm::ParameterSet cfg,
edm::ConsumesCollector &&  iC 
)
inline

Definition at line 42 of file SingleElementCollectionSelector.h.

43  : select_(reco::modules::make<Selector>(cfg, iC)) {}

Member Function Documentation

◆ begin()

template<typename InputCollection, typename Selector, typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<InputCollection>::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
const_iterator SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >::begin ( void  ) const
inline

Definition at line 44 of file SingleElementCollectionSelector.h.

◆ end()

template<typename InputCollection, typename Selector, typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<InputCollection>::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
const_iterator SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >::end ( void  ) const
inline

◆ select()

template<typename InputCollection, typename Selector, typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<InputCollection>::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
void SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >::select ( const edm::Handle< InputCollection > &  c,
const edm::Event ,
const edm::EventSetup  
)
inline

Friends And Related Function Documentation

◆ reco::modules::SingleElementCollectionSelectorEventSetupInit< SingleElementCollectionSelector >

template<typename InputCollection, typename Selector, typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<InputCollection>::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
friend struct reco::modules::SingleElementCollectionSelectorEventSetupInit< SingleElementCollectionSelector >
friend

Definition at line 58 of file SingleElementCollectionSelector.h.

Member Data Documentation

◆ addRef_

template<typename InputCollection, typename Selector, typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<InputCollection>::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
RefAdder SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >::addRef_
private

◆ select_

template<typename InputCollection, typename Selector, typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<InputCollection>::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
selector SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >::select_
private

◆ selected_

template<typename InputCollection, typename Selector, typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<InputCollection>::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
container SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >::selected_
private

Definition at line 55 of file SingleElementCollectionSelector.h.

Referenced by SingleElementCollectionSelector< reco::TrackCollection, StringCutObjectSelector< reco::Track >, typename ::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type, typename ::helper::StoreContainerTrait< typename ::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type >::type, typename ::helper::SelectionAdderTrait< reco::TrackCollection, typename ::helper::StoreContainerTrait< typename ::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type >::type >::type >::begin(), SingleElementCollectionSelector< reco::TrackCollection, StringCutObjectSelector< reco::Track >, typename ::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type, typename ::helper::StoreContainerTrait< typename ::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type >::type, typename ::helper::SelectionAdderTrait< reco::TrackCollection, typename ::helper::StoreContainerTrait< typename ::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type >::type >::type >::end(), and SingleElementCollectionSelector< reco::TrackCollection, StringCutObjectSelector< reco::Track >, typename ::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type, typename ::helper::StoreContainerTrait< typename ::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type >::type, typename ::helper::SelectionAdderTrait< reco::TrackCollection, typename ::helper::StoreContainerTrait< typename ::helper::SelectedOutputCollectionTrait< reco::TrackCollection >::type >::type >::type >::select().