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 //,fSeparator(0)
0017 {}
0018
0019 rep_bin1D(float aXmin,float aXmax,float aVmin,float aVal)
0020 :m_x_min(aXmin),m_x_max(aXmax)
0021 ,m_v_min(aVmin),m_val(aVal)
0022 ,m_ratio(0)
0023 //,fSeparator(0)
0024 {}
0025 public:
0026 rep_bin1D(const rep_bin1D& a_from)
0027 :m_x_min(a_from.m_x_min),m_x_max(a_from.m_x_max)
0028 ,m_v_min(a_from.m_v_min),m_val(a_from.m_val)
0029 ,m_ratio(a_from.m_ratio)
0030 //,fSeparator(0)
0031 {}
0032 rep_bin1D& operator=(const rep_bin1D& a_from){
0033 m_x_min = a_from.m_x_min;
0034 m_x_max = a_from.m_x_max;
0035 m_v_min = a_from.m_v_min;
0036 m_val = a_from.m_val;
0037 m_ratio = a_from.m_ratio;
0038 return *this;
0039 }
0040 public:
0041 float m_x_min;
0042 float m_x_max;
0043 float m_v_min;
0044 float m_val;
0045 float m_ratio;
0046 //SoSeparator* fSeparator;
0047 };
0048
0049 class rep_bin2D {
0050 public:
0051 rep_bin2D()
0052 :m_x_min(0),m_x_max(0)
0053 ,m_y_min(0),m_y_max(0)
0054 ,m_val(0),m_ratio(0)
0055 ,fI(0),fJ(0){}
0056
0057 rep_bin2D(float aXmin,float aXmax,
0058 float aYmin,float aYmax,
0059 float aVal,int aI,int aJ)
0060 :m_x_min(aXmin),m_x_max(aXmax)
0061 ,m_y_min(aYmin),m_y_max(aYmax)
0062 ,m_val(aVal)
0063 ,m_ratio(0)
0064 ,fI(aI),fJ(aJ)
0065 {}
0066 public:
0067 float m_x_min;
0068 float m_x_max;
0069 float m_y_min;
0070 float m_y_max;
0071 float m_val;
0072 float m_ratio;
0073 int fI;
0074 int fJ;
0075 };
0076
0077 class rep_top_face2D {
0078 public:
0079 rep_top_face2D()
0080 :m_x_min(0),m_x_max(0)
0081 ,m_y_min(0),m_y_max(0)
0082 ,m_v1(0),m_v2(0),m_v3(0),m_v4(0)
0083 ,m_ratio(0)
0084 {}
0085
0086 rep_top_face2D(float a_xmin,float a_xmax,
0087 float a_ymin,float a_ymax,
0088 float a_v1,float a_v2,float a_v3,float a_v4)
0089 :m_x_min(a_xmin),m_x_max(a_xmax)
0090 ,m_y_min(a_ymin),m_y_max(a_ymax)
0091 ,m_v1(a_v1),m_v2(a_v2),m_v3(a_v3),m_v4(a_v4)
0092 ,m_ratio(0)
0093 {}
0094
0095 rep_top_face2D(const rep_top_face2D& a_from)
0096 :m_x_min(a_from.m_x_min),m_x_max(a_from.m_x_max)
0097 ,m_y_min(a_from.m_y_min),m_y_max(a_from.m_y_max)
0098 ,m_v1(a_from.m_v1),m_v2(a_from.m_v2),m_v3(a_from.m_v3),m_v4(a_from.m_v4)
0099 ,m_ratio(a_from.m_ratio)
0100 {}
0101
0102 rep_top_face2D& operator=(const rep_top_face2D& a_from){
0103 m_x_min = a_from.m_x_min;
0104 m_x_max = a_from.m_x_max;
0105 m_y_min = a_from.m_y_min;
0106 m_y_max = a_from.m_y_max;
0107 m_v1 = a_from.m_v1;
0108 m_v2 = a_from.m_v2;
0109 m_v3 = a_from.m_v3;
0110 m_v4 = a_from.m_v4;
0111 m_ratio = a_from.m_ratio;
0112 return *this;
0113 }
0114 public:
0115 float m_x_min;
0116 float m_x_max;
0117 float m_y_min;
0118 float m_y_max;
0119 float m_v1;
0120 float m_v2;
0121 float m_v3;
0122 float m_v4;
0123 float m_ratio;
0124 };
0125
0126 class rep_box {
0127 public:
0128 rep_box(float a_pos,float a_width,bool a_log)
0129 :m_pos(a_pos),m_width(a_width),m_log(a_log){}
0130
0131 rep_box(const rep_box& a_from)
0132 :m_pos(a_from.m_pos),m_width(a_from.m_width),m_log(a_from.m_log){}
0133
0134 rep_box& operator=(const rep_box& a_from) {
0135 m_pos = a_from.m_pos;
0136 m_width = a_from.m_width;
0137 m_log = a_from.m_log;
0138 return *this;
0139 }
0140 public:
0141 float m_pos;
0142 float m_width;
0143 bool m_log;
0144 };
0145
0146 }}
0147
0148 #endif