7 numberOfValidHits_(iConfig.getParameter<uint32_t>(
"numberOfValidHits")),
8 numberOfValidPixelHits_(iConfig.getParameter<uint32_t>(
"numberOfValidPixelHits")),
9 numberOfLostHits_(iConfig.getParameter<uint32_t>(
"numberOfLostHits")),
10 normalizedChi2_(iConfig.getParameter<double>(
"normalizedChi2")),
11 ptMin_(iConfig.getParameter<double>(
"ptMin")),
12 ptMax_(iConfig.getParameter<double>(
"ptMax")),
13 etaMin_(iConfig.getParameter<double>(
"etaMin")),
14 etaMax_(iConfig.getParameter<double>(
"etaMax")),
15 dzMax_(iConfig.getParameter<double>(
"dzMax")),
16 d0Max_(iConfig.getParameter<double>(
"d0Max")),
17 ptErrorCut_(iConfig.getParameter<double>(
"ptErrorCut")),
18 quality_(iConfig.getParameter<std::
string>(
"quality")),
19 nVertices_(iConfig.getParameter<bool>(
"useVtx") ? iConfig.getParameter<uint32_t>(
"nVertices") : 0),
20 vertexToken_(iC.consumes<
reco::
VertexCollection>(iConfig.getParameter<edm::InputTag>(
"vertexTag"))),
21 vtxFallback_(iConfig.getParameter<bool>(
"vtxFallback")),
22 zetaVtx_(iConfig.getParameter<double>(
"zetaVtx")),
23 rhoVtx_(iConfig.getParameter<double>(
"rhoVtx")) {
49 if (vtxs.size() > 0) {
50 unsigned int tested = 1;
51 for (reco::VertexCollection::const_iterator it = vtxs.begin(), ed = vtxs.end();
bool testTrack(const reco::Track &t) const
double d0() const
dxy parameter in perigee convention (d0 = - dxy)
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool testVertices(const reco::Track &t, const reco::VertexCollection &vtxs) const
unsigned short numberOfLostHits() const
number of cases where track crossed a layer without getting a hit.
std::vector< Vertex > VertexCollection
collection of Vertex objects
uint32_t numberOfValidHits_
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
~TrackWithVertexSelector()
double eta() const
pseudorapidity of momentum vector
double pt() const
track transverse momentum
double ptError() const
error on Pt (set to 1000 TeV if charge==0 for safety)
Abs< T >::type abs(const T &t)
unsigned short numberOfValidHits() const
number of valid hits found
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
uint32_t numberOfValidPixelHits_
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
const Point & vertex() const
reference point on the track. This method is DEPRECATED, please use referencePoint() instead ...
static TrackQuality qualityByName(const std::string &name)
bool quality(const TrackQuality) const
Track quality.
bool operator()(const reco::Track &t, const edm::Event &iEvent) const
uint32_t numberOfLostHits_
int numberOfValidPixelHits() const
TrackWithVertexSelector(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...