Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TPCHitTrackDisplay.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TPCHitTrackDisplay.h
1 
2 
3 #ifndef __TPCHitTrackDisplay_H__
4 #define __TPCHitTrackDisplay_H__
5 
6 #include <fun4all/SubsysReco.h>
7 #include <string>
8 #include <vector>
9 #include <fstream>
10 
11 
12 //Forward declerations
13 class PHCompositeNode;
14 class TFile;
15 class TTree;
16 class RawTowerContainer;
18 class TH2F;
19 class TProfile;
21 
22 
26 
30 
31 // Writes json file to be used to display an event with:
32 // https://www.sphenix.bnl.gov/edisplay/
34 {
35  public:
36  //Default constructor
37  TPCHitTrackDisplay(const std::string &name="TPCHitTrackDisplay"/*, bool &tpcRaw=True*/);
38 
39  //Initialization, called for initialization
40  int Init(PHCompositeNode *);
41 
42  int InitRun(PHCompositeNode *);
43 
44  //Process Event, called for each event
46 
47  //End, write and close files
48  int EndRun(const int);
49 
50  void set_pdgcode(const int thispdgcode) { _pdgcode = thispdgcode; }
51 
52  // set the ADC cut for displaying trackless clusters
53  void setCutADC(float value) { m_cut_ADC = value; }
54 
55  // Boolean for whether or not to include clusters without an associted track above a certain ADC value
57 
58  private:
59 
60  float m_cut_ADC;
62 
63  //Event counter
64  int _event;
65  int _pdgcode;
67 
68  //bool isRawData;
69 
70  //User modules
72  //void TPCRawOut(PHCompositeNode*);
73 
74 };
75 
76 #endif //* __TPCHitTrackDisplay_H__ *//