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