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.2
- Id:
- ObjectPairCollectionSelector.h,v 1.2 2013/02/28 00:34:26 wmtan 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, 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().
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)