Analysis Software
Documentation for sPHENIX simulation 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/TowerInfo.h>
4 
5 #include <iostream>
6 
7 using namespace std;
8 
10  : row(-1)
11  , column(-1)
12  , energy(0)
13 {
14 }
15 
16 
17 G4RootScintillatorTower::G4RootScintillatorTower(double towerenergy,int ieta, int iphi)
18  : row(iphi)
19  , column(ieta)
20  , energy(towerenergy)
21 {
22 
23 }
24 
26 {
27  row = -1;
28  column = -1;
29  energy = 0;
30 }
31 
33 {
34  return (row >= 0);
35 }
36 
37 void G4RootScintillatorTower::identify(std::ostream& os) const
38 {
39  os << "G4RootScintillatorTower: row: " << row << ", column: " << column
40  << " energy=" << energy << std::endl;
41 }