File indexing completed on 2025-08-05 08:11:05
0001 #ifndef HijingShowerSize_h__
0002 #define HijingShowerSize_h__
0003
0004 #include <fun4all/SubsysReco.h>
0005 #include <map>
0006 #include <set>
0007 #include <string>
0008 #include <vector>
0009
0010
0011 #ifndef __CINT__
0012 #include <gsl/gsl_rng.h>
0013 #endif
0014
0015
0016 class Fun4AllHistoManager;
0017 class PHCompositeNode;
0018 class TFile;
0019 class TH1;
0020 class TH2;
0021 class TNtuple;
0022
0023 class HijingShowerSize: public SubsysReco
0024 {
0025 public:
0026
0027
0028 HijingShowerSize( const std::string &name = "HijingShowerSize", const std::string &filename = "HijingShowerSize.root" );
0029
0030
0031 virtual ~HijingShowerSize();
0032
0033
0034 int Init(PHCompositeNode *);
0035
0036
0037 int process_event(PHCompositeNode *);
0038
0039
0040 int End(PHCompositeNode *);
0041
0042 void AddNode(const std::string &name, const int detid=0);
0043
0044 protected:
0045 int nblocks;
0046 Fun4AllHistoManager *hm;
0047 std::vector<TH1 *> nhits;
0048 std::vector<TH1 *> eloss;
0049
0050 std::string _filename;
0051 std::set<std::string> _node_postfix;
0052 std::map<std::string, int> _detid;
0053 TNtuple *ntups;
0054 TNtuple *ntupe;
0055 TNtuple *ntup;
0056 TFile *outfile;
0057 unsigned int seed;
0058 #ifndef __CINT__
0059 gsl_rng *RandomGenerator;
0060 #endif
0061 };
0062
0063 #endif