Back to home page

sPhenix code displayed by LXR

 
 

    


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 // rootcint barfs with this header so we need to hide it
0011 #ifndef __CINT__
0012 #include <gsl/gsl_rng.h>
0013 #endif
0014 
0015 // Forward declerations
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   //! constructor
0028   HijingShowerSize( const std::string &name = "HijingShowerSize", const std::string &filename = "HijingShowerSize.root" );
0029 
0030   //! destructor
0031   virtual ~HijingShowerSize();
0032 
0033   //! full initialization
0034   int Init(PHCompositeNode *);
0035 
0036   //! event processing method
0037   int process_event(PHCompositeNode *);
0038 
0039   //! end of run method
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   //  std::vector<TH2 *> nhit_edep;
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