StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTrackCutDca.h
1 // -*- mode: c++;-*-
2 // $Id: StjTrackCutDca.h,v 1.2 2010/04/13 13:30:51 pibero Exp $
3 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4 #ifndef STJTRACKCUTDCA_H
5 #define STJTRACKCUTDCA_H
6 
7 #include "StjTrackCut.h"
8 
9 class StjTrackCutDca : public StjTrackCut {
10  // to reduce pile up tracks
11 
12 public:
13  StjTrackCutDca(double max = 3.0, double min = 0.0) : _max(max), _min(min) { }
14  virtual ~StjTrackCutDca() { }
15 
16  bool operator()(const StjTrack& track) const
17  {
18  if(track.Tdca > _max) return true;
19 
20  if(track.Tdca < _min) return true;
21 
22  return false;
23  }
24 
25 private:
26 
27  double _max;
28  double _min;
29 
30  ClassDef(StjTrackCutDca, 1)
31 
32 };
33 
34 #endif // STJTRACKCUTDCA_H