EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4RootScintillatorTower.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4RootScintillatorTower.cc
2 
3 #include <calobase/RawTower.h>
4 
5 #include <iostream>
6 
7 using namespace std;
8 
10  : row(-1)
11  , column(-1)
12  , energy(0)
13 {
14 }
15 
17  : row(tower.get_binphi())
18  , column(tower.get_bineta())
19  , energy(tower.get_energy())
20 {
21 }
22 
24 {
25  row = -1;
26  column = -1;
27  energy = 0;
28 }
29 
31 {
32  return (row >= 0);
33 }
34 
35 void G4RootScintillatorTower::identify(std::ostream& os) const
36 {
37  os << "G4RootScintillatorTower: row: " << row << ", column: " << column
38  << " energy=" << energy << std::endl;
39 }