CMS 3D CMS Logo

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

#include <SingleElementCollectionRefSelector.h>

Public Types

typedef InputCollection collection
 
typedef container::const_iterator const_iterator
 
typedef StoreContainer container
 
typedef edm::View< InputType > InputCollection
 
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 &)
 
 SingleElementCollectionRefSelector (const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
 

Private Attributes

RefAdder addRef_
 
selector select_
 
container selected_
 

Friends

struct reco::modules::SingleElementCollectionRefSelectorEventSetupInit< SingleElementCollectionRefSelector >
 

Detailed Description

template<typename InputType, typename Selector, typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<edm::View<InputType> >::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<edm::View<InputType>, StoreContainer>::type>
class SingleElementCollectionRefSelector< InputType, 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
SingleElementCollectionRefSelector.h,v 1.1 2009/03/03 13:07:28 llista Exp

Definition at line 38 of file SingleElementCollectionRefSelector.h.

Member Typedef Documentation

template<typename InputType , typename Selector , typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<edm::View<InputType> >::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<edm::View<InputType>, StoreContainer>::type>
typedef InputCollection SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >::collection

Definition at line 40 of file SingleElementCollectionRefSelector.h.

template<typename InputType , typename Selector , typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<edm::View<InputType> >::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<edm::View<InputType>, StoreContainer>::type>
typedef container::const_iterator SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >::const_iterator

Definition at line 43 of file SingleElementCollectionRefSelector.h.

template<typename InputType , typename Selector , typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<edm::View<InputType> >::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<edm::View<InputType>, StoreContainer>::type>
typedef StoreContainer SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >::container

Definition at line 41 of file SingleElementCollectionRefSelector.h.

template<typename InputType , typename Selector , typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<edm::View<InputType> >::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<edm::View<InputType>, StoreContainer>::type>
typedef edm::View<InputType> SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >::InputCollection

Definition at line 39 of file SingleElementCollectionRefSelector.h.

template<typename InputType , typename Selector , typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<edm::View<InputType> >::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<edm::View<InputType>, StoreContainer>::type>
typedef Selector SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >::selector

Definition at line 42 of file SingleElementCollectionRefSelector.h.

Constructor & Destructor Documentation

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

Definition at line 44 of file SingleElementCollectionRefSelector.h.

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

Member Function Documentation

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

Friends And Related Function Documentation

template<typename InputType , typename Selector , typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<edm::View<InputType> >::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<edm::View<InputType>, StoreContainer>::type>
friend struct reco::modules::SingleElementCollectionRefSelectorEventSetupInit< SingleElementCollectionRefSelector >
friend

Definition at line 60 of file SingleElementCollectionRefSelector.h.

Member Data Documentation

template<typename InputType , typename Selector , typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<edm::View<InputType> >::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<edm::View<InputType>, StoreContainer>::type>
RefAdder SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >::addRef_
private

Definition at line 59 of file SingleElementCollectionRefSelector.h.

template<typename InputType , typename Selector , typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<edm::View<InputType> >::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<edm::View<InputType>, StoreContainer>::type>
selector SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >::select_
private

Definition at line 58 of file SingleElementCollectionRefSelector.h.

template<typename InputType , typename Selector , typename OutputCollection = typename ::helper::SelectedOutputCollectionTrait<edm::View<InputType> >::type, typename StoreContainer = typename ::helper::StoreContainerTrait<OutputCollection>::type, typename RefAdder = typename ::helper::SelectionAdderTrait<edm::View<InputType>, StoreContainer>::type>
container SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >::selected_
private

Definition at line 57 of file SingleElementCollectionRefSelector.h.