StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StuObjPidReport.h
1 /***************************************************************************
2  *
3  * $Id: StuObjPidReport.h,v 1.2 2003/09/02 17:58:09 perev Exp $
4  *
5  * Author:Aihong Tang. Kent State University
6  * Send questions to aihong@cnr.physics.kent.edu
7  ***************************************************************************
8  *
9  * An object to hold PID info. in a phase space so that it could be saved.
10  *
11  ***************************************************************************
12  *
13  * $Log: StuObjPidReport.h,v $
14  * Revision 1.2 2003/09/02 17:58:09 perev
15  * gcc 3.2 updates + WarnOff
16  *
17  * Revision 1.1 2000/08/15 23:04:18 aihong
18  * speed it up by looking up table
19  *
20  *
21  **************************************************************************/
22 #ifndef ROOT_StuObjPidReport
23 #define ROOT_StuObjPidReport
24 
25 #ifndef ROOT_TObject
26 //*KEEP, TObject.
27 #include "TObject.h"
28 //*KEND.
29 #endif
30 
31 #include <Stiostream.h>
32 #include "TNamed.h"
33 
34 
35 //a place holder for PID stuff.
36 
37 class StuObjPidReport : public TNamed {
38 
39  public:
40 
43  StuObjPidReport(Int_t id0,Int_t id1, Int_t id2,Double_t prob0, Double_t prob1, Double_t prob2,Bool_t extrap);
44 
45  virtual ~StuObjPidReport();
46 
47  void SetPID(Int_t* idAry);
48  void SetProb(Double_t* probAry);
49  void SetExtrap(Bool_t extrap);
50 
51  // following block for debugging purppoose
52  /*
53  void SetCharge(Int_t z);
54  void SetDca(Double_t dca);
55  void SetNHits(Int_t nhits);
56  void SetPt(Double_t pt);
57  void SetDedx(Double_t dedx);
58  void SetRig(Double_t rig);
59 
60 
61  Int_t GetCharge();
62  Double_t GetDca();
63  Int_t GetNHits();
64  Double_t GetPt();
65  Double_t GetDedx();
66  Double_t GetRig();
67  */
68 
69 
70 
71  Int_t* GetPIDArray();
72  Double_t* GetProbArray();
73  Bool_t GetExtrapTag();
74 
75  Int_t GetPID(Int_t idx);
76  Double_t GetProb(Int_t idx);
77 
78  private:
79 
80  Int_t PID[3];
81  Double_t mProb[3];
82  Bool_t mExtrap;
83 
84  Int_t mCharge;
85  Double_t mDca;
86  Int_t mNHits;
87  Double_t mPt;
88  Double_t mDedx;
89  Double_t mRig;
90 
91 
92  ClassDef(StuObjPidReport,1)
93 
94 
95 };
96 
97 #endif