ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4ScintillatorSlatv1.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4ScintillatorSlatv1.cc
2 
3 #include <g4main/PHG4HitDefs.h> // for keytype
4 
5 using namespace std;
6 
8  key(0xFFFFFFFF),
9  edep(0),
10  eion(0),
11  light_yield(0)
12 {}
13 
14 short
16 {
17  return (key&0xFFFF);
18 }
19 
20 short
22 {
23  return (key>>16);
24 }
25 
26 void
27 PHG4ScintillatorSlatv1::identify(std::ostream& os) const
28 {
29  os << "row " << get_row() << " ";
30  os << " column " << get_column() << " ";
31  os << " energy deposition " << get_edep();
32  os << " ionization energy " << get_eion();
33  os << " light yield " << get_light_yield();
34  os << endl;
35 }