Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HCALAnalysis.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file HCALAnalysis.h
1 #ifndef __HCALANALYSIS_H__
2 #define __HCALANALYSIS_H__
3 
4 #include <fun4all/SubsysReco.h>
5 #include <string>
6 
7 class PHCompositeNode;
8 class PHG4HitContainer;
9 class TFile;
10 class TNtuple;
11 
12 class HCALAnalysis: public SubsysReco
13 {
14  public:
15  HCALAnalysis(const char *outfile = "ntuple.root");
16  virtual ~HCALAnalysis() {}
17 
18  // For this analysis we only use Init, process_event;
19  int Init (PHCompositeNode *topNode);
20  int process_event(PHCompositeNode *topNode);
21  int End (PHCompositeNode *topNode);
22 
23  protected:
24 
25  const char *OutFileName;
26 
27  void GetNodes(PHCompositeNode *topNode);
28 
44 
45  TFile *outputfile;
46  TNtuple *calenergy;
47 
48 };
49 
50 #endif /* __HCALANALYSIS_H__ */