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

None Re: ExN02Detector{Messenger,Construction}.cc 

Forum: Documentation and Examples
Re: None ExN02Detector{Messenger,Construction}.cc (Kazuyoshi Furutaka)
Date: 05 Apr, 2004
From: michel maire <michel maire>

User Kazuyoshi Furutaka wrote:

>> 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?

  You are right. The 2 setting must not go together, since
  SetDefaultUnit() 'kills' SetUnitCategory().

  I would keep SetUnitCategory() in order to allow to enter the 
  magnetic field in tesla or in gauss ...

>> 
>> 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.

  Thanks to have found the bug.
                                 Michel

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

1 Question: ExN02DetectorConstruction.cc   (Kazuyoshi Furutaka - 12 Sep, 2004)
 Add Message Add Message
to: "Re: 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 ]