File indexing completed on 2025-12-19 09:21:36
0001 #include "G4RootScintillatorTower.h"
0002
0003 #include <iostream>
0004
0005 G4RootScintillatorTower::G4RootScintillatorTower(double towerenergy, int ieta, int iphi)
0006 : row(iphi)
0007 , column(ieta)
0008 , energy(towerenergy)
0009 {
0010 }
0011
0012 void G4RootScintillatorTower::Reset()
0013 {
0014 row = -1;
0015 column = -1;
0016 energy = 0;
0017 }
0018
0019 int G4RootScintillatorTower::isValid() const
0020 {
0021 return (row >= 0);
0022 }
0023
0024 void G4RootScintillatorTower::identify(std::ostream& os) const
0025 {
0026 os << "G4RootScintillatorTower: row: " << row << ", column: " << column
0027 << " energy=" << energy << std::endl;
0028 }