ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ECCEhpDIRCFastPIDMap.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ECCEhpDIRCFastPIDMap.h
1 // $Id: $
2 
11 #ifndef ECCEHPDIRCFASTPIDMAP_H_
12 #define ECCEHPDIRCFASTPIDMAP_H_
13 
14 #include "ECCEFastPIDMap.h"
15 
16 #include <string>
17 
18 class TH2F;
19 class TF1;
20 
26 public:
28  virtual ~ECCEhpDIRCFastPIDMap();
29 
31  getFastSmearLogLikelihood(int truth_pid, const double momentum,
32  const double theta) const override;
33 
35  void ReadMap(const std::string &name);
36 
37  TH2F *GetTrrMap() { return fTrrMap; }
38 
39 private:
44  struct DrcPidInfo {
45  double probability[5] = {0};
46  double sigma[5] = {0};
47  double cangle = 0;
48  double cctr = 0;
49  };
50 
51  static int get_pid(int pdg);
53 
54  TH2F *fTrrMap = nullptr;
55  double fMass[5] = {0};
56  TF1 *fMs_mom = nullptr;
57  TF1 *fMs_thickness = nullptr;
58  double fMs_thickness_max = (0);
59 };
60 
61 #endif /* ECCEHPDIRCFASTPIDMAP_H_ */