File indexing completed on 2025-08-05 08:12:35
0001 #ifndef __SPHANALYSIS_H__
0002 #define __SPHANALYSIS_H__
0003
0004 #include <fun4all/SubsysReco.h>
0005
0006 class TFile;
0007 class TNtuple;
0008 class TH1F;
0009 class TH1D;
0010 class TRandom;
0011 class RawCluster;
0012 class RawClusterContainer;
0013 class RawTowerContainer;
0014 class RawTowerGeomContainer;
0015
0016 class sPHAnalysis_calo: public SubsysReco {
0017
0018
0019 public:
0020
0021 sPHAnalysis_calo(const std::string &name = "sPHAnalysis_calo", const std::string &filename = "test.root");
0022 virtual ~sPHAnalysis_calo() {}
0023
0024 int Init(PHCompositeNode *topNode);
0025 int InitRun(PHCompositeNode *topNode);
0026 int process_event(PHCompositeNode *topNode);
0027 int End(PHCompositeNode *topNode);
0028
0029 void set_whattodo(int what) { _whattodo = what; }
0030
0031 protected:
0032
0033 int process_event_test(PHCompositeNode *topNode);
0034 int process_event_data(PHCompositeNode *topNode);
0035
0036 TFile* OutputNtupleFile;
0037 std::string OutputFileName;
0038
0039 TNtuple* ntp_notracking;
0040 TH1D* h_mult;
0041 TH1D* h_ecore;
0042
0043 TH1F* h_pedestal[256*96];
0044
0045 int EventNumber;
0046 int _whattodo;
0047
0048 TRandom* _rng;
0049
0050 };
0051
0052 #endif
0053
0054