Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:18:04

0001 #include "G4RootScintillatorTower.h"
0002 
0003 // #include <calobase/TowerInfo.h>
0004 
0005 #include <iostream>
0006 
0007 using namespace std;
0008 
0009 G4RootScintillatorTower::G4RootScintillatorTower()
0010   : row(-1)
0011   , column(-1)
0012   , energy(0)
0013 {
0014 }
0015 
0016 G4RootScintillatorTower::G4RootScintillatorTower(double towerenergy, int ieta, int iphi)
0017   : row(iphi)
0018   , column(ieta)
0019   , energy(towerenergy)
0020 {
0021 }
0022 
0023 void G4RootScintillatorTower::Reset()
0024 {
0025   row = -1;
0026   column = -1;
0027   energy = 0;
0028 }
0029 
0030 int G4RootScintillatorTower::isValid() const
0031 {
0032   return (row >= 0);
0033 }
0034 
0035 void G4RootScintillatorTower::identify(std::ostream& os) const
0036 {
0037   os << "G4RootScintillatorTower: row: " << row << ", column: " << column
0038      << " energy=" << energy << std::endl;
0039 }