Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CaloAna.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CaloAna.h
1 #ifndef CALOANA_H__
2 #define CALOANA_H__
3 
4 #include <fun4all/SubsysReco.h>
5 
6 // Forward declarations
8 class PHCompositeNode;
9 class TFile;
10 class TNtuple;
11 
12 class CaloAna : public SubsysReco
13 {
14  public:
16  CaloAna(const std::string &name = "CaloAna", const std::string &fname = "MyNtuple.root");
17 
19  virtual ~CaloAna();
20 
22  int Init(PHCompositeNode *);
23 
26 
28  int End(PHCompositeNode *);
29 
34 
35  void Detector(const std::string &name) { detector = name; }
36 
37  protected:
40  Fun4AllHistoManager *hm = nullptr;
41  TFile *outfile = nullptr;
42  TNtuple *g4hitntuple = nullptr;
43  TNtuple *g4cellntuple = nullptr;
44  TNtuple *towerntuple = nullptr;
45  TNtuple *clusterntuple = nullptr;
46 };
47 
48 #endif