ECCE @ EIC 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:
38  std::string detector;
39  std::string outfilename;
41  TFile *outfile;
42  TNtuple *g4hitntuple;
43  TNtuple *g4cellntuple;
44  TNtuple *towerntuple;
45  TNtuple *clusterntuple;
46 };
47 
48 #endif