Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrackerEventDisplay.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrackerEventDisplay.h
1 #ifndef EVENTDISPLAY_TRACKEREVENTDISPLAY_H
2 #define EVENTDISPLAY_TRACKEREVENTDISPLAY_H
3 
4 #include <fun4all/SubsysReco.h>
5 #include <trackbase/TrkrDefs.h>
6 
7 #include <string>
8 #include <set>
9 #include <fstream>
10 
11 class PHCompositeNode;
12 class TrkrCluster;
13 
15 {
16  public:
17  TrackerEventDisplay(const std::string &name = "TRACKEREVENTDISPLAY",
18  const std::string &filename = "./TrackerCosmicsDisplay_25926", //Don't include .root
19  const std::string &runnumber = "25926",
20  const std::string &date = "2023-08-23");
21  ~TrackerEventDisplay() override;
22 
23  int Init(PHCompositeNode *topNode) override;
24  int InitRun(PHCompositeNode *topNode) override;
25  int process_event(PHCompositeNode *topNode) override;
26  int End(PHCompositeNode *topNode) override;
27 
29  void makeHitsJson(bool value) { _hit = value; }
31 
32  private:
33  std::ofstream outdata;
34 
35  bool _hit;
36  bool _cluster;
37  unsigned int _ievent;
41 
42  double AdcClockPeriod = 53.0; // ns
43 
44  // output subroutines
45  void makeJsonFile(PHCompositeNode *topNode);
46 };
47 
48 #endif // EVENTDISPLAY_TRACKEREVENTDISPLAY_H