StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
adamsTrackCut.h
1  /***************************************************************************
2  *
3  *
4  *
5  * Author: Frank Laue, Ohio State, laue@mps.ohio-state.edu
6  ***************************************************************************
7  *
8  * Description: part of STAR HBT Framework: StHbtMaker package
9  * a particle cut that uses NSigma cut below certain P threshhold
10  # and a PID probability above it
11  *
12  ***************************************************************************
13  *
14  *
15  *
16  **************************************************************************/
17 
18 #ifndef adamsTrackCut_hh
19 #define adamsTrackCut_hh
20 
21 
22 //#ifndef StMaker_H
23 //#include "StMaker.h"
24 //#endif
25 
26 #include "Stsstream.h"
27 #include "StHbtMaker/Base/StHbtTrackCut.h"
28 #include "StHbtMaker/Cut/franksTrackCut.h"
29 
31 {
32 
33  public:
34 
35  adamsTrackCut();
37  ~adamsTrackCut();
38 
39  virtual bool Pass(const StHbtTrack*);
40 
41  virtual StHbtString Report();
42 
43  void SetPIDPThreshold(const float&);
44 
45  adamsTrackCut* Clone();
46 
47  std::ostringstream* finalReport() const;
48 
49  private: // here are the quantities I want to cut on...
50  float mPIDPThreshold;
51 
52  protected:
53  long mNTracksPassed;
54  long mNTracksFailed;
55 
56 #ifdef __ROOT__
57  ClassDef(adamsTrackCut, 1)
58 #endif
59 };
60 
61 inline void adamsTrackCut::SetPIDPThreshold(const float& pidpt){mPIDPThreshold = pidpt;}
62 inline adamsTrackCut* adamsTrackCut::Clone() { adamsTrackCut* c = new adamsTrackCut(*this); return c;}
63 
64 #endif