Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TowerInfov3.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TowerInfov3.h
1 #ifndef TOWERINFOV3_H
2 #define TOWERINFOV3_H
3 
4 #include "TowerInfo.h"
5 #include "TowerInfov2.h"
6 
7 #include <cstdint> // For int16_t
8 
9 class TowerInfov3: public TowerInfov2
10 {
11 public:
13  ~TowerInfov3() override {}
14 
15  void Reset() override;
16  void Clear(Option_t* = "") override;
17 
18  // Getter and setter for waveform
19  int get_nsample() const override {return nsample;}
20  int16_t get_waveform_value(int index) const override;
21  void set_waveform_value(int index, int16_t value) override;
22 
23  void copy_tower(TowerInfo* tower) override;
24 
25 private:
26  static const int nsample = 31;
27  int16_t _waveform[nsample] = {0}; // Initializes the entire array to zero
28 
30  // Inherit other methods and properties from TowerInfov2
31 };
32 
33 #endif