CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackWithVertexSelector.h
Go to the documentation of this file.
1 #ifndef CommonTools_RecoAlgos_TrackWithVertexSelector_H
2 #define CommonTools_RecoAlgos_TrackWithVertexSelector_H
3 
4 // Original Author: Giovanni Petrucciani
5 // Created: Fri May 25 10:06:02 CEST 2007
6 // $Id: TrackWithVertexSelector.h,v 1.4 2010/04/07 08:56:18 gpetrucc Exp $
7 
8 
16 
18  public:
20  TrackWithVertexSelector(iConfig, iC) {}
23 
24  void init(const edm::Event & event, const edm::EventSetup&) {init(event);}
25  void init(const edm::Event & event);
26 
27 
28  bool operator()(const reco::Track &t) const ;
29  bool operator()(const reco::Track &t, const edm::Event &iEvent) {
30  init(iEvent); return (*this)(t);
31  }
32  bool testTrack(const reco::Track &t) const ;
33  bool testVertices(const reco::Track &t, const reco::VertexCollection &vtxs) const ;
34  private:
40  double dzMax_, d0Max_;
41  double ptErrorCut_;
43 
44  uint32_t nVertices_;
47  double zetaVtx_, rhoVtx_;
48 
49  reco::VertexCollection const * vcoll_ = nullptr;
51 };
52 
53 #endif
bool testTrack(const reco::Track &t) const
bool testVertices(const reco::Track &t, const reco::VertexCollection &vtxs) const
reco::VertexCollection const * vcoll_
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
void init(const edm::Event &event, const edm::EventSetup &)
bool operator()(const reco::Track &t) const
int iEvent
Definition: GenABIO.cc:230
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
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
bool operator()(const reco::Track &t, const edm::Event &iEvent)
TrackWithVertexSelector(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)