Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:13:19

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