EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TPCDataStreamEmulator.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TPCDataStreamEmulator.h
1 // $Id: $
2 
11 #ifndef TPCDATASTREAMEMULATOR_H_
12 #define TPCDATASTREAMEMULATOR_H_
13 
14 #include <fun4all/SubsysReco.h>
15 
16 #include <vector>
17 
18 class PHCompositeNode;
20 class TH1;
21 class TH2;
22 
27 {
28  public:
30  unsigned int minLayer,
31  unsigned int m_maxLayer,
32  const std::string &outputfilenamebase = "TPCDataStreamEmulator");
33  virtual ~TPCDataStreamEmulator();
34 
35  int Init(PHCompositeNode *topNode);
36  int InitRun(PHCompositeNode *topNode);
37  int process_event(PHCompositeNode *topNode);
38  int End(PHCompositeNode *topNode);
39 
40  void maxLayer(int maxLayer)
41  {
42  m_maxLayer = maxLayer;
43  }
44 
45  void minLayer(int minLayer)
46  {
48  }
49 
50  void outputFileNameBase(const std::string &outputFileNameBase)
51  {
53  }
54 
56  {
58  }
59 
60  private:
61 #if !defined(__CINT__) || defined(__CLING__)
62 
64  int writeWavelet(int layer, int side, int phibin, int hittime, const std::vector<unsigned int> &wavelet);
65 
67 
68  std::string m_outputFileNameBase;
69 
72 
74 
77 
78  // histograms
80  TH1 *m_hWavelet;
81  TH1 *m_hNChEta;
89 
90 #endif // #if !defined(__CINT__) || defined(__CLING__)
91 };
92 
93 #endif /* TPCDATASTREAMEMULATOR_H_ */