File indexing completed on 2025-08-06 08:19:16
0001 #ifndef G4HISTOS_G4ROOTRAWTOWER_H
0002 #define G4HISTOS_G4ROOTRAWTOWER_H
0003
0004 #include <phool/PHObject.h>
0005
0006 #include <iostream> // for cout, ostream
0007 #include <limits>
0008
0009 class G4RootRawTower : public PHObject
0010 {
0011 public:
0012 G4RootRawTower() = default;
0013 G4RootRawTower(const float ieta, const float iphi, const float e);
0014 ~G4RootRawTower() override {}
0015
0016 void Reset() override;
0017 int isValid() const override;
0018 void identify(std::ostream& os = std::cout) const override;
0019
0020 float get_eta() const { return eta; }
0021 float get_phi() const { return phi; }
0022 float get_energy() const { return energy; }
0023
0024 protected:
0025 float eta{std::numeric_limits<float>::quiet_NaN()};
0026 float phi{std::numeric_limits<float>::quiet_NaN()};
0027 float energy{std::numeric_limits<float>::quiet_NaN()};
0028
0029 ClassDefOverride(G4RootRawTower, 1)
0030 };
0031
0032 #endif