Back to home page

sPhenix code displayed by LXR

 
 

    


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

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