CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTrackViewRefSelector.h
Go to the documentation of this file.
1 #ifndef CommonTools_RecoAlgos_RecoTrackViewRefSelector_h
2 #define CommonTools_RecoAlgos_RecoTrackViewRefSelector_h
3 
6 
8  public:
12 
15 
17 
19  const_ref_iterator end() const { return ref_selected_.end(); }
20 
21  void select( const edm::Handle<collection>& c, const edm::Event & event, const edm::EventSetup&es) {
22  init(event, es);
24  for (unsigned int i = 0; i < c->size(); i++) {
25  auto trk = c->refAt(i);
26  if ( operator()(*trk) ) {
27  ref_selected_.push_back( trk );
28  }
29  }
30  }
31 
32  size_t size() const { return ref_selected_.size(); }
33 
34  private:
36 };
37 
38 #endif
int i
Definition: DBlmapReader.cc:9
void init(const edm::Event &event, const edm::EventSetup &es)
tuple cfg
Definition: looper.py:293
RecoTrackViewRefSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
void select(const edm::Handle< collection > &c, const edm::Event &event, const edm::EventSetup &es)
const_iterator end() const
const_ref_iterator end() const
edm::View< reco::Track > collection
const_ref_iterator begin() const
ref_container::const_iterator const_ref_iterator
size_type size() const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
const_iterator begin() const
void push_back(const RefToBase< T > &)
edm::RefToBaseVector< reco::Track > ref_container