StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRHICfPID.h
1 #ifndef StRHICfPID_hh
2 #define StRHICfPID_hh
3 
4 #include "StRoot/StRHICfUtil/StRHICfFunction.h"
5 #include "TMath.h"
6 
7 class StRHICfPID : public StRHICfFunction
8 {
9  public:
10  StRHICfPID();
11 
12  void init();
13  bool calculate();
14 
15  void setPlateEnergy(int tower, int layer, float val);
16 
17  int getPID(int tower);
18  float getL20(int tower);
19  float getL90(int tower);
20 
21  private:
22  float checkStep(int layer);
23  float layerSumEnergy(int tower, int layer);
24  float findRadiationLength(int tower, float ratio);
25  float calculateEquation(int tower, int layer, float sumE);
26 
27  int mPID[kRHICfNtower];
28  float mPlateE[kRHICfNtower][kRHICfNplate];
29  float mPlateSumE[kRHICfNtower];
30  float mL20[kRHICfNtower];
31  float mL90[kRHICfNtower];
32 
33  int mPlateIdxNum = kRHICfNplate - 1;
34  float mL20Const = 0.2;
35  float mL90Const = 0.9;
36 };
37 
38 #endif