Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CaloTowerBuilder.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CaloTowerBuilder.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef CALOTOWERBUILDER_H
4 #define CALOTOWERBUILDER_H
5 
7 #include "CaloTowerDefs.h"
8 
9 #include <fun4all/SubsysReco.h>
10 
11 #include <limits>
12 #include <string>
13 
15 class PHCompositeNode;
16 class TowerInfoContainer;
18 
19 
21 {
22  public:
23  explicit CaloTowerBuilder(const std::string &name = "CaloTowerBuilder");
24  ~CaloTowerBuilder() override;
25 
26  int InitRun(PHCompositeNode *topNode) override;
27  int process_event(PHCompositeNode *topNode) override;
28  void CreateNodeTree(PHCompositeNode *topNode);
29 
31  {
32  m_dettype = dettype;
33  return;
34  }
35 
37  {
38  m_buildertype = buildertype;
39  return;
40  }
41 
42  void set_nsamples(int _nsamples)
43  {
44  m_nsamples = _nsamples;
45  return;
46  }
47  void set_dataflag(bool flag)
48  {
49  m_isdata = flag;
50  return;
51  }
52 
54  {
55  _processingtype = processingtype;
56  }
57 
58  void set_softwarezerosuppression(bool usezerosuppression, int softwarezerosuppression)
59  {
60  _nsoftwarezerosuppression = softwarezerosuppression;
61  _bdosoftwarezerosuppression = usezerosuppression;
62  }
63 
65  {
67  return;
68  }
69 
70  private:
71  int process_sim();
74  TowerInfoContainer *m_CalowaveformContainer {nullptr}; //waveform from simulation
75  bool m_isdata {true};
79  int m_nsamples {16};
80  int m_nchannels {192};
90 };
91 
92 #endif // CALOTOWERBUILDER_H