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
edm::EDGetTokenT< reco::VertexCollection >
reco::VertexCollection
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
TrackWithVertexSelector::testVertices
bool testVertices(const reco::Track &t, const reco::VertexCollection &vtxs) const
Definition: TrackWithVertexSelector.cc:64
TrackWithVertexSelector::init
void init(const edm::Event &event, const edm::EventSetup &)
Definition: TrackWithVertexSelector.h:24
TrackWithVertexSelector::vtxFallback_
bool vtxFallback_
Definition: TrackWithVertexSelector.h:57
TrackWithVertexSelector::ptMax_
double ptMax_
Definition: TrackWithVertexSelector.h:49
TrackWithVertexSelector::timeresoscoll_
const edm::ValueMap< float > * timeresoscoll_
Definition: TrackWithVertexSelector.h:62
edm::Ref< TrackCollection >
TrackWithVertexSelector::vcoll_
const reco::VertexCollection * vcoll_
Definition: TrackWithVertexSelector.h:60
TrackWithVertexSelector::numberOfValidHits_
uint32_t numberOfValidHits_
Definition: TrackWithVertexSelector.h:45
TrackWithVertexSelector::vertexToken_
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
Definition: TrackWithVertexSelector.h:55
TrackWithVertexSelector::timesToken_
edm::EDGetTokenT< edm::ValueMap< float > > timesToken_
Definition: TrackWithVertexSelector.h:56
Track.h
TrackWithVertexSelector::~TrackWithVertexSelector
~TrackWithVertexSelector()
Definition: TrackWithVertexSelector.cc:33
TrackWithVertexSelector::rhoVtx_
double rhoVtx_
Definition: TrackWithVertexSelector.h:58
TrackWithVertexSelector::timeResosToken_
edm::EDGetTokenT< edm::ValueMap< float > > timeResosToken_
Definition: TrackWithVertexSelector.h:56
TrackWithVertexSelector::zetaVtx_
double zetaVtx_
Definition: TrackWithVertexSelector.h:58
reco::Track
Definition: Track.h:27
TrackWithVertexSelector::ptMin_
double ptMin_
Definition: TrackWithVertexSelector.h:49
OrderedSet.t
t
Definition: OrderedSet.py:90
TrackWithVertexSelector::ptErrorCut_
double ptErrorCut_
Definition: TrackWithVertexSelector.h:51
TrackWithVertexSelector::d0Max_
double d0Max_
Definition: TrackWithVertexSelector.h:50
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Vertex.h
edm::ParameterSet
Definition: ParameterSet.h:36
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
TrackWithVertexSelector::numberOfValidPixelHits_
uint32_t numberOfValidPixelHits_
Definition: TrackWithVertexSelector.h:46
Event.h
TrackWithVertexSelector::testTrack
bool testTrack(const reco::Track &t) const
Definition: TrackWithVertexSelector.cc:49
iEvent
int iEvent
Definition: GenABIO.cc:224
TrackWithVertexSelector::nVertices_
uint32_t nVertices_
Definition: TrackWithVertexSelector.h:54
edm::EventSetup
Definition: EventSetup.h:57
TrackWithVertexSelector::quality_
std::string quality_
Definition: TrackWithVertexSelector.h:52
TrackWithVertexSelector::operator()
bool operator()(const reco::Track &t) const
Definition: TrackWithVertexSelector.cc:116
TrackWithVertexSelector::operator()
bool operator()(const reco::TrackRef &t, const edm::Event &iEvent)
Definition: TrackWithVertexSelector.h:34
TrackWithVertexSelector::nSigmaDtVertex_
double nSigmaDtVertex_
Definition: TrackWithVertexSelector.h:58
InputTag.h
ValueMap.h
VertexFwd.h
TrackWithVertexSelector::dzMax_
double dzMax_
Definition: TrackWithVertexSelector.h:50
TrackWithVertexSelector::operator()
bool operator()(const reco::Track &t, const edm::Event &iEvent)
Definition: TrackWithVertexSelector.h:28
edm::ValueMap< float >
TrackWithVertexSelector::Point
math::XYZPoint Point
Definition: TrackWithVertexSelector.h:63
TrackWithVertexSelector::etaMin_
double etaMin_
Definition: TrackWithVertexSelector.h:49
TrackWithVertexSelector::timescoll_
const edm::ValueMap< float > * timescoll_
Definition: TrackWithVertexSelector.h:61
TrackWithVertexSelector
Definition: TrackWithVertexSelector.h:17
TrackWithVertexSelector::numberOfLostHits_
uint32_t numberOfLostHits_
Definition: TrackWithVertexSelector.h:47
ConsumesCollector.h
ParameterSet.h
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
TrackWithVertexSelector::etaMax_
double etaMax_
Definition: TrackWithVertexSelector.h:49
TrackWithVertexSelector::TrackWithVertexSelector
TrackWithVertexSelector(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
Definition: TrackWithVertexSelector.h:19
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
TrackWithVertexSelector::normalizedChi2_
double normalizedChi2_
Definition: TrackWithVertexSelector.h:48