File indexing completed on 2025-08-03 08:18:02
0001 #ifndef EVENTDISPLAY_TRACKEREVENTDISPLAY_H
0002 #define EVENTDISPLAY_TRACKEREVENTDISPLAY_H
0003
0004 #include <trackbase/TrkrDefs.h>
0005
0006 #include <fun4all/SubsysReco.h>
0007
0008 #include <fstream>
0009 #include <set>
0010 #include <string>
0011
0012 class PHCompositeNode;
0013 class TrkrCluster;
0014
0015 class TrackerEventDisplay : public SubsysReco
0016 {
0017 public:
0018 TrackerEventDisplay(const std::string &name = "TRACKEREVENTDISPLAY",
0019 const std::string &filename = "./TrackerCosmicsDisplay_25926",
0020 const std::string &runnumber = "25926",
0021 const std::string &date = "2023-08-23");
0022 ~TrackerEventDisplay() override = default;
0023
0024 int Init(PHCompositeNode *topNode) override;
0025 int InitRun(PHCompositeNode *topNode) override;
0026 int process_event(PHCompositeNode *topNode) override;
0027 int End(PHCompositeNode *topNode) override;
0028
0029 void set_first_event(int value) { _ievent = value; }
0030 void makeHitsJson(bool value) { _hit = value; }
0031 void makeClustersJson(bool value) { _cluster = value; }
0032
0033 private:
0034 std::ofstream outdata;
0035
0036 bool _hit{true};
0037 bool _cluster{false};
0038 unsigned int _ievent{0};
0039 std::string _filename;
0040 std::string _runnumber;
0041 std::string _date;
0042
0043 double AdcClockPeriod{53.0};
0044
0045
0046 void makeJsonFile(PHCompositeNode *topNode);
0047 };
0048
0049 #endif