Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sPHAnalysis_calo.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file sPHAnalysis_calo.h
1 #ifndef __SPHANALYSIS_H__
2 #define __SPHANALYSIS_H__
3 
4 #include <fun4all/SubsysReco.h>
5 
6 class TFile;
7 class TNtuple;
8 class TH1F;
9 class TH1D;
10 class TRandom;
11 class RawCluster;
13 class RawTowerContainer;
15 
17 
18 
19 public:
20 
21  sPHAnalysis_calo(const std::string &name = "sPHAnalysis_calo", const std::string &filename = "test.root");
22  virtual ~sPHAnalysis_calo() {}
23 
24  int Init(PHCompositeNode *topNode);
25  int InitRun(PHCompositeNode *topNode);
26  int process_event(PHCompositeNode *topNode);
27  int End(PHCompositeNode *topNode);
28 
29  void set_whattodo(int what) { _whattodo = what; }
30 
31 protected:
32 
33  int process_event_test(PHCompositeNode *topNode);
34  int process_event_data(PHCompositeNode *topNode);
35 
38 
39  TNtuple* ntp_notracking;
40  TH1D* h_mult;
41  TH1D* h_ecore;
42 
43  TH1F* h_pedestal[256*96];
44 
46  int _whattodo;
47 
48  TRandom* _rng;
49 
50 };
51 
52 #endif
53 
54