Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HijingShowerSize.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file HijingShowerSize.h
1 #ifndef HijingShowerSize_h__
2 #define HijingShowerSize_h__
3 
4 #include <fun4all/SubsysReco.h>
5 #include <map>
6 #include <set>
7 #include <string>
8 #include <vector>
9 
10 // rootcint barfs with this header so we need to hide it
11 #ifndef __CINT__
12 #include <gsl/gsl_rng.h>
13 #endif
14 
15 // Forward declerations
17 class PHCompositeNode;
18 class TFile;
19 class TH1;
20 class TH2;
21 class TNtuple;
22 
24 {
25  public:
26 
28  HijingShowerSize( const std::string &name = "HijingShowerSize", const std::string &filename = "HijingShowerSize.root" );
29 
31  virtual ~HijingShowerSize();
32 
34  int Init(PHCompositeNode *);
35 
38 
40  int End(PHCompositeNode *);
41 
42  void AddNode(const std::string &name, const int detid=0);
43 
44 protected:
45  int nblocks;
47  std::vector<TH1 *> nhits;
48  std::vector<TH1 *> eloss;
49  // std::vector<TH2 *> nhit_edep;
51  std::set<std::string> _node_postfix;
52  std::map<std::string, int> _detid;
53  TNtuple *ntups;
54  TNtuple *ntupe;
55  TNtuple *ntup;
56  TFile *outfile;
57  unsigned int seed;
58 #ifndef __CINT__
59  gsl_rng *RandomGenerator;
60 #endif
61 };
62 
63 #endif