CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

class 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 29 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 31 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 34 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 32 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 30 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 33 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 35 of file SingleElementCollectionRefSelector.h.

35  :
36  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

Definition at line 39 of file SingleElementCollectionRefSelector.h.

References SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >::addRef_, customizeTrackingMonitorSeedNumber::idx, SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >::select_, and SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >::selected_.

Referenced by Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Views.LineDecayView.LineDecayContainer::mousePressEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), and Vispa.Views.AbstractView.AbstractView::restoreSelection().

39  {
40  selected_.clear();
41  for(size_t idx = 0; idx < c->size(); ++ idx) {
42  if(select_(c->refAt(idx))) addRef_(selected_, c, idx);
43  }
44  }
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...

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 class reco::modules::SingleElementCollectionRefSelectorEventSetupInit< SingleElementCollectionRefSelector >
friend

Definition at line 49 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
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
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