File indexing completed on 2025-08-05 08:14:51
0001
0002
0003 #ifndef JETHISTOGRAMMER_H
0004 #define JETHISTOGRAMMER_H
0005
0006 #include <fun4all/SubsysReco.h>
0007
0008 #include <string>
0009 #include <TH1F.h>
0010
0011 class PHCompositeNode;
0012 class TH1F;
0013 const int nEtaBins = 4;
0014
0015 class jetHistogrammer : public SubsysReco
0016 {
0017 public:
0018
0019 jetHistogrammer(const std::string &name = "jetHistogrammer", const std::string &fileout = "jetHistogrammer.root");
0020
0021 ~jetHistogrammer() override;
0022
0023
0024
0025
0026
0027
0028 int Init(PHCompositeNode *topNode) override;
0029
0030
0031
0032
0033
0034
0035 int InitRun(PHCompositeNode *topNode) override;
0036
0037
0038
0039
0040 int process_event(PHCompositeNode *topNode) override;
0041
0042
0043 int ResetEvent(PHCompositeNode *topNode) override;
0044
0045
0046 int EndRun(const int runnumber) override;
0047
0048
0049 int End(PHCompositeNode *topNode) override;
0050
0051
0052 int Reset(PHCompositeNode * ) override;
0053
0054 void Print(const std::string &what = "ALL") const override;
0055
0056 private:
0057
0058 TH1F *ptGJet[nEtaBins];
0059 TH1F *ptPJet;
0060 std::string m_outputFilename;
0061
0062 float etaBins[nEtaBins] = {0,0.7,1.1,1.5};
0063
0064 int getEtaBin(float eta);
0065 };
0066
0067 #endif