File indexing completed on 2025-08-06 08:18:48
0001 #ifndef QA_TPC_TPCLASERQA_H
0002 #define QA_TPC_TPCLASERQA_H
0003
0004 #include <fun4all/SubsysReco.h>
0005
0006 #include <string>
0007
0008 class PHCompositeNode;
0009 class TH1;
0010 class TH2;
0011
0012 class TpcLaserQA : public SubsysReco
0013 {
0014 public:
0015 explicit TpcLaserQA(const std::string& name = "TpcLaserQA");
0016
0017 ~TpcLaserQA() override = default;
0018
0019 int InitRun(PHCompositeNode* topNode) override;
0020 int process_event(PHCompositeNode* topNode) override;
0021
0022 private:
0023 void createHistos();
0024 std::string getHistoPrefix() const;
0025
0026 double rBinEdges[5] = {0.0, 0.256, 0.504, 0.752, 1.0};
0027
0028 TH1* m_nLaserEvents{nullptr};
0029 TH2* m_TPCWheel[2]{nullptr};
0030
0031 TH1* m_nLaserClusters[2]{nullptr};
0032 TH2* m_saturation[2]{nullptr};
0033
0034 TH1* m_sample_R1[2][12]{{nullptr}};
0035 TH1* m_sample_R2[2][12]{{nullptr}};
0036 TH1* m_sample_R3[2][12]{{nullptr}};
0037 };
0038
0039 #endif