File indexing completed on 2025-08-06 08:19:16
0001 #include "G4RootScintillatorSlat.h"
0002
0003 #include <g4detectors/PHG4ScintillatorSlat.h>
0004
0005 #include <iostream>
0006
0007 using namespace std;
0008
0009 G4RootScintillatorSlat::G4RootScintillatorSlat()
0010 : row(-1)
0011 , column(-1)
0012 , edep(0)
0013 , eion(0)
0014 , light_yield(0)
0015 {
0016 }
0017
0018 G4RootScintillatorSlat::G4RootScintillatorSlat(const PHG4ScintillatorSlat& slat)
0019 : row(slat.get_row())
0020 , column(slat.get_column())
0021 , edep(slat.get_edep())
0022 , eion(slat.get_eion())
0023 , light_yield(slat.get_light_yield())
0024 {
0025 }
0026
0027 void G4RootScintillatorSlat::Reset()
0028 {
0029 row = -1;
0030 column = -1;
0031 eion = 0;
0032 edep = 0;
0033 light_yield = 0;
0034 }
0035
0036 int G4RootScintillatorSlat::isValid() const
0037 {
0038 return (row >= 0);
0039 }
0040
0041 void G4RootScintillatorSlat::identify(std::ostream& os) const
0042 {
0043 os << "G4RootScintillatorSlat: row: " << row << ", column: " << column
0044 << " energy=" << edep << std::endl;
0045 }