Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:14:17

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef UEVSETACENTRALITY_H
0004 #define UEVSETACENTRALITY_H
0005 
0006 #include <fun4all/SubsysReco.h>
0007 
0008 #include <string>
0009 
0010 class PHCompositeNode;
0011 class TH1F;
0012 class TH2F;
0013 
0014 class UEvsEtaCentrality : public SubsysReco
0015 {
0016  public:
0017 
0018   UEvsEtaCentrality(const std::string &name = "UEvsEtaCentrality", const std::string &outputfilename = "UEvsEtaCentrality.root");
0019 
0020   ~UEvsEtaCentrality() override;
0021 
0022   /** Called during initialization.
0023       Typically this is where you can book histograms, and e.g.
0024       register them to Fun4AllServer (so they can be output to file
0025       using Fun4AllServer::dumpHistos() method).
0026    */
0027   int Init(PHCompositeNode *topNode) override;
0028 
0029   /** Called for first event when run number is known.
0030       Typically this is where you may want to fetch data from
0031       database, because you know the run number. A place
0032       to book histograms which have to know the run number.
0033    */
0034   int InitRun(PHCompositeNode *topNode) override;
0035 
0036   /** Called for each event.
0037       This is where you do the real work.
0038    */
0039   int process_event(PHCompositeNode *topNode) override;
0040   
0041   /// Clean up internals after each event.
0042   int ResetEvent(PHCompositeNode *topNode) override;
0043 
0044   /// Called at the end of each run.
0045   int EndRun(const int runnumber) override;
0046 
0047   /// Called at the end of all processing.
0048   int End(PHCompositeNode *topNode) override;
0049 
0050   /// Reset
0051   int Reset(PHCompositeNode * /*topNode*/) override;
0052 
0053   void Print(const std::string &what = "ALL") const override;
0054 
0055  private:
0056 
0057   std::string m_outputFileName;
0058 
0059   TH2F *hv2_cent = nullptr;
0060   TH2F *hPsi2_cent = nullptr;
0061   
0062   TH2F *hUEiHcalEta_Cent0_20 = nullptr;
0063   TH2F *hUEoHcalEta_Cent0_20 = nullptr;
0064   TH2F *hUEemcalEta_Cent0_20 = nullptr;
0065   
0066   TH2F *hUEiHcalEta_Cent20_50 = nullptr;
0067   TH2F *hUEoHcalEta_Cent20_50 = nullptr;
0068   TH2F *hUEemcalEta_Cent20_50 = nullptr;
0069   
0070   TH2F *hUEiHcalEta_Cent50_100 = nullptr;
0071   TH2F *hUEoHcalEta_Cent50_100 = nullptr;
0072   TH2F *hUEemcalEta_Cent50_100 = nullptr;
0073 };
0074 
0075 #endif // UEVSETACENTRALITY_H