Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-12-19 09:21:36

0001 #include "G4RootScintillatorSlat.h"
0002 
0003 #include <g4detectors/PHG4ScintillatorSlat.h>
0004 
0005 #include <iostream>
0006 
0007 G4RootScintillatorSlat::G4RootScintillatorSlat(const PHG4ScintillatorSlat& slat)
0008   : row(slat.get_row())
0009   , column(slat.get_column())
0010   , edep(slat.get_edep())
0011   , eion(slat.get_eion())
0012   , light_yield(slat.get_light_yield())
0013 {
0014 }
0015 
0016 void G4RootScintillatorSlat::Reset()
0017 {
0018   row = -1;
0019   column = -1;
0020   eion = 0;
0021   edep = 0;
0022   light_yield = 0;
0023 }
0024 
0025 int G4RootScintillatorSlat::isValid() const
0026 {
0027   return (row >= 0);
0028 }
0029 
0030 void G4RootScintillatorSlat::identify(std::ostream& os) const
0031 {
0032   os << "G4RootScintillatorSlat: row: " << row << ", column: " << column
0033      << " energy=" << edep << std::endl;
0034 }