Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:11:14

0001 #ifndef JETCALIBRATION_H
0002 #define JETCALIBRATION_H
0003 
0004 #include <fun4all/SubsysReco.h>
0005 #include <string>
0006 #include <array>
0007 #include "TMath.h"
0008 #include "FindDijets.h"
0009 
0010 class Fun4AllHistoManager;
0011 class PHCompositeNode;
0012 class JetContainer;
0013 
0014 class PHG4HitContainer;
0015 class JetCalibration : public SubsysReco
0016 {
0017  public:
0018 
0019   JetCalibration(const std::string &name = "JetCalibration", const std::string &outfilename = "trees_trigger.root");
0020 
0021   virtual ~JetCalibration();
0022 
0023   int Init(PHCompositeNode *topNode) override;
0024 
0025   int InitRun(PHCompositeNode *topNode) override;
0026 
0027   int process_event(PHCompositeNode *topNode) override;
0028 
0029   bool isEM(int pid);
0030   double getDr(struct jetty jet1, struct jetty jet2);
0031   void GetNodes (PHCompositeNode *topNode);
0032 
0033   int ResetEvent(PHCompositeNode *topNode) override;
0034 
0035   int EndRun(const int runnumber) override;
0036 
0037   int End(PHCompositeNode *topNode) override;
0038 
0039   int Reset(PHCompositeNode * /*topNode*/) override;
0040 
0041  private:
0042 
0043   int _verbosity;
0044   std::string _foutname;
0045   int _i_event;
0046   Fun4AllHistoManager *hm{nullptr};
0047 
0048   std::map<int, PHG4HitContainer*> m_HitContainerMap;
0049 
0050 };
0051 
0052 #endif