Geant4 Cross Reference

Cross-Referencing   Geant4
Geant4/examples/advanced/xray_fluorescence/include/XrayFluoMercuryDetectorConstruction.hh

Version: [ ReleaseNotes ] [ 1.0 ] [ 1.1 ] [ 2.0 ] [ 3.0 ] [ 3.1 ] [ 3.2 ] [ 4.0 ] [ 4.0.p1 ] [ 4.0.p2 ] [ 4.1 ] [ 4.1.p1 ] [ 5.0 ] [ 5.0.p1 ] [ 5.1 ] [ 5.1.p1 ] [ 5.2 ] [ 5.2.p1 ] [ 5.2.p2 ] [ 6.0 ] [ 6.0.p1 ] [ 6.1 ] [ 6.2 ] [ 6.2.p1 ] [ 6.2.p2 ] [ 7.0 ] [ 7.0.p1 ] [ 7.1 ] [ 7.1.p1 ] [ 8.0 ] [ 8.0.p1 ] [ 8.1 ] [ 8.1.p1 ] [ 8.1.p2 ] [ 8.2 ] [ 8.2.p1 ] [ 8.3 ] [ 8.3.p1 ] [ 8.3.p2 ] [ 9.0 ] [ 9.0.p1 ] [ 9.0.p2 ] [ 9.1 ] [ 9.1.p1 ] [ 9.1.p2 ] [ 9.1.p3 ] [ 9.2 ] [ 9.2.p1 ] [ 9.2.p2 ] [ 9.2.p3 ] [ 9.2.p4 ] [ 9.3 ] [ 9.3.p1 ] [ 9.3.p2 ] [ 9.4 ] [ 9.4.p1 ] [ 9.4.p2 ] [ 9.4.p3 ] [ 9.4.p4 ] [ 9.5 ] [ 9.5.p1 ] [ 9.5.p2 ] [ 9.6 ] [ 9.6.p1 ] [ 9.6.p2 ] [ 9.6.p3 ] [ 9.6.p4 ] [ 10.0 ] [ 10.0.p1 ] [ 10.0.p2 ] [ 10.0.p3 ] [ 10.0.p4 ] [ 10.1 ] [ 10.1.p1 ] [ 10.1.p2 ] [ 10.1.p3 ] [ 10.2 ] [ 10.2.p1 ] [ 10.2.p2 ] [ 10.2.p3 ] [ 10.3 ] [ 10.3.p1 ] [ 10.3.p2 ] [ 10.3.p3 ] [ 10.4 ] [ 10.4.p1 ] [ 10.4.p2 ] [ 10.4.p3 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /examples/advanced/xray_fluorescence/include/XrayFluoMercuryDetectorConstruction.hh (Version 11.3.0) and /examples/advanced/xray_fluorescence/include/XrayFluoMercuryDetectorConstruction.hh (Version 10.1.p2)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                         3 // * License and Disclaimer                                           *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th      5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
  6 // * the Geant4 Collaboration.  It is provided      6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
  7 // * conditions of the Geant4 Software License      7 // * conditions of the Geant4 Software License,  included in the file *
  8 // * LICENSE and available at  http://cern.ch/      8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
  9 // * include a list of copyright holders.           9 // * include a list of copyright holders.                             *
 10 // *                                               10 // *                                                                  *
 11 // * Neither the authors of this software syst     11 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     12 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     13 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     14 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file      15 // * use.  Please see the license in the file  LICENSE  and URL above *
 16 // * for the full disclaimer and the limitatio     16 // * for the full disclaimer and the limitation of liability.         *
 17 // *                                               17 // *                                                                  *
 18 // * This  code  implementation is the result      18 // * This  code  implementation is the result of  the  scientific and *
 19 // * technical work of the GEANT4 collaboratio     19 // * technical work of the GEANT4 collaboration.                      *
 20 // * By using,  copying,  modifying or  distri     20 // * By using,  copying,  modifying or  distributing the software (or *
 21 // * any work based  on the software)  you  ag     21 // * any work based  on the software)  you  agree  to acknowledge its *
 22 // * use  in  resulting  scientific  publicati     22 // * use  in  resulting  scientific  publications,  and indicate your *
 23 // * acceptance of all terms of the Geant4 Sof     23 // * acceptance of all terms of the Geant4 Software license.          *
 24 // *******************************************     24 // ********************************************************************
 25 //                                                 25 //
 26 //                                                 26 //
                                                   >>  27 // $Id: XrayFluoMercuryDetectorConstruction.hh
                                                   >>  28 // GEANT4 tag $Name:XrayFluo-V05-02-06 
 27 //                                                 29 //
 28 // Author: Alfonso Mantero (Alfonso.Mantero@ge     30 // Author: Alfonso Mantero (Alfonso.Mantero@ge.infn.it)
 29 //                                                 31 //
 30 // History:                                        32 // History:
 31 // -----------                                     33 // -----------
 32 //                                                 34 //
 33 //  08 Sep 2003  Alfonso Mantero created           35 //  08 Sep 2003  Alfonso Mantero created
 34 //                                                 36 //
 35 // -------------------------------------------     37 // -------------------------------------------------------------------
 36                                                    38 
 37 #ifndef XrayFluoMercuryDetectorConstruction_hh     39 #ifndef XrayFluoMercuryDetectorConstruction_hh
 38 #define XrayFluoMercuryDetectorConstruction_hh     40 #define XrayFluoMercuryDetectorConstruction_hh 1
 39                                                    41 
 40 #include "globals.hh"                              42 #include "globals.hh"
 41 #include "G4VUserDetectorConstruction.hh"          43 #include "G4VUserDetectorConstruction.hh"
 42 #include "G4RotationMatrix.hh"                     44 #include "G4RotationMatrix.hh"
 43 #include "G4Cache.hh"                              45 #include "G4Cache.hh"
 44 #include "XrayFluoSiLiDetectorType.hh"             46 #include "XrayFluoSiLiDetectorType.hh"
 45 #include "XrayFluoHPGeDetectorType.hh"             47 #include "XrayFluoHPGeDetectorType.hh"
 46 #include "XrayFluoSD.hh"                           48 #include "XrayFluoSD.hh"
 47                                                    49 
 48 class G4Box;                                       50 class G4Box;
 49 class G4Tubs;                                      51 class G4Tubs;
 50 class G4Sphere;                                    52 class G4Sphere;
 51 class G4LogicalVolume;                             53 class G4LogicalVolume;
 52 class G4VPhysicalVolume;                           54 class G4VPhysicalVolume;
 53 class G4Material;                                  55 class G4Material;
 54 class XrayFluoMercuryDetectorMessenger;            56 class XrayFluoMercuryDetectorMessenger;
 55 class XrayFluoNistMaterials;                       57 class XrayFluoNistMaterials;
 56                                                    58 
 57 //class XrayFluoSD;                                59 //class XrayFluoSD;
 58 //class XrayFluoVDetectorType;                     60 //class XrayFluoVDetectorType;
 59                                                    61 
 60 //....oooOO0OOooo........oooOO0OOooo........oo     62 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
 61                                                    63 
 62 class XrayFluoMercuryDetectorConstruction : pu     64 class XrayFluoMercuryDetectorConstruction : public G4VUserDetectorConstruction
 63 {                                                  65 {
 64 public:                                            66 public:
 65                                                    67   
 66                                                    68 
 67   ~XrayFluoMercuryDetectorConstruction();          69   ~XrayFluoMercuryDetectorConstruction();
 68                                                    70   
 69 public:                                            71 public:
 70                                                    72   
 71   G4VPhysicalVolume* Construct();                  73   G4VPhysicalVolume* Construct();
 72                                                    74  
 73   void ConstructSDandField();                      75   void ConstructSDandField();
 74                                                    76   
 75   void UpdateGeometry();                           77   void UpdateGeometry();
 76                                                    78 
 77                                                    79 
 78   void SetMercuryMaterial(G4String newMaterial     80   void SetMercuryMaterial(G4String newMaterial);
 79                                                    81 
 80   void SetDetectorType(G4String type);             82   void SetDetectorType(G4String type);
 81                                                    83 
 82   static XrayFluoMercuryDetectorConstruction*      84   static XrayFluoMercuryDetectorConstruction* GetInstance();
 83                                                    85 
 84   inline void SetOribitHeight(G4double size)       86   inline void SetOribitHeight(G4double size)
 85   {distDe = size;};                                87   {distDe = size;};
 86   inline void SetLatitude(G4double lat)            88   inline void SetLatitude(G4double lat)
 87   {ThetaHPGe = 180.* CLHEP::deg - lat;};           89   {ThetaHPGe = 180.* CLHEP::deg - lat;};
 88                                                    90 
 89   void PrintApparateParameters();                  91   void PrintApparateParameters(); 
 90                                                    92 
 91   XrayFluoVDetectorType* GetDetectorType() con     93   XrayFluoVDetectorType* GetDetectorType() const;
 92                                                    94 
 93                                                    95 
 94   G4double GetWorldSizeZ() const     {return W     96   G4double GetWorldSizeZ() const     {return WorldSizeZ;}; 
 95   G4double GetWorldSizeXY() const         {ret     97   G4double GetWorldSizeXY() const         {return WorldSizeXY;};
 96                                                    98   
 97   G4double GetDeviceThickness() const     {ret     99   G4double GetDeviceThickness() const     {return DeviceThickness;}; 
 98   G4double GetDeviceSizeX() const         {ret    100   G4double GetDeviceSizeX() const         {return DeviceSizeX;};
 99   G4double GetDeviceSizeY() const         {ret    101   G4double GetDeviceSizeY() const         {return DeviceSizeY;};
100   G4double GetPixelSizeXY() const         {ret    102   G4double GetPixelSizeXY() const         {return PixelSizeXY;};
101   G4double GetContactSizeXY() const         {r    103   G4double GetContactSizeXY() const         {return ContactSizeXY;};
102                                                   104 
103   G4int GetNbOfPixels() const  {return NbOfPix    105   G4int GetNbOfPixels() const  {return NbOfPixels;}; //mandatory for XrayFluoSD 
104   G4int GetNbOfPixelRows() const    {return Nb    106   G4int GetNbOfPixelRows() const    {return NbOfPixelRows;}; 
105   G4int GetNbOfPixelColumns() const        {re    107   G4int GetNbOfPixelColumns() const        {return NbOfPixelColumns;}; 
106                                                   108   
107   G4Material* GetOhmicPosMaterial() const  {re    109   G4Material* GetOhmicPosMaterial() const  {return OhmicPosMaterial;};
108   G4double    GetOhmicPosThickness() const {re    110   G4double    GetOhmicPosThickness() const {return OhmicPosThickness;};      
109                                                   111   
110   G4Material* GetOhmicNegMaterial() const  {re    112   G4Material* GetOhmicNegMaterial() const  {return OhmicNegMaterial;};
111   G4double    GetOhmicNegThickness() const {re    113   G4double    GetOhmicNegThickness() const {return OhmicNegThickness;};      
112                                                   114   
113   const G4VPhysicalVolume* GetphysiWorld() con    115   const G4VPhysicalVolume* GetphysiWorld() const {return physiWorld;};  
114   const G4VPhysicalVolume* GetHPGe() const        116   const G4VPhysicalVolume* GetHPGe() const        {return physiHPGe;};
115   const G4VPhysicalVolume* GetMercury() const     117   const G4VPhysicalVolume* GetMercury() const    {return physiMercury;};
116                                                   118 
117   const G4VPhysicalVolume* GetphysiPixel() con    119   const G4VPhysicalVolume* GetphysiPixel() const {return physiPixel;};           
118   const G4VPhysicalVolume* GetOhmicPos() const    120   const G4VPhysicalVolume* GetOhmicPos() const    {return physiOhmicPos;};
119   const G4VPhysicalVolume* GetOhmicNeg() const    121   const G4VPhysicalVolume* GetOhmicNeg() const     {return physiOhmicNeg;};
120                                                   122 
121   const G4VPhysicalVolume* GetOptic() const       123   const G4VPhysicalVolume* GetOptic() const    {return physiOptic;};
122                                                   124   
123 private:                                          125 private:
124                                                   126   
125   XrayFluoMercuryDetectorConstruction();          127   XrayFluoMercuryDetectorConstruction();
126                                                   128 
127   static XrayFluoMercuryDetectorConstruction*     129   static XrayFluoMercuryDetectorConstruction* instance;
128                                                   130 
129   XrayFluoVDetectorType* detectorType;            131   XrayFluoVDetectorType* detectorType;
130                                                   132 
131   G4bool mercuryGranularity;                      133   G4bool mercuryGranularity;
132                                                   134 
133   G4double           DeviceSizeX;                 135   G4double           DeviceSizeX;
134   G4double           DeviceSizeY;                 136   G4double           DeviceSizeY;
135   G4double           DeviceThickness;             137   G4double           DeviceThickness;
136                                                   138   
137   G4Box*             solidWorld;    //pointer     139   G4Box*             solidWorld;    //pointer to the solid    World 
138   G4LogicalVolume*   logicWorld;    //pointer     140   G4LogicalVolume*   logicWorld;    //pointer to the logical  World
139   G4VPhysicalVolume* physiWorld;    //pointer     141   G4VPhysicalVolume* physiWorld;    //pointer to the physical World
140                                                   142   
141   G4Box*             solidHPGe; //pointer to t    143   G4Box*             solidHPGe; //pointer to the solid    Sensor
142   G4LogicalVolume*   logicHPGe; //pointer to t    144   G4LogicalVolume*   logicHPGe; //pointer to the logical  Sensor
143   G4VPhysicalVolume* physiHPGe; //pointer to t    145   G4VPhysicalVolume* physiHPGe; //pointer to the physical Sensor
144                                                   146  
145   G4Box*             solidScreen; //pointer to    147   G4Box*             solidScreen; //pointer to the solid    Screen
146   G4LogicalVolume*   logicScreen; //pointer to    148   G4LogicalVolume*   logicScreen; //pointer to the logical  Screen
147   G4VPhysicalVolume* physiScreen; //pointer to    149   G4VPhysicalVolume* physiScreen; //pointer to the physical Screen
148                                                   150  
149   G4Sphere*             solidMercury;    //poi    151   G4Sphere*             solidMercury;    //pointer to the solid    Mercury
150   G4LogicalVolume*   logicMercury;    //pointe    152   G4LogicalVolume*   logicMercury;    //pointer to the logical  Mercury
151   G4VPhysicalVolume* physiMercury;    //pointe    153   G4VPhysicalVolume* physiMercury;    //pointer to the physical Mercury
152                                                   154   
153   //  G4Tubs*             solidDia1; //pointer    155   //  G4Tubs*             solidDia1; //pointer to the solid   Diaphragm
154   //  G4LogicalVolume*   logicDia1; //pointer     156   //  G4LogicalVolume*   logicDia1; //pointer to the logical  Diaphragm
155   //  G4VPhysicalVolume* physiDia1; //pointer     157   //  G4VPhysicalVolume* physiDia1; //pointer to the physical Diaphragm 
156                                                   158   
157   //  G4Tubs*             solidDia3; //pointer    159   //  G4Tubs*             solidDia3; //pointer to the solid   Diaphragm
158   //  G4LogicalVolume*   logicDia3; //pointer     160   //  G4LogicalVolume*   logicDia3; //pointer to the logical  Diaphragm
159   //  G4VPhysicalVolume* physiDia3; //pointer     161   //  G4VPhysicalVolume* physiDia3; //pointer to the physical Diaphragm  
160                                                   162   
161   G4Box*             solidOhmicPos;               163   G4Box*             solidOhmicPos;
162   G4LogicalVolume*   logicOhmicPos;               164   G4LogicalVolume*   logicOhmicPos; 
163   G4VPhysicalVolume* physiOhmicPos;               165   G4VPhysicalVolume* physiOhmicPos; 
164                                                   166   
165   G4Box*             solidOhmicNeg;               167   G4Box*             solidOhmicNeg;
166   G4LogicalVolume*   logicOhmicNeg;               168   G4LogicalVolume*   logicOhmicNeg; 
167   G4VPhysicalVolume* physiOhmicNeg;               169   G4VPhysicalVolume* physiOhmicNeg;     
168                                                   170   
169   G4Box*             solidPixel;                  171   G4Box*             solidPixel;   
170   G4LogicalVolume*   logicPixel;                  172   G4LogicalVolume*   logicPixel;  
171   G4VPhysicalVolume* physiPixel;                  173   G4VPhysicalVolume* physiPixel;    
172                                                   174  
173   G4Tubs*            solidOptic;                  175   G4Tubs*            solidOptic;
174   G4LogicalVolume*   logicOptic;                  176   G4LogicalVolume*   logicOptic;
175   G4VPhysicalVolume* physiOptic;                  177   G4VPhysicalVolume* physiOptic;
176                                                   178 
177   G4LogicalVolume*   logicGrain;                  179   G4LogicalVolume*   logicGrain;
178                                                   180 
179   //materials management                          181   //materials management
180   XrayFluoNistMaterials* materials;               182   XrayFluoNistMaterials* materials;
181                                                   183 
182   G4Material*          screenMaterial;            184   G4Material*          screenMaterial;
183   G4Material*        OhmicPosMaterial;            185   G4Material*        OhmicPosMaterial;
184   G4Material*        OhmicNegMaterial;            186   G4Material*        OhmicNegMaterial; 
185   G4Material*           pixelMaterial;            187   G4Material*           pixelMaterial;
186   G4Material*         mercuryMaterial;            188   G4Material*         mercuryMaterial;
187   //  G4Material*        Dia3Material;            189   //  G4Material*        Dia3Material;
188   G4Material*         defaultMaterial;            190   G4Material*         defaultMaterial;
189                                                   191 
190   //apparate parameters                           192   //apparate parameters
191                                                   193 
192   G4double           OhmicPosThickness;           194   G4double           OhmicPosThickness;
193   G4double           OhmicNegThickness;           195   G4double           OhmicNegThickness;
194                                                   196   
195   G4double           opticDia;                    197   G4double           opticDia;
196   G4double           opticThickness;              198   G4double           opticThickness;
197                                                   199 
198   G4double           screenSizeXY;                200   G4double           screenSizeXY;
199   G4double           screenThickness;             201   G4double           screenThickness;
200                                                   202 
201   G4int              PixelCopyNb;                 203   G4int              PixelCopyNb;
202   G4int              grainCopyNb;                 204   G4int              grainCopyNb;
203   G4int              NbOfPixels;                  205   G4int              NbOfPixels;
204   G4int              NbOfPixelRows;               206   G4int              NbOfPixelRows;
205   G4int              NbOfPixelColumns;            207   G4int              NbOfPixelColumns;
206   G4double           PixelThickness;              208   G4double           PixelThickness;
207   G4double           PixelSizeXY;                 209   G4double           PixelSizeXY;
208   G4double           ContactSizeXY;               210   G4double           ContactSizeXY;
209                                                   211 
210   G4double           opticAperture;               212   G4double           opticAperture;
211                                                   213 
212   G4double           mercuryDia;                  214   G4double           mercuryDia;
213   G4double           sunDia;                      215   G4double           sunDia;
214                                                   216 
215   G4double           mercurySunDistance;          217   G4double           mercurySunDistance;
216                                                   218 
217   G4double           ThetaHPGe;                   219   G4double           ThetaHPGe;
218                                                   220   
219   G4double           distDe;                      221   G4double           distDe;
220   G4double           distScreen;                  222   G4double           distScreen;
221   G4double           distOptic;                   223   G4double           distOptic;
222                                                   224 
223                                                   225 
224   G4double           PhiHPGe;                     226   G4double           PhiHPGe;
225                                                   227   
226   G4RotationMatrix   zRotPhiHPGe;                 228   G4RotationMatrix   zRotPhiHPGe;
227                                                   229 
228   G4double           WorldSizeXY;                 230   G4double           WorldSizeXY;
229   G4double           WorldSizeZ;                  231   G4double           WorldSizeZ;
230                                                   232   
231                                                   233   
232   XrayFluoMercuryDetectorMessenger* detectorMe    234   XrayFluoMercuryDetectorMessenger* detectorMessenger; //pointer to the Messenger
233                                                   235 
234   G4Cache<XrayFluoSD*> HPGeSD;  //pointer to t    236   G4Cache<XrayFluoSD*> HPGeSD;  //pointer to the sensitive detector
235                                                   237  
236 public:                                           238 public:
237                                                   239 
238   G4Material* GetMercuryMaterial() const {retu    240   G4Material* GetMercuryMaterial() const {return mercuryMaterial;}; 
239   G4Material* GetPixelMaterial() const  {retur    241   G4Material* GetPixelMaterial() const  {return pixelMaterial;}; 
240                                                   242   
241   G4double GetMercuryDia()  const       {retur    243   G4double GetMercuryDia()  const       {return mercuryDia;};
242   G4double GetSunDia() const {return sunDia;};    244   G4double GetSunDia() const {return sunDia;};
243                                                   245 
244   //Inclinaton of the orbit respect Mercury re    246   //Inclinaton of the orbit respect Mercury respect the equator (latitude)
245                                                   247 
246   G4double GetOrbitInclination() const  {retur    248   G4double GetOrbitInclination() const  {return 180 * CLHEP::deg - ThetaHPGe;}; 
247   G4double GetOrbitDistance() const     {retur    249   G4double GetOrbitDistance() const     {return distDe;};
248   G4double GetOpticAperture() const {return op    250   G4double GetOpticAperture() const {return opticAperture;};  
249                                                   251 
250                                                   252 
251                                                   253   
252 private:                                          254 private:
253                                                   255   
254   void DefineDefaultMaterials();                  256   void DefineDefaultMaterials();
255   G4VPhysicalVolume* ConstructApparate();         257   G4VPhysicalVolume* ConstructApparate();
256                                                   258 
257   //calculates some quantities used to constru    259   //calculates some quantities used to construct geometry
258   void ComputeApparateParameters();               260   void ComputeApparateParameters();
259                                                   261 
260 };                                                262 };
261                                                   263 
262 //....oooOO0OOooo........oooOO0OOooo........oo    264 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
263                                                   265 
264 inline void XrayFluoMercuryDetectorConstructio    266 inline void XrayFluoMercuryDetectorConstruction::ComputeApparateParameters()
265 {                                                 267 {     
266   // Compute derived parameters of the apparat    268   // Compute derived parameters of the apparate
267                                                   269   
268   DeviceThickness = PixelThickness+OhmicNegThi    270   DeviceThickness = PixelThickness+OhmicNegThickness+OhmicPosThickness;
269                                                   271 
270   ///G4cout << "DeviceThickness(cm): "<< Devic    272   ///G4cout << "DeviceThickness(cm): "<< DeviceThickness/CLHEP::cm << G4endl;
271                                                   273 
272   DeviceSizeY =(NbOfPixelRows * std::max(Conta    274   DeviceSizeY =(NbOfPixelRows * std::max(ContactSizeXY,PixelSizeXY));
273   DeviceSizeX =(NbOfPixelColumns * std::max(Co    275   DeviceSizeX =(NbOfPixelColumns * std::max(ContactSizeXY,PixelSizeXY));
274                                                   276 
275   screenSizeXY = opticDia;                        277   screenSizeXY = opticDia;
276                                                   278 
277   G4cout << "DeviceSizeX(cm): "<< DeviceSizeX/    279   G4cout << "DeviceSizeX(cm): "<< DeviceSizeX/CLHEP::cm <<G4endl;
278   G4cout << "DeviceSizeY(cm): "<< DeviceSizeY/    280   G4cout << "DeviceSizeY(cm): "<< DeviceSizeY/CLHEP::cm << G4endl;
279                                                   281 
280   //******************************************    282   //*********************************************************************
281   //**  Astronomical distances reduce by a fac    283   //**  Astronomical distances reduce by a factor 10^-7 due to G4 Bug  **
282   //******************************************    284   //*********************************************************************
283                                                   285 
284   WorldSizeZ = 2 * mercurySunDistance ;           286   WorldSizeZ = 2 * mercurySunDistance ; 
285   WorldSizeXY = (2 * distDe) + 2000 * CLHEP::k    287   WorldSizeXY = (2 * distDe) + 2000 * CLHEP::km ;
286   //WorldSizeZ = WorldSizeXY;                     288   //WorldSizeZ = WorldSizeXY;
287 }                                                 289 }
288                                                   290 
289 #endif                                            291 #endif
290                                                   292