CMS 3D CMS Logo

HIProtoTrackFilter.cc
Go to the documentation of this file.
2 
6 
7 using namespace std;
8 using namespace edm;
9 
10 /*****************************************************************************/
12  theTIPMax(tipMax),
13  theChi2Max(chi2Max),
14  thePtMin(ptMin),
15  theBeamSpot(beamSpot)
16 {
17 }
18 
19 /*****************************************************************************/
21 { }
22 
23 /*****************************************************************************/
25 {
26 
27  if (!track) return false;
28 
29  if (track->chi2() > theChi2Max || track->pt() < thePtMin) return false;
30 
31  math::XYZPoint vtxPoint(0.0,0.0,0.0);
32 
33  if(theBeamSpot)
34  vtxPoint = theBeamSpot->position();
35 
36  double d0=0.0;
37  d0 = -1.*track->dxy(vtxPoint);
38 
39  if (theTIPMax>0 && fabs(d0)>theTIPMax) return false;
40 
41  return true;
42 }
HIProtoTrackFilter(const reco::BeamSpot *beamSpot, double tipMax, double chi2Max, double ptMin)
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:588
double pt() const
track transverse momentum
Definition: TrackBase.h:660
~HIProtoTrackFilter() override
const reco::BeamSpot * theBeamSpot
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
std::vector< const TrackingRecHit * > Hits
HLT enums.
const Point & position() const
position
Definition: BeamSpot.h:62
bool operator()(const reco::Track *, const PixelTrackFilterBase::Hits &hits) const override
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
Definition: TrackBase.h:630