Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TowerInfo.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TowerInfo.h
1 #ifndef TOWERINFO_H
2 #define TOWERINFO_H
3 
4 #include <phool/PHObject.h>
5 
6 #include <cmath>
7 
8 class TowerInfo : public PHObject
9 {
10  public:
11  TowerInfo() = default;
12  ~TowerInfo() override = default;
13  void Reset() override { return; }
14 
15  virtual void set_time(short /*t*/) { return; }
16  virtual short get_time() { return -1; }
17  virtual void set_energy(float /*energy*/) { return; }
18  virtual float get_energy() { return NAN; }
19  virtual void copy_tower(TowerInfo* /*tower*/) { return; }
20  // methods in v2
21  virtual void set_time_float(float /*t*/) { return; }
22  virtual float get_time_float() { return NAN; }
23  virtual void set_chi2(float /*chi2*/) { return; }
24  virtual float get_chi2() { return NAN; }
25  virtual void set_pedestal(float /*pedestal*/) { return; }
26  virtual float get_pedestal() { return NAN; }
27  virtual void set_isHot(bool /*isHot*/) { return; }
28  virtual bool get_isHot() const { return false; }
29  virtual void set_isBadTime(bool /*isBadTime*/) { return; }
30  virtual bool get_isBadTime() const { return false; }
31  virtual void set_isBadChi2(bool /*isBadChi2*/) { return; }
32  virtual bool get_isBadChi2() const { return false; }
33  virtual void set_isNotInstr(bool /*isNotInstr*/) { return; }
34  virtual bool get_isNotInstr() const { return false; }
35  virtual void set_isNoCalib(bool /*isNotInstr*/) { return; }
36  virtual bool get_isNoCalib() const { return false; }
37  virtual bool get_isGood() const { return true; }
38  virtual uint8_t get_status() const { return 0; }
39  virtual void set_status(uint8_t /*status*/) { return; }
40  // methods in v3
41  virtual int get_nsample() const {return 0;}
42  virtual int16_t get_waveform_value(int /*index*/) const {return -1;}
43  virtual void set_waveform_value(int /*index*/, int16_t /*value*/) {return;}
44 
45  private:
47 };
48 
49 #endif