File indexing completed on 2025-08-05 08:20:41
0001 #ifndef TPC_TpcPrototypeClusterizer_H
0002 #define TPC_TpcPrototypeClusterizer_H
0003
0004 #include <fun4all/SubsysReco.h>
0005
0006 #include <string>
0007 #include <vector>
0008
0009 class PHCompositeNode;
0010 class TrkrHitSetContainer;
0011 class TrkrClusterContainer;
0012 class TrkrClusterHitAssoc;
0013
0014 class TpcPrototypeClusterizer : public SubsysReco
0015 {
0016 public:
0017 TpcPrototypeClusterizer(const std::string &name = "TpcPrototypeClusterizer");
0018 virtual ~TpcPrototypeClusterizer() {}
0019
0020 int InitRun(PHCompositeNode *topNode);
0021 int process_event(PHCompositeNode *topNode);
0022
0023 private:
0024 bool is_local_maximum(int phi, int z, std::vector<std::vector<double>> &adcval);
0025 void get_cluster(int phibin, int zbin, int &phiup, int &phidown, int &zup, int &zdown, std::vector<std::vector<double>> &adcval);
0026
0027 TrkrHitSetContainer *m_hits;
0028 TrkrClusterContainer *m_clusterlist;
0029 TrkrClusterHitAssoc *m_clusterhitassoc;
0030
0031 double zz_shaping_correction;
0032 double pedestal;
0033
0034 int NPhiBinsMax;
0035 int NPhiBinsMin;
0036 int NZBinsMax;
0037 int NZBinsMin;
0038 };
0039
0040 #endif