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 
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  bool operator()(const reco::Track &t) const;
28  bool operator()(const reco::Track &t, const edm::Event &iEvent) {
29  init(iEvent);
30  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);
36  return (*this)(t);
37  }
38  bool testTrack(const reco::Track &t) const;
39  bool testVertices(const reco::Track &t, const reco::VertexCollection &vtxs) const;
40 
41  bool testTrack(const reco::TrackRef &t) const;
42  bool testVertices(const reco::TrackRef &t, const reco::VertexCollection &vtxs) const;
43 
44 private:
50  double dzMax_, d0Max_;
51  double ptErrorCut_;
53 
54  uint32_t nVertices_;
59 
60  reco::VertexCollection const *vcoll_ = nullptr;
61  edm::ValueMap<float> const *timescoll_ = nullptr;
64 };
65 
66 #endif
reco::VertexCollection const * vcoll_
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
bool testVertices(const reco::Track &t, const reco::VertexCollection &vtxs) const
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
void init(const edm::Event &event, const edm::EventSetup &)
int iEvent
Definition: GenABIO.cc:224
edm::EDGetTokenT< edm::ValueMap< float > > timesToken_
edm::EDGetTokenT< edm::ValueMap< float > > timeResosToken_
bool testTrack(const reco::Track &t) const
bool operator()(const reco::Track &t) const
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