StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHbtAihongPid.h
1 /***************************************************************************
2  *
3  * $Id: StHbtAihongPid.h,v 1.3 2003/01/31 19:44:00 magestro Exp $
4  *
5  * Author: Frank Laue, Ohio State, laue@bnl.gov
6  ***************************************************************************
7  *
8  * Description: part of STAR HBT Framework: StHbtMaker package
9  * Class to get Aihongs propability id
10  *
11  ***************************************************************************
12  *
13  **************************************************************************/
14 
15 #ifndef StHbtAihongPid_h
16 #define StHbtAihongPid_h
17 
18 #ifdef __ROOT__
19 #include "StChain.h"
20 #endif
21 
23 
24 
26  public:
27  static StHbtAihongPid* Instance(const char* fileName="PIDTable.root");
28  void setPidTable(const char* fileName);
29  void updateEvent(int refMult);
30  void updateTrack(int charge, double p, double eta, int nHitsDedx, double dedx);
31  StuProbabilityPidAlgorithm* aihongPid(int refMult, int charge, double p, double eta, int nHitsDedx, double dedx);
32  StuProbabilityPidAlgorithm* aihongPid(int charge, double p, double eta, int nHitsDedx, double dedx);
33  StuProbabilityPidAlgorithm* aihongPid();
34 
35  friend class nobody;
36  protected:
37  StHbtAihongPid(const char* fileName);
38  virtual ~StHbtAihongPid() { /* no-op */ }
39  private:
40  static StHbtAihongPid* _instance;
41  StuProbabilityPidAlgorithm* mAihongPid;
42  double mAihongCentrality;
43 
44 #ifdef __ROOT__
45  ClassDef(StHbtAihongPid,0)
46 #endif
47 };
48 
49 #endif
50