StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTrackCutLastPoint.h
1 // -*- mode:c++ -*-
2 
3 //
4 // Pibero Djawotho <pibero@tamu.edu>
5 // Texas A&M University
6 // 27 April 2010
7 //
8 
9 //
10 // See http://www.star.bnl.gov/HyperNews-star/protected/get/jetfinding/992/1.html
11 //
12 
13 #ifndef STJ_TRACK_CUT_LAST_POINT_H
14 #define STJ_TRACK_CUT_LAST_POINT_H
15 
16 #include "StjTrackCut.h"
17 
19 public:
20  StjTrackCutLastPoint(double radius = 125) : _radius(radius) {}
21 
22  bool operator()(const StjTrack& track) const { return track.lastPoint.Perp() <= _radius; }
23 
24 private:
25  double _radius;
26 
27  ClassDef(StjTrackCutLastPoint,0)
28 };
29 
30 #endif // STJ_TRACK_CUT_LAST_POINT_H