12 vector<double>tof_face;
13 locGeometry->
Get(
"//section/composition/posXYZ[@volume='ForwardTOF']/@X_Y_Z",tof_face);
14 vector<double>tof_plane0;
15 locGeometry->
Get(
"//composition[@name='ForwardTOF']/posXYZ[@volume='forwardTOF']/@X_Y_Z/plane[@value='0']", tof_plane0);
16 vector<double>tof_plane1;
17 locGeometry->
Get(
"//composition[@name='ForwardTOF']/posXYZ[@volume='forwardTOF']/@X_Y_Z/plane[@value='1']", tof_plane1);
25 jerr <<
"Problem loading TOF Geometry!" << endl;
27 map<string,double> paddle_params;
29 jerr <<
"Problem loading TOF Geometry!" << endl;
33 BARWIDTH = paddle_params[
"BARWIDTH"];
62 if (bar>=FirstShortBar && bar<=LastShortBar && end != 0) y *= -1.0;
71 if(
y < (YPOS.at(1) - BARWIDTH/2.0))
73 if(
y > (YPOS.at(NINSTALLBARS) + BARWIDTH/2.0))
89 if (fabs(
y - YPOS.at(jm - 1)) < fabs(
y - YPOS.at(jm)))
91 if (fabs(
y - YPOS.at(jm + 1)) < fabs(
y - YPOS.at(jm)))
bool Get(string xpath, string &sval) const
float CenterHPlane
center z position of Vertical Plane
float LONGBARLENGTH
bar number of last short bar of same type north
float CenterVPlane
width of the scintillator bars
float BARWIDTH
middle of the short scintillators
int FirstShortBar
number of bars vertically = NLONGBARS + NSHORTBARS/2
int NENDS
number of scintillator layers
DTOFGeometry(const DGeometry *locGeometry)
int NLONGBARS
maximum number of ends that are read out (should be 2!)
bool GetTOFPaddlePerpPositions(vector< double > &y_tof) const
float HALFLONGBARLENGTH
length of the long scintillators
float bar2y(int bar, int end=0) const
convert bar number to the position of the center of the bar in local coordinations ...
int NSHORTBARS
number of long scintillator bars
bool GetTOFZ(vector< double > &z_tof) const
z-location of front face of each of TOF in cm
float HALFSHORTBARLENGTH
length of the short scintillators
bool GetTOFPaddleParameters(map< string, double > &paddle_params) const
int NINSTALLBARS
number of long scintillator bars
float CenterMPlane
center z position of Horizontal Plane
int y2bar(double y) const
> convert local position y to bar number (where y is the position pe...
float SHORTBARLENGTH
middle of the long scintillators
vector< double > YPOS
center z position between the two Plane
int LastShortBar
bar number of first short bar