Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TpcPrototypeClusterizer.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TpcPrototypeClusterizer.h
1 #ifndef TPC_TpcPrototypeClusterizer_H
2 #define TPC_TpcPrototypeClusterizer_H
3 
4 #include <fun4all/SubsysReco.h>
5 
6 #include <string>
7 #include <vector>
8 
9 class PHCompositeNode;
13 
15 {
16  public:
17  TpcPrototypeClusterizer(const std::string &name = "TpcPrototypeClusterizer");
19 
20  int InitRun(PHCompositeNode *topNode);
21  int process_event(PHCompositeNode *topNode);
22 
23  private:
24  bool is_local_maximum(int phi, int z, std::vector<std::vector<double>> &adcval);
25  void get_cluster(int phibin, int zbin, int &phiup, int &phidown, int &zup, int &zdown, std::vector<std::vector<double>> &adcval);
26 
30 
32  double pedestal;
33 
36  int NZBinsMax;
37  int NZBinsMin;
38 };
39 
40 #endif