Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ShowerSize.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file ShowerSize.h
1 #ifndef ShowerSize_h__
2 #define ShowerSize_h__
3 
4 #include <fun4all/SubsysReco.h>
5 #include <map>
6 #include <set>
7 #include <string>
8 #include <vector>
9 
10 // Forward declerations
12 class PHCompositeNode;
13 class TFile;
14 class TH1;
15 class TH2;
16 class TNtuple;
17 
18 class ShowerSize: public SubsysReco
19 {
20  public:
21 
23  ShowerSize( const std::string &name = "ShowerSize", const std::string &filename = "ShowerSize.root" );
24 
26  virtual ~ShowerSize();
27 
29  int Init(PHCompositeNode *);
30 
33 
35  int End(PHCompositeNode *);
36 
37  void AddNode(const std::string &name, const int detid=0);
38 
39 protected:
40  int nblocks;
42  std::vector<TH1 *> nhits;
43  std::vector<TH1 *> eloss;
44  // std::vector<TH2 *> nhit_edep;
46  std::set<std::string> _node_postfix;
47  std::map<std::string, int> _detid;
48  TNtuple *ntups;
49  TNtuple *ntupe;
50  TNtuple *ntup;
51  TFile *outfile;
52 };
53 
54 #endif