16 for (
int i =0; i<2; i++)
18 set_x(i,g4hit->
get_x(i));
19 set_y(i,g4hit->
get_y(i));
20 set_z(i,g4hit->
get_z(i));
21 set_t(i,g4hit->
get_t(i));
30 for (
unsigned char ic = 0; ic < UCHAR_MAX; ic++)
44 os <<
"Class " << this->ClassName() << endl;
45 os <<
"x0: " << get_x(0)
46 <<
", y0: " << get_y(0)
47 <<
", z0: " << get_z(0)
48 <<
", t0: " << get_t(0) << endl;
49 os <<
"x1: " << get_x(1)
50 <<
", y1: " << get_y(1)
51 <<
", z1: " << get_z(1)
52 <<
", t1: " << get_t(1) << endl;
53 os <<
"trackid: " << get_trkid() <<
", edep: " << get_edep() << endl;
54 os <<
"strip_z_index: " << get_strip_z_index() <<
", strip_y_index: " << get_strip_y_index() << endl;
55 os <<
"ladder_z_index: " << get_ladder_z_index() <<
", ladder_phi_index: " << get_ladder_phi_index() << endl;
56 os <<
"stave_index: " << get_property_int(prop_stave_index) <<
" half_stave_index " << get_property_int(prop_half_stave_index) << endl;
57 os <<
"module_index: " << get_property_int(prop_module_index) <<
" chip_index " << get_property_int(prop_chip_index) << endl;
58 os <<
"layer id: " << get_layer() <<
", scint_id: " << get_scint_id() << endl;
59 os <<
"hit type: " << get_hit_type() << endl;
72 cout <<
"Reset not implemented by daughter class" << endl;
76 std::pair<const std::string,PHG4Hit::PROPERTY_TYPE>
83 case prop_light_yield:
113 case prop_path_length:
121 case prop_strip_z_index:
123 case prop_strip_y_index:
125 case prop_ladder_z_index:
127 case prop_ladder_phi_index:
137 case prop_stave_index:
139 case prop_half_stave_index:
141 case prop_module_index:
143 case prop_chip_index:
145 case prop_local_pos_x_0:
147 case prop_local_pos_y_0:
149 case prop_local_pos_z_0:
153 case prop_local_pos_x_1:
155 case prop_local_pos_y_1:
157 case prop_local_pos_z_1:
161 cout <<
"PHG4Hit::get_property_info - Fatal Error - unknown index " << prop_id << endl;
171 pair<const string,PROPERTY_TYPE> property_info = get_property_info(prop_id);
172 if (property_info.second != prop_type)
187 return "unsigned int";