File indexing completed on 2025-12-17 09:20:28
0001
0002
0003 #ifndef TPC_HITS_H
0004 #define TPC_HITS_H
0005
0006 #include "TPCMap.h"
0007 #include "TPC_RawHit.h"
0008
0009 #include <trackbase/TrkrDefs.h>
0010 #include <trackbase/TrkrHitSet.h>
0011
0012 #include <fun4all/SubsysReco.h>
0013
0014 #include <memory>
0015 #include <string>
0016
0017 class PHCompositeNode;
0018 class Fun4AllHistoManager;
0019 class TH2;
0020
0021 class tpc_hits : public SubsysReco
0022 {
0023 public:
0024 tpc_hits(const std::string &name = "tpc_hits");
0025
0026 ~tpc_hits() override;
0027
0028 int Init(PHCompositeNode *topNode) override;
0029
0030
0031
0032
0033
0034
0035 int InitRun(PHCompositeNode *topNode) override;
0036
0037
0038
0039
0040 int process_event(PHCompositeNode *topNode) override;
0041
0042
0043 int End(PHCompositeNode *topNode) override;
0044
0045 private:
0046 static const int layercount {16};
0047 static const int layeroffset {7 + 16};
0048 Fun4AllHistoManager *hm {nullptr};
0049 TH2 *_h_hit_XY {nullptr};
0050 TrkrHitSet *m_hitset[layercount] = {nullptr};
0051
0052 int starting_BCO {-1};
0053 int rollover_value {0};
0054 int current_BCOBIN {0};
0055
0056 TPCMap M;
0057
0058 std::string _filename {"./outputfile.root"};
0059 };
0060
0061 #endif