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.1
- Id:
- ObjectPairCollectionSelector.h,v 1.1 2009/03/03 13:07:27 llista Exp
Definition at line 27 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 41 of file ObjectPairCollectionSelector.h.
References ObjectPairCollectionSelector< InputCollection, Selector, StoreContainer, RefAdder >::addRef_, i, j, alignCSCRings::s, ObjectPairCollectionSelector< InputCollection, Selector, StoreContainer, RefAdder >::select_, ObjectPairCollectionSelector< InputCollection, Selector, StoreContainer, RefAdder >::selected_, and findQualityFiles::v.
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().
42 unsigned int s = c->size();
43 std::vector<bool>
v(s,
false);
44 for(
unsigned int i = 0;
i <
s; ++
i)
45 for(
unsigned int j =
i + 1;
j <
s; ++
j) {
50 for(
unsigned int i = 0; i <
s; ++
i)