Analysis Software
Documentation for sPHENIX simulation 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  explicit BEmcProfile(const std::string& fname);
11 
12  // delete copy ctor and assignment operator (cppcheck)
13  explicit BEmcProfile(const BEmcProfile&) = delete;
14  BEmcProfile& operator=(const BEmcProfile&) = delete;
15 
16  virtual ~BEmcProfile();
17 
18  float GetProb(std::vector<EmcModule>* plist, int NX, float en, float theta, float phi);
19  float GetTowerEnergy(int iy, int iz, std::vector<EmcModule>* plist, int nx);
20  void PredictEnergy(int ip, float en, float theta, float phi, float ddz, float ddy, float& ep, float& err);
21  float PredictEnergyR(float energy, float theta, float phi, float rr);
22  // float GetProbTest(std::vector<EmcModule>* plist, int NX, float en, float theta, float& test_rr, float& test_et, float& test_ep, float& test_err);
23  bool IsLoaded() { return bloaded; }
24  int Verbosity() const { return m_Verbosity; }
25  void Verbosity(const int i) { m_Verbosity = i; }
26 
27  protected:
28  bool bloaded;
29 
30  float thresh;
31  int nen;
32  int nth;
33 
34  float* energy_array;
35  float* theta_array;
36 
37  TH1F** hmean;
38  TH1F** hsigma;
39  TH1F** hr4;
40 
41  private:
43 };