#include <AssociatedVariableCollectionSelector.h>
Public Types | |
typedef InputCollection | collection |
typedef container::const_iterator | const_iterator |
typedef StoreContainer | container |
typedef Selector | selector |
Public Member Functions | |
AssociatedVariableCollectionSelector (const edm::ParameterSet &cfg) | |
const_iterator | begin () const |
const_iterator | end () const |
void | select (const edm::Handle< InputCollection > &c, const edm::Event &evt, const edm::EventSetup &) |
Private Attributes | |
RefAdder | addRef_ |
selector | select_ |
container | selected_ |
edm::InputTag | var_ |
Friends | |
class | reco::modules::AssociatedVariableCollectionSelectorEventSetupInit< AssociatedVariableCollectionSelector > |
Definition at line 29 of file AssociatedVariableCollectionSelector.h.
typedef InputCollection AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::collection |
Definition at line 31 of file AssociatedVariableCollectionSelector.h.
typedef container::const_iterator AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::const_iterator |
Definition at line 34 of file AssociatedVariableCollectionSelector.h.
typedef StoreContainer AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::container |
Definition at line 32 of file AssociatedVariableCollectionSelector.h.
typedef Selector AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::selector |
Definition at line 33 of file AssociatedVariableCollectionSelector.h.
AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::AssociatedVariableCollectionSelector | ( | const edm::ParameterSet & | cfg | ) | [inline] |
Definition at line 35 of file AssociatedVariableCollectionSelector.h.
const_iterator AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::begin | ( | void | ) | const [inline] |
Definition at line 38 of file AssociatedVariableCollectionSelector.h.
{ return selected_.begin(); }
const_iterator AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::end | ( | void | ) | const [inline] |
Definition at line 39 of file AssociatedVariableCollectionSelector.h.
{ return selected_.end(); }
void AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::select | ( | const edm::Handle< InputCollection > & | c, |
const edm::Event & | evt, | ||
const edm::EventSetup & | |||
) | [inline] |
Definition at line 40 of file AssociatedVariableCollectionSelector.h.
References AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::addRef_, edm::Event::getByLabel(), edm::getRef(), AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::select_, AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::selected_, and AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::var_.
{ selected_.clear(); edm::Handle<VarCollection> var; evt.getByLabel(var_, var); for(size_t idx = 0; idx < c->size(); ++idx) { if (select_((*c)[idx], (*var)[edm::getRef(c,idx)])) addRef_(selected_, c, idx); } }
friend class reco::modules::AssociatedVariableCollectionSelectorEventSetupInit< AssociatedVariableCollectionSelector > [friend] |
Definition at line 54 of file AssociatedVariableCollectionSelector.h.
RefAdder AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::addRef_ [private] |
Definition at line 53 of file AssociatedVariableCollectionSelector.h.
Referenced by AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::select().
selector AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::select_ [private] |
Definition at line 52 of file AssociatedVariableCollectionSelector.h.
Referenced by AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::select().
container AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::selected_ [private] |
Definition at line 51 of file AssociatedVariableCollectionSelector.h.
Referenced by AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::begin(), AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::end(), and AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::select().
edm::InputTag AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::var_ [private] |
Definition at line 50 of file AssociatedVariableCollectionSelector.h.
Referenced by AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >::select().