Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TpcRawWriter.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TpcRawWriter.h
1 #ifndef TPC_TPCRAWWRITER_H
2 #define TPC_TPCRAWWRITER_H
3 
4 #include <fun4all/SubsysReco.h>
8 
9 #include <map>
10 #include <vector>
11 #include <string>
12 
13 class PHCompositeNode;
14 class TrkrHitSet;
21 
22 //typedef std::pair<int, int> iphiz;
23 //typedef std::pair<double, iphiz> ihit;
24 typedef std::pair<unsigned short, unsigned short> iphiz;
25 typedef std::pair<unsigned short, iphiz> ihit;
26 
27 class TpcRawWriter : public SubsysReco
28 {
29  public:
30  TpcRawWriter(const std::string &name = "TpcRawWriter");
31  ~TpcRawWriter() override = default;
32 
33  int InitRun(PHCompositeNode *topNode) override;
34  int process_event(PHCompositeNode *topNode) override;
35  int End(PHCompositeNode *topNode) override;
36 
37  void set_sector_fiducial_cut(const double cut){SectorFiducialCut = cut; }
38  void set_do_hit_association(bool do_assoc){do_hit_assoc = do_assoc;}
39  void set_do_wedge_emulation(bool do_wedge){ do_wedge_emulation = do_wedge;}
40  void set_do_sequential(bool do_seq){ do_sequential = do_seq;}
44 
45  private:
46 
51  // ActsSurfaceMaps *m_surfMaps = nullptr;
53  bool do_hit_assoc = true;
54  bool do_wedge_emulation = true;
55  bool do_sequential = false;
56  double pedestal = 74.4;
57  double SectorFiducialCut = 0.5;
58  unsigned short MaxClusterHalfSizePhi = 3;
59  unsigned short MaxClusterHalfSizeZ = 5;
60 
62 
63  double m_drift_velocity_scale = 1.0;
64 
65  // TPC shaping offset correction parameters
66  // From Tony Frawley May 13, 2021
67  // double par0_neg = 0.0503;
68  // double par0_pos = -0.0503;
69 
70 };
71 
72 #endif