CMS 3D CMS Logo

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 
17 
19  public:
21  TrackWithVertexSelector(iConfig, iC) {}
24 
25  void init(const edm::Event & event, const edm::EventSetup&) {init(event);}
26  void init(const edm::Event & event);
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 
33  bool operator()(const reco::TrackRef &t) const ;
34  bool operator()(const reco::TrackRef &t, const edm::Event &iEvent) {
35  init(iEvent); return (*this)(t);
36  }
37  bool testTrack(const reco::Track &t) const ;
38  bool testVertices(const reco::Track &t, const reco::VertexCollection &vtxs) const ;
39 
40  bool testTrack(const reco::TrackRef &t) const ;
41  bool testVertices(const reco::TrackRef &t, const reco::VertexCollection &vtxs) const ;
42  private:
48  double dzMax_, d0Max_;
49  double ptErrorCut_;
51 
52  uint32_t nVertices_;
57 
58  reco::VertexCollection const * vcoll_ = nullptr;
59  edm::ValueMap<float> const * timescoll_ = nullptr;
62 };
63 
64 #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:224
edm::EDGetTokenT< edm::ValueMap< float > > timesToken_
edm::EDGetTokenT< edm::ValueMap< float > > timeResosToken_
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
bool operator()(const reco::Track &t, const edm::Event &iEvent)
edm::ValueMap< float > const * timeresoscoll_
bool operator()(const reco::TrackRef &t, const edm::Event &iEvent)
TrackWithVertexSelector(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
edm::ValueMap< float > const * timescoll_
Definition: event.py:1