Warning, /include/Geant4/tools/sg/rep is written in an unsupported language. File is not indexed.
0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003
0004 #ifndef tools_sg_rep
0005 #define tools_sg_rep
0006
0007 namespace tools {
0008 namespace sg {
0009
0010 class rep_bin1D {
0011 public:
0012 rep_bin1D()
0013 :m_x_min(0),m_x_max(0)
0014 ,m_v_min(0),m_val(0)
0015 ,m_ratio(0)
0016 {}
0017
0018 rep_bin1D(float aXmin,float aXmax,float aVmin,float aVal)
0019 :m_x_min(aXmin),m_x_max(aXmax)
0020 ,m_v_min(aVmin),m_val(aVal)
0021 ,m_ratio(0)
0022 {}
0023 public:
0024 rep_bin1D(const rep_bin1D& a_from)
0025 :m_x_min(a_from.m_x_min),m_x_max(a_from.m_x_max)
0026 ,m_v_min(a_from.m_v_min),m_val(a_from.m_val)
0027 ,m_ratio(a_from.m_ratio)
0028 {}
0029 rep_bin1D& operator=(const rep_bin1D& a_from){
0030 m_x_min = a_from.m_x_min;
0031 m_x_max = a_from.m_x_max;
0032 m_v_min = a_from.m_v_min;
0033 m_val = a_from.m_val;
0034 m_ratio = a_from.m_ratio;
0035 return *this;
0036 }
0037 public:
0038 float m_x_min;
0039 float m_x_max;
0040 float m_v_min;
0041 float m_val;
0042 float m_ratio;
0043 };
0044
0045 class rep_bin2D {
0046 public:
0047 rep_bin2D()
0048 :m_x_min(0),m_x_max(0)
0049 ,m_y_min(0),m_y_max(0)
0050 ,m_val(0),m_ratio(0)
0051 ,fI(0),fJ(0){}
0052
0053 rep_bin2D(float aXmin,float aXmax,
0054 float aYmin,float aYmax,
0055 float aVal,int aI,int aJ)
0056 :m_x_min(aXmin),m_x_max(aXmax)
0057 ,m_y_min(aYmin),m_y_max(aYmax)
0058 ,m_val(aVal)
0059 ,m_ratio(0)
0060 ,fI(aI),fJ(aJ)
0061 {}
0062 public:
0063 float m_x_min;
0064 float m_x_max;
0065 float m_y_min;
0066 float m_y_max;
0067 float m_val;
0068 float m_ratio;
0069 int fI;
0070 int fJ;
0071 };
0072
0073 class rep_top_face2D {
0074 public:
0075 rep_top_face2D()
0076 :m_x_min(0),m_x_max(0)
0077 ,m_y_min(0),m_y_max(0)
0078 ,m_v1(0),m_v2(0),m_v3(0),m_v4(0)
0079 ,m_ratio(0)
0080 {}
0081
0082 rep_top_face2D(float a_xmin,float a_xmax,
0083 float a_ymin,float a_ymax,
0084 float a_v1,float a_v2,float a_v3,float a_v4)
0085 :m_x_min(a_xmin),m_x_max(a_xmax)
0086 ,m_y_min(a_ymin),m_y_max(a_ymax)
0087 ,m_v1(a_v1),m_v2(a_v2),m_v3(a_v3),m_v4(a_v4)
0088 ,m_ratio(0)
0089 {}
0090
0091 rep_top_face2D(const rep_top_face2D& a_from)
0092 :m_x_min(a_from.m_x_min),m_x_max(a_from.m_x_max)
0093 ,m_y_min(a_from.m_y_min),m_y_max(a_from.m_y_max)
0094 ,m_v1(a_from.m_v1),m_v2(a_from.m_v2),m_v3(a_from.m_v3),m_v4(a_from.m_v4)
0095 ,m_ratio(a_from.m_ratio)
0096 {}
0097
0098 rep_top_face2D& operator=(const rep_top_face2D& a_from){
0099 m_x_min = a_from.m_x_min;
0100 m_x_max = a_from.m_x_max;
0101 m_y_min = a_from.m_y_min;
0102 m_y_max = a_from.m_y_max;
0103 m_v1 = a_from.m_v1;
0104 m_v2 = a_from.m_v2;
0105 m_v3 = a_from.m_v3;
0106 m_v4 = a_from.m_v4;
0107 m_ratio = a_from.m_ratio;
0108 return *this;
0109 }
0110 public:
0111 float m_x_min;
0112 float m_x_max;
0113 float m_y_min;
0114 float m_y_max;
0115 float m_v1;
0116 float m_v2;
0117 float m_v3;
0118 float m_v4;
0119 float m_ratio;
0120 };
0121
0122 class rep_box {
0123 public:
0124 rep_box(float a_pos,float a_width,bool a_log)
0125 :m_pos(a_pos),m_width(a_width),m_log(a_log){}
0126
0127 rep_box(const rep_box& a_from)
0128 :m_pos(a_from.m_pos),m_width(a_from.m_width),m_log(a_from.m_log){}
0129
0130 rep_box& operator=(const rep_box& a_from) {
0131 m_pos = a_from.m_pos;
0132 m_width = a_from.m_width;
0133 m_log = a_from.m_log;
0134 return *this;
0135 }
0136 public:
0137 float m_pos;
0138 float m_width;
0139 bool m_log;
0140 };
0141
0142 }}
0143
0144 #endif