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

◆ collection

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.

◆ const_iterator

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.

◆ container

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.

◆ InputCollection

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.

◆ selector

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

◆ SingleElementCollectionRefSelector()

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

◆ begin()

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

◆ end()

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

◆ select()

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

◆ reco::modules::SingleElementCollectionRefSelectorEventSetupInit< SingleElementCollectionRefSelector >

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

◆ addRef_

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

◆ select_

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

◆ selected_

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
SingleElementCollectionRefSelector::addRef_
RefAdder addRef_
Definition: SingleElementCollectionRefSelector.h:59
SingleElementCollectionRefSelector::select_
selector select_
Definition: SingleElementCollectionRefSelector.h:58
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
looper.cfg
cfg
Definition: looper.py:297
SingleElementCollectionRefSelector::selected_
container selected_
Definition: SingleElementCollectionRefSelector.h:57
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46