Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TpcSimpleClusterizer.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TpcSimpleClusterizer.h
1 #ifndef TPC_TPCSIMPLECLUSTERIZER_H
2 #define TPC_TPCSIMPLECLUSTERIZER_H
3 
4 #include <fun4all/SubsysReco.h>
7 
8 #include <map>
9 #include <vector>
10 #include <string>
11 
12 class PHCompositeNode;
13 class TrkrHitSet;
19 
20 //typedef std::pair<int, int> iphiz;
21 //typedef std::pair<double, iphiz> ihit;
22 typedef std::pair<unsigned short, unsigned short> iphiz;
23 typedef std::pair<unsigned short, iphiz> ihit;
24 
26 {
27  public:
28  TpcSimpleClusterizer(const std::string &name = "TpcSimpleClusterizer");
29  ~TpcSimpleClusterizer() override = default;
30 
31  int InitRun(PHCompositeNode *topNode) override;
32  int process_event(PHCompositeNode *topNode) override;
33  int End(PHCompositeNode *topNode) override;
34 
35  void set_sector_fiducial_cut(const double cut){SectorFiducialCut = cut; }
36  void set_do_hit_association(bool do_assoc){do_hit_assoc = do_assoc;}
37 
38  private:
39  bool is_in_sector_boundary(int phibin, int sector, PHG4TpcCylinderGeom *layergeom) const;
40 
45 
46  bool do_hit_assoc = true;
47  double pedestal = 74.4;
48  double SectorFiducialCut = 0.5;
49 
50  // TPC shaping offset correction parameters
51  // From Tony Frawley May 13, 2021
52  double par0_neg = 0.0503;
53  double par0_pos = -0.0503;
54 
55 };
56 
57 #endif