File indexing completed on 2025-08-05 08:16:05
0001 #ifndef CALOTEMP_H__
0002 #define CALOTEMP_H__
0003
0004 #include <fun4all/SubsysReco.h>
0005 #include <vector>
0006
0007 class Fun4AllHistoManager;
0008 class PHCompositeNode;
0009 class TFile;
0010 class TNtuple;
0011 class TTree;
0012 class TH2F;
0013 class TH1F;
0014 class TH1;
0015 class TProfile;
0016 class TProfile2D;
0017 class RunHeader;
0018
0019 class CaloTemp : public SubsysReco
0020 {
0021 public:
0022
0023 CaloTemp(const std::string &name = "CaloTemp", const std::string &fname = "MyNtuple.root");
0024
0025
0026 virtual ~CaloTemp();
0027
0028
0029 int Init(PHCompositeNode *);
0030 int InitRun(PHCompositeNode *);
0031
0032
0033 int End(PHCompositeNode *);
0034
0035 void Detector(const std::string &name) { detector = name; }
0036 void outputTempHists(const bool outputhist) { temphist = outputhist; }
0037 int getRunTime();
0038 int getTempHist();
0039
0040 protected:
0041 std::string detector;
0042 std::string outfilename;
0043 bool temphist;
0044 Fun4AllHistoManager *hm = nullptr;
0045 TFile *outfile = nullptr;
0046 TProfile2D* h_calo_temp = nullptr;
0047 TProfile2D* h_calo_temp2 = nullptr;
0048 RunHeader* runheader = nullptr;
0049 int runnumber;
0050 std::string runtime;
0051 TTree* tree = nullptr;
0052 int year, month, day, hour, minute, second;
0053
0054 };
0055
0056 #endif