EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BEmcProfile.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file BEmcProfile.h
1 #include <string>
2 #include <vector> // for vector
3 
4 class EmcModule;
5 class TH1F;
6 
8 {
9  public:
10  BEmcProfile(const std::string& fname);
11  virtual ~BEmcProfile();
12 
13  float GetProb(std::vector<EmcModule>* plist, int NX, float en, float theta, float phi);
14  float GetTowerEnergy(int iy, int iz, std::vector<EmcModule>* plist, int nx);
15  void PredictEnergy(int ip, float en, float theta, float phi, float ddz, float ddy, float& ep, float& err);
16  float PredictEnergyR(float energy, float theta, float phi, float rr);
17  // float GetProbTest(std::vector<EmcModule>* plist, int NX, float en, float theta, float& test_rr, float& test_et, float& test_ep, float& test_err);
18  bool IsLoaded() { return bloaded; }
19  int Verbosity() const { return m_Verbosity; }
20  void Verbosity(const int i) { m_Verbosity = i; }
21 
22  protected:
23  bool bloaded;
24 
25  float thresh;
26  int nen;
27  int nth;
28 
29  float* energy_array;
30  float* theta_array;
31 
32  TH1F** hmean;
33  TH1F** hsigma;
34  TH1F* *hr4;
35 
36  private:
38 };