Message: ExN02Detector{Messenger,Construction}.cc Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None ExN02Detector{Messenger,Construction}.cc 

Forum: Documentation and Examples
Date: 03 Apr, 2004
From: Kazuyoshi Furutaka <Kazuyoshi Furutaka>

Hi,

1.
According to the software reference manual for Ver6.1, 
SetUnitCategory(), SetUnitCandidates(), and SetDefaultUnit()
methods in the G4UIcmdWithADoubleAndUnit class
"must be used alternatively".
In ExN02DetectorMessenger.cc, however, both SetUnitCategory()
and SetDefaultUnit() are used.  Why?

2.
In the software reference manual for Ver6.1, a constructor
of G4Material class reads:
  G4Material(const G4String& name,				//its name
                   G4double  z, 				//atomic number
                   G4double  a,					//mass of mole
                   G4double  density, 				//density
                   G4State   state    = kStateUndefined,	//solid,gas
                   G4double  temp     = STP_Temperature,	//temperature
                   G4double  pressure = STP_Pressure);		//pressure

In ExN02DetectorConstruction.cc,
// $Id: ExN02DetectorConstruction.cc,v 1.13 2003/10/06 08:59:40 maire Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $

"Xenon" is created as
  G4Material* Xenon =
  new G4Material("XenonGas", z=54., a=131.29*g/mole, density= 5.458*mg/cm3,
                 kStateGas, temperature= 1*atmosphere, pressure= 293.15*kelvin);

i.e. values for termerature and pressure seem to be
interchanged.

--- ExN02DetectorConstruction.cc.orig   2004-03-26 17:57:16.000000000 +0900
+++ ExN02DetectorConstruction.cc        2004-04-04 16:15:29.000000000 +0900
@@ -95,7 +95,7 @@
   //Xenon gas
   G4Material* Xenon =
   new G4Material("XenonGas", z=54., a=131.29*g/mole, density= 5.458*mg/cm3,
-                 kStateGas, temperature= 1*atmosphere, pressure= 293.15*kelvin);
+                 kStateGas, temperature= 293.15*kelvin, pressure= 1*atmosphere);
  
   // Print all the materials defined.
   //


Regards,
Kazuyoshi

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: ExN02Detector{Messenger,Construction}.cc   (michel maire - 05 Apr, 2004)
(_ Question: ExN02DetectorConstruction.cc   (Kazuyoshi Furutaka - 12 Sep, 2004)
 Add Message Add Message
to: "ExN02Detector{Messenger,Construction}.cc"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]