StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRHICfFunction.h
1 /***************************************************************************
2  * Author: Seunghwan Lee
3  ***************************************************************************
4  *
5  * Description: RHICf Useful class for calibration and reconstruction
6  *
7  ***************************************************************************
8  * $Id: StRHICfFunction.h,v 1.0 2022/08/25 2:51:00 SeunghwanLee Exp $
9  * $Log: StRHICfFunction.h,v $
10  ***************************************************************************/
11 
12 #ifndef StRHICfFunction_H
13 #define StRHICfFunction_H
14 
15 #include <algorithm>
16 #include <iostream>
17 #include <string>
19 
20 using namespace std;
21 
22 enum RHICfRunType
23 {
24  kRHICfTL = 0,
25  kRHICfTS = 1,
26  kRHICfTOP = 2
27 };
28 
29 enum RHICfIsValue
30 {
31  kRHICfOk = true,
32  kRHICfFatal = false
33 };
34 
35 enum RHICfParticle
36 {
37  kRHICfPhoton = 0,
38  kRHICfHadron = 1
39 };
40 
42 {
43  public:
45  virtual ~StRHICfFunction();
46 
47  void setRunType(int type){mRunType = type;}
48  int getRunType(){return mRunType;}
49  int checkRunTypeForRHICf2017(int runNum);
50  int checkGSOBarSize(int tower); // 0 = small, 1 = large
51  float rescaleEnergyFactor(int tower, int layer);
52 
53  private:
54  int mRunType;
55 };
56 
57 #endif