template<typename InputCollection, typename Selector, typename StoreContainer = std::vector<const typename InputCollection::value_type *>, typename RefAdder = typename helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
class ObjectPairCollectionSelector< InputCollection, Selector, StoreContainer, RefAdder >
selects object pairs wose combination satiefies a specific selection for instance, could be based on invariant mass, deltaR , deltaPhi, etc.
- Author
- Luca Lista, INFN
- Version
- Revision:
- 1.9
- Id:
- ObjectPairCollectionSelector.h,v 1.9 2008/02/04 10:44:27 llista Exp
Definition at line 26 of file ObjectPairCollectionSelector.h.
template<typename InputCollection , typename Selector , typename StoreContainer = std::vector<const typename InputCollection::value_type *>, typename RefAdder = typename helper::SelectionAdderTrait<InputCollection, StoreContainer>::type>
Definition at line 40 of file ObjectPairCollectionSelector.h.
References ObjectPairCollectionSelector< InputCollection, Selector, StoreContainer, RefAdder >::addRef_, i, j, asciidump::s, ObjectPairCollectionSelector< InputCollection, Selector, StoreContainer, RefAdder >::select_, ObjectPairCollectionSelector< InputCollection, Selector, StoreContainer, RefAdder >::selected_, and v.
Referenced by python.Vispa.Views.LineDecayView.LineDecayContainer::createObject(), python.Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), python.Vispa.Views.LineDecayView.LineDecayContainer::mousePressEvent(), python.Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), python.Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), and python.Vispa.Views.AbstractView.AbstractView::restoreSelection().
41 unsigned int s = c->size();
42 std::vector<bool>
v(s,
false);
43 for(
unsigned int i = 0;
i <
s; ++
i)
44 for(
unsigned int j =
i + 1;
j <
s; ++
j) {
49 for(
unsigned int i = 0; i <
s; ++
i)