Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HCalib.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file HCalib.h
1 #ifndef __HCALIB_H__
2 #define __HCALIB_H__
3 
4 #include <fun4all/SubsysReco.h>
5 #include <string>
6 
7 class PHCompositeNode;
10 class PHG4CellContainer;
12 class TFile;
13 class TH1F;
14 class RawTower;
15 
17 #include <calobase/RawTowerDefs.h>
18 #include <map>
19 
20 class HCalib : public SubsysReco
21 {
22  public:
23  typedef std::map<PHG4ScintillatorSlatDefs::keytype,TH1F *> SlatMap;
24  typedef std::map<RawTowerDefs::keytype, TH1F *> TowerMap;
25 
26  HCalib();
27  virtual ~HCalib() {}
28 
32  int genkey(const int detid, const int etabin, const int phibin);
33  enum detid { HCALIN=0, HCALOUT=1 };
34  protected:
35  bool is_proto;
36  void GetNodes(PHCompositeNode *topNode, const std::string &det = "None");
37 
42  float threshold;
43  TFile *outfile;
47  bool fill_slats;
48 };
49 
50 #endif