CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTrackRefSelector.h
Go to the documentation of this file.
1 #ifndef RecoSelectors_RecoTrackRefSelector_h
2 #define RecoSelectors_RecoTrackRefSelector_h
3 /* \class RecoTrackRefSelector
4  *
5  * \author Ian Tomalin, RAL
6  *
7  */
9 
11  public:
15 
18 
20 
22  const_ref_iterator end() const { return ref_selected_.end(); }
23 
24  void select( const edm::Handle<collection>& c, const edm::Event & event, const edm::EventSetup&es) {
25  init(event, es);
27  for (unsigned int i = 0; i < c->size(); i++) {
28  edm::Ref<collection> trk(c, i);
29  if ( operator()(*trk) ) {
30  ref_selected_.push_back( trk );
31  }
32  }
33  }
34 
35  size_t size() const { return ref_selected_.size(); }
36 
37  private:
39 };
40 
41 #endif
int i
Definition: DBlmapReader.cc:9
void init(const edm::Event &event, const edm::EventSetup &es)
tuple cfg
Definition: looper.py:293
const_ref_iterator begin() const
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:255
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:250
reco::TrackCollection collection
void select(const edm::Handle< collection > &c, const edm::Event &event, const edm::EventSetup &es)
ref_container::const_iterator const_ref_iterator
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_ref_iterator end() const
RecoTrackRefSelector()
Constructors.
void clear()
Clear the vector.
Definition: RefVector.h:139
reco::TrackRefVector ref_container
RecoTrackRefSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
void push_back(value_type const &ref)
Add a Ref&lt;C, T&gt; to the RefVector.
Definition: RefVector.h:62
size_type size() const
Size of the RefVector.
Definition: RefVector.h:99