Changeset 1347 for trunk/source/persistency/ascii
- Timestamp:
- Dec 22, 2010, 3:52:27 PM (15 years ago)
- Location:
- trunk/source/persistency/ascii
- Files:
-
- 95 edited
-
GNUmakefile (modified) (1 diff)
-
History (modified) (2 diffs)
-
include/G4tgbDetectorBuilder.hh (modified) (1 diff)
-
include/G4tgbDetectorConstruction.hh (modified) (1 diff)
-
include/G4tgbElement.hh (modified) (1 diff)
-
include/G4tgbIsotope.hh (modified) (1 diff)
-
include/G4tgbMaterial.hh (modified) (1 diff)
-
include/G4tgbMaterialMgr.hh (modified) (1 diff)
-
include/G4tgbMaterialMixture.hh (modified) (1 diff)
-
include/G4tgbMaterialMixtureByNoAtoms.hh (modified) (1 diff)
-
include/G4tgbMaterialMixtureByVolume.hh (modified) (1 diff)
-
include/G4tgbMaterialMixtureByWeight.hh (modified) (1 diff)
-
include/G4tgbMaterialSimple.hh (modified) (1 diff)
-
include/G4tgbPlaceParamCircle.hh (modified) (1 diff)
-
include/G4tgbPlaceParamLinear.hh (modified) (1 diff)
-
include/G4tgbPlaceParamSquare.hh (modified) (1 diff)
-
include/G4tgbPlaceParameterisation.hh (modified) (1 diff)
-
include/G4tgbRotationMatrix.hh (modified) (1 diff)
-
include/G4tgbRotationMatrixMgr.hh (modified) (1 diff)
-
include/G4tgbVolume.hh (modified) (1 diff)
-
include/G4tgbVolumeMgr.hh (modified) (1 diff)
-
include/G4tgrElement.hh (modified) (1 diff)
-
include/G4tgrElementFromIsotopes.hh (modified) (1 diff)
-
include/G4tgrElementSimple.hh (modified) (1 diff)
-
include/G4tgrEvaluator.hh (modified) (1 diff)
-
include/G4tgrFileIn.hh (modified) (2 diffs)
-
include/G4tgrFileReader.hh (modified) (1 diff)
-
include/G4tgrIsotope.hh (modified) (1 diff)
-
include/G4tgrLineProcessor.hh (modified) (1 diff)
-
include/G4tgrMaterial.hh (modified) (1 diff)
-
include/G4tgrMaterialFactory.hh (modified) (1 diff)
-
include/G4tgrMaterialMixture.hh (modified) (1 diff)
-
include/G4tgrMaterialSimple.hh (modified) (1 diff)
-
include/G4tgrMessenger.hh (modified) (1 diff)
-
include/G4tgrParameterMgr.hh (modified) (1 diff)
-
include/G4tgrPlace.hh (modified) (1 diff)
-
include/G4tgrPlaceDivRep.hh (modified) (1 diff)
-
include/G4tgrPlaceParameterisation.hh (modified) (1 diff)
-
include/G4tgrPlaceSimple.hh (modified) (1 diff)
-
include/G4tgrRotationMatrix.hh (modified) (1 diff)
-
include/G4tgrRotationMatrixFactory.hh (modified) (1 diff)
-
include/G4tgrSolid.hh (modified) (1 diff)
-
include/G4tgrSolidBoolean.hh (modified) (1 diff)
-
include/G4tgrUtils.hh (modified) (2 diffs)
-
include/G4tgrVolume.hh (modified) (1 diff)
-
include/G4tgrVolumeAssembly.hh (modified) (1 diff)
-
include/G4tgrVolumeDivision.hh (modified) (1 diff)
-
include/G4tgrVolumeMgr.hh (modified) (2 diffs)
-
src/G4tgbDetectorBuilder.cc (modified) (1 diff)
-
src/G4tgbDetectorConstruction.cc (modified) (1 diff)
-
src/G4tgbElement.cc (modified) (1 diff)
-
src/G4tgbGeometryDumper.cc (modified) (7 diffs)
-
src/G4tgbIsotope.cc (modified) (2 diffs)
-
src/G4tgbMaterial.cc (modified) (3 diffs)
-
src/G4tgbMaterialMgr.cc (modified) (2 diffs)
-
src/G4tgbMaterialMixture.cc (modified) (1 diff)
-
src/G4tgbMaterialMixtureByNoAtoms.cc (modified) (1 diff)
-
src/G4tgbMaterialMixtureByVolume.cc (modified) (1 diff)
-
src/G4tgbMaterialMixtureByWeight.cc (modified) (1 diff)
-
src/G4tgbMaterialSimple.cc (modified) (2 diffs)
-
src/G4tgbPlaceParamCircle.cc (modified) (1 diff)
-
src/G4tgbPlaceParamLinear.cc (modified) (1 diff)
-
src/G4tgbPlaceParamSquare.cc (modified) (1 diff)
-
src/G4tgbPlaceParameterisation.cc (modified) (3 diffs)
-
src/G4tgbRotationMatrix.cc (modified) (3 diffs)
-
src/G4tgbRotationMatrixMgr.cc (modified) (1 diff)
-
src/G4tgbVolume.cc (modified) (16 diffs)
-
src/G4tgbVolumeMgr.cc (modified) (4 diffs)
-
src/G4tgrElement.cc (modified) (1 diff)
-
src/G4tgrElementFromIsotopes.cc (modified) (2 diffs)
-
src/G4tgrElementSimple.cc (modified) (2 diffs)
-
src/G4tgrEvaluator.cc (modified) (1 diff)
-
src/G4tgrFileIn.cc (modified) (5 diffs)
-
src/G4tgrFileReader.cc (modified) (2 diffs)
-
src/G4tgrIsotope.cc (modified) (2 diffs)
-
src/G4tgrLineProcessor.cc (modified) (1 diff)
-
src/G4tgrMaterial.cc (modified) (2 diffs)
-
src/G4tgrMaterialFactory.cc (modified) (1 diff)
-
src/G4tgrMaterialMixture.cc (modified) (1 diff)
-
src/G4tgrMaterialSimple.cc (modified) (2 diffs)
-
src/G4tgrMessenger.cc (modified) (1 diff)
-
src/G4tgrParameterMgr.cc (modified) (1 diff)
-
src/G4tgrPlace.cc (modified) (2 diffs)
-
src/G4tgrPlaceDivRep.cc (modified) (2 diffs)
-
src/G4tgrPlaceParameterisation.cc (modified) (1 diff)
-
src/G4tgrPlaceSimple.cc (modified) (1 diff)
-
src/G4tgrRotationMatrix.cc (modified) (3 diffs)
-
src/G4tgrRotationMatrixFactory.cc (modified) (1 diff)
-
src/G4tgrSolid.cc (modified) (1 diff)
-
src/G4tgrSolidBoolean.cc (modified) (1 diff)
-
src/G4tgrUtils.cc (modified) (7 diffs)
-
src/G4tgrVolume.cc (modified) (4 diffs)
-
src/G4tgrVolumeAssembly.cc (modified) (1 diff)
-
src/G4tgrVolumeDivision.cc (modified) (1 diff)
-
src/G4tgrVolumeMgr.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/persistency/ascii/GNUmakefile
r1035 r1347 1 # $Id: GNUmakefile,v 1. 3 2008/11/21 16:27:42gcosmo Exp $1 # $Id: GNUmakefile,v 1.6 2010/10/13 07:56:55 gcosmo Exp $ 2 2 # ----------------------------------------------------------------------- 3 3 # GNUmakefile for persistency library. Gabriele Cosmo, 16/11/96. -
trunk/source/persistency/ascii/History
r1337 r1347 1 $Id: History,v 1.1 4 2010/06/14 15:09:34 gcosmoExp $1 $Id: History,v 1.19 2010/12/15 11:32:48 arce Exp $ 2 2 ------------------------------------------------------------------- 3 3 ========================================================= … … 16 16 * Reverse chronological order (last date on top), please * 17 17 ---------------------------------------------------------- 18 19 15 December, 10 P.Arce (ascii-V09-03-05) 20 - Introduced fixes for Coverity reports... 21 22 7 November, 10 G.Cosmo (ascii-V09-03-04) 23 - Removed wrong assumption for NULL pointer condition previously introduced 24 in G4tgbVolume. Fixes crash in example P03. 25 26 2 November, 10 G.Cosmo (ascii-V09-03-03) 27 - Fixed minor left Coverity reports. 28 29 13 October, 10 G.Cosmo (ascii-V09-03-02) 30 - Synchronised HEAD revision with current production code. 31 - Added missing static data initialisation to constructors in G4tgrFileIn, 32 G4tgbGeometryDumper, G4tgbIsotope, G4tgbMaterial, G4tgbMaterialSimple, 33 G4tgbPlaceParameterisation, G4tgbVolume, G4tgrElementFromIsotopes, 34 G4tgrElementSimple, G4tgrIsotope, G4tgrMaterial, G4tgrMaterialSimple, 35 G4tgrPlace, G4tgrPlaceDivRep, G4tgrRotationMatrix, G4tgrVolume. 36 - Fixed potential cases of dereferencing a NULL pointer in G4tgbMaterialMgr, 37 - Fixed cases of unreachable code in G4tbrVolumeMgr. 38 - Fixed leaks in G4tgrFileReader. 39 - G4tgrUtils: fixed logic in WordIsUnit() and fixed restoring of cout 40 precision in Dump3v(). 41 42 3 September, 10 G.Cosmo (ascii-V09-03-01) 43 - Fixed signature for std::map in G4tgrVolumeMgr.hh.. 44 - Added missing inclusion of <sstream> header in G4tgrFileIn.cc. 18 45 19 46 14 June, 10 G.Cosmo (ascii-V09-03-00) -
trunk/source/persistency/ascii/include/G4tgbDetectorBuilder.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbDetectorBuilder.hh,v 1. 2.6.1 2010/06/14 15:09:19gcosmo Exp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbDetectorBuilder.hh,v 1.5 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbDetectorConstruction.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbDetectorConstruction.hh,v 1. 2 2008/12/18 12:58:02 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbDetectorConstruction.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbElement.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbElement.hh,v 1. 2 2008/12/18 12:58:04 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbElement.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbIsotope.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbIsotope.hh,v 1. 2 2008/12/18 12:58:06 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbIsotope.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbMaterial.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbMaterial.hh,v 1. 5 2008/12/18 12:58:08 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbMaterial.hh,v 1.6 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbMaterialMgr.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbMaterialMgr.hh,v 1. 4 2008/12/18 12:58:10 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbMaterialMgr.hh,v 1.5 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbMaterialMixture.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbMaterialMixture.hh,v 1. 2 2008/12/18 12:58:12 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbMaterialMixture.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbMaterialMixtureByNoAtoms.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbMaterialMixtureByNoAtoms.hh,v 1. 3 2008/12/18 12:58:14 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbMaterialMixtureByNoAtoms.hh,v 1.4 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbMaterialMixtureByVolume.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbMaterialMixtureByVolume.hh,v 1. 4 2008/12/18 12:58:16 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbMaterialMixtureByVolume.hh,v 1.5 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbMaterialMixtureByWeight.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbMaterialMixtureByWeight.hh,v 1. 2 2008/12/18 12:58:18 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbMaterialMixtureByWeight.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbMaterialSimple.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbMaterialSimple.hh,v 1. 2 2008/12/18 12:58:20 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbMaterialSimple.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbPlaceParamCircle.hh
r1337 r1347 26 26 // 27 27 // $Id: G4tgbPlaceParamCircle.hh,v 1.1 2008/10/23 14:43:43 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbPlaceParamLinear.hh
r1337 r1347 26 26 // 27 27 // $Id: G4tgbPlaceParamLinear.hh,v 1.1 2008/10/23 14:43:43 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbPlaceParamSquare.hh
r1337 r1347 26 26 // 27 27 // $Id: G4tgbPlaceParamSquare.hh,v 1.1 2008/10/23 14:43:43 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbPlaceParameterisation.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbPlaceParameterisation.hh,v 1. 4 2008/11/21 15:37:18gcosmo Exp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbPlaceParameterisation.hh,v 1.5 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbRotationMatrix.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbRotationMatrix.hh,v 1. 2 2008/12/18 12:58:22 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbRotationMatrix.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbRotationMatrixMgr.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbRotationMatrixMgr.hh,v 1. 2 2008/12/18 12:58:24 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbRotationMatrixMgr.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbVolume.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbVolume.hh,v 1. 4 2008/12/18 12:58:26 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbVolume.hh,v 1.6 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgbVolumeMgr.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbVolumeMgr.hh,v 1. 3 2008/12/18 12:58:28 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbVolumeMgr.hh,v 1.6 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrElement.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrElement.hh,v 1. 2 2008/12/18 12:58:30 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrElement.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrElementFromIsotopes.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrElementFromIsotopes.hh,v 1. 6 2008/12/18 12:58:32 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrElementFromIsotopes.hh,v 1.7 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrElementSimple.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrElementSimple.hh,v 1. 6 2008/12/18 12:58:34 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrElementSimple.hh,v 1.7 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrEvaluator.hh
r1337 r1347 26 26 // 27 27 // $Id: G4tgrEvaluator.hh,v 1.1 2008/10/23 14:43:43 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrFileIn.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrFileIn.hh,v 1. 3 2008/12/18 12:58:36 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrFileIn.hh,v 1.5 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 77 77 private: 78 78 79 G4tgrFileIn( const G4String& name ) : the Name(name) {}79 G4tgrFileIn( const G4String& name ) : theCurrentFile(-1), theName(name) {} 80 80 81 81 private: -
trunk/source/persistency/ascii/include/G4tgrFileReader.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrFileReader.hh,v 1. 2 2008/11/12 08:41:19 arceExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrFileReader.hh,v 1.4 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrIsotope.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrIsotope.hh,v 1. 4 2008/12/18 12:58:38 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrIsotope.hh,v 1.5 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrLineProcessor.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrLineProcessor.hh,v 1. 1 2008/10/23 14:43:43gcosmo Exp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrLineProcessor.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrMaterial.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrMaterial.hh,v 1. 5 2008/12/18 12:58:40 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrMaterial.hh,v 1.6 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrMaterialFactory.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrMaterialFactory.hh,v 1. 2 2008/12/18 12:58:42 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrMaterialFactory.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrMaterialMixture.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrMaterialMixture.hh,v 1. 2 2008/12/18 12:58:44 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrMaterialMixture.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrMaterialSimple.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrMaterialSimple.hh,v 1. 2 2008/12/18 12:58:46 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrMaterialSimple.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrMessenger.hh
r1337 r1347 26 26 // 27 27 // $Id: G4tgrMessenger.hh,v 1.1 2008/10/23 14:43:43 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrParameterMgr.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrParameterMgr.hh,v 1. 2 2008/12/18 12:58:48 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrParameterMgr.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrPlace.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrPlace.hh,v 1. 4 2008/12/18 12:58:50 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrPlace.hh,v 1.6 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrPlaceDivRep.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrPlaceDivRep.hh,v 1. 5 2008/12/18 12:58:52 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrPlaceDivRep.hh,v 1.6 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrPlaceParameterisation.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrPlaceParameterisation.hh,v 1. 7 2008/12/18 12:58:54 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrPlaceParameterisation.hh,v 1.8 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrPlaceSimple.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrPlaceSimple.hh,v 1. 5 2008/12/18 12:58:56 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrPlaceSimple.hh,v 1.6 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrRotationMatrix.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrRotationMatrix.hh,v 1. 5 2008/12/18 12:58:58 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrRotationMatrix.hh,v 1.6 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrRotationMatrixFactory.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrRotationMatrixFactory.hh,v 1. 2 2008/12/18 12:59:00 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrRotationMatrixFactory.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrSolid.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrSolid.hh,v 1. 2 2008/12/18 12:59:02 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrSolid.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrSolidBoolean.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrSolidBoolean.hh,v 1. 2 2008/12/18 12:59:04 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrSolidBoolean.hh,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrUtils.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrUtils.hh,v 1. 6 2008/12/18 12:59:06 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrUtils.hh,v 1.8 2010/12/15 11:29:54 arce Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 64 64 static G4bool IsInteger( const G4double val, 65 65 const G4double precision = 1.e-6 ); 66 static G4bool WordIsUnit( const G4String& word ); 67 static G4bool WordIsFunction( const G4String& word ); 66 static G4bool IsFunction( const G4String& word ); 68 67 // Checks that every character in a G4String is a number 69 68 // (also '.' or exponencial notation: 'E') -
trunk/source/persistency/ascii/include/G4tgrVolume.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrVolume.hh,v 1.1 0 2009/11/23 11:38:54 arceExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrVolume.hh,v 1.11 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrVolumeAssembly.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrVolumeAssembly.hh,v 1. 5 2008/12/18 12:59:10 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrVolumeAssembly.hh,v 1.6 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrVolumeDivision.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrVolumeDivision.hh,v 1. 5 2008/12/18 12:59:12 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrVolumeDivision.hh,v 1.6 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/include/G4tgrVolumeMgr.hh
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrVolumeMgr.hh,v 1. 5 2008/12/18 12:59:14 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrVolumeMgr.hh,v 1.8 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 53 53 #include <map> 54 54 55 typedef std::map< const G4String, constG4tgrSolid* > G4mapssol;56 typedef std::map< const G4String, constG4tgrVolume* > G4mapsvol;55 typedef std::map< G4String, G4tgrSolid* > G4mapssol; 56 typedef std::map< G4String, G4tgrVolume* > G4mapsvol; 57 57 typedef std::multimap< const G4String, const G4tgrPlace* > G4mmapspl; 58 58 -
trunk/source/persistency/ascii/src/G4tgbDetectorBuilder.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbDetectorBuilder.cc,v 1. 4 2008/12/18 12:59:16 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbDetectorBuilder.cc,v 1.6 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgbDetectorConstruction.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbDetectorConstruction.cc,v 1. 4 2008/12/18 12:59:18 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbDetectorConstruction.cc,v 1.5 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgbElement.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbElement.cc,v 1. 4 2008/12/18 12:59:20 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbElement.cc,v 1.5 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgbGeometryDumper.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbGeometryDumper.cc,v 1.1 2 2009/11/19 13:29:04 arceExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbGeometryDumper.cc,v 1.15 2010/11/02 11:13:05 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 81 81 //------------------------------------------------------------------------ 82 82 G4tgbGeometryDumper::G4tgbGeometryDumper() 83 { 84 85 theRotationNumber = 0; 83 : theFile(0), theRotationNumber(0) 84 { 86 85 } 87 86 … … 649 648 } else if (solidType == "REFLECTEDSOLID") { 650 649 G4ReflectedSolid* solidrefl = dynamic_cast<G4ReflectedSolid*>(solid); 650 if (!solidrefl) 651 { 652 G4Exception("G4tgbGeometryDumper::DumpSolid()", 653 "InvalidType", FatalException, "Invalid reflected solid!"); 654 return solidName; 655 } 651 656 G4VSolid* solidori = solidrefl->GetConstituentMovedSolid(); 652 657 DumpSolid( solidori ); … … 669 674 { 670 675 G4BooleanSolid * bso = dynamic_cast < G4BooleanSolid * > (so); 676 if (!bso) { return; } 671 677 G4VSolid* solid0 = bso->GetConstituentSolid( 0 ); 672 678 G4VSolid* solid1 = bso->GetConstituentSolid( 1 ); … … 676 682 { 677 683 solid1Disp = dynamic_cast<G4DisplacedSolid*>(solid1); 678 solid1 = solid1Disp->GetConstituentMovedSolid();684 if (solid1Disp) { solid1 = solid1Disp->GetConstituentMovedSolid(); } 679 685 } 680 686 DumpSolid( solid0 ); … … 736 742 if (solidType == "BOX") { 737 743 const G4Box * sb = dynamic_cast < const G4Box*>(so); 738 params.push_back( sb->GetXHalfLength() ); 739 params.push_back( sb->GetYHalfLength() ); 740 params.push_back( sb->GetZHalfLength() ); 741 744 if (sb) { 745 params.push_back( sb->GetXHalfLength() ); 746 params.push_back( sb->GetYHalfLength() ); 747 params.push_back( sb->GetZHalfLength() ); 748 } 742 749 } else if (solidType == "TUBS") { 743 750 const G4Tubs * tu = dynamic_cast < const G4Tubs * > (so); 744 params.push_back( tu->GetInnerRadius() ); 745 params.push_back( tu->GetOuterRadius() ); 746 params.push_back( tu->GetZHalfLength() ); 747 params.push_back( tu->GetStartPhiAngle()/deg ); 748 params.push_back( tu->GetDeltaPhiAngle()/deg ); 749 751 if (tu) { 752 params.push_back( tu->GetInnerRadius() ); 753 params.push_back( tu->GetOuterRadius() ); 754 params.push_back( tu->GetZHalfLength() ); 755 params.push_back( tu->GetStartPhiAngle()/deg ); 756 params.push_back( tu->GetDeltaPhiAngle()/deg ); 757 } 750 758 } else if (solidType == "TRAP") { 751 759 const G4Trap * trp = dynamic_cast < const G4Trap * > (so); 752 G4ThreeVector symAxis(trp->GetSymAxis());753 G4double theta, phi;754 theta = symAxis.theta()/deg;755 phi = symAxis.phi()/deg;756 params.push_back( trp->GetZHalfLength() );757 params.push_back( theta );758 params.push_back( phi);759 params.push_back( trp->GetYHalfLength1() );760 params.push_back( trp->GetXHalfLength1() );761 params.push_back( trp->GetXHalfLength2() );762 params.push_back( std::atan(trp->GetTanAlpha1())/deg );763 params.push_back( trp->GetYHalfLength2() );764 params.push_back( trp->GetXHalfLength3() );765 params.push_back( trp->GetXHalfLength4() );766 params.push_back( std::atan(trp->GetTanAlpha2())/deg );767 760 if (trp) { 761 G4ThreeVector symAxis(trp->GetSymAxis()); 762 G4double theta = symAxis.theta()/deg; 763 G4double phi = symAxis.phi()/deg; 764 params.push_back( trp->GetZHalfLength() ); 765 params.push_back( theta ); 766 params.push_back( phi); 767 params.push_back( trp->GetYHalfLength1() ); 768 params.push_back( trp->GetXHalfLength1() ); 769 params.push_back( trp->GetXHalfLength2() ); 770 params.push_back( std::atan(trp->GetTanAlpha1())/deg ); 771 params.push_back( trp->GetYHalfLength2() ); 772 params.push_back( trp->GetXHalfLength3() ); 773 params.push_back( trp->GetXHalfLength4() ); 774 params.push_back( std::atan(trp->GetTanAlpha2())/deg ); 775 } 768 776 } else if (solidType == "TRD") { 769 777 const G4Trd * tr = dynamic_cast < const G4Trd * > (so); 770 params.push_back( tr->GetXHalfLength1() ); 771 params.push_back( tr->GetXHalfLength2() ); 772 params.push_back( tr->GetYHalfLength1() ); 773 params.push_back( tr->GetYHalfLength2() ); 774 params.push_back( tr->GetZHalfLength()); 775 778 if (tr) { 779 params.push_back( tr->GetXHalfLength1() ); 780 params.push_back( tr->GetXHalfLength2() ); 781 params.push_back( tr->GetYHalfLength1() ); 782 params.push_back( tr->GetYHalfLength2() ); 783 params.push_back( tr->GetZHalfLength()); 784 } 776 785 } else if (solidType == "PARA") { 777 786 const G4Para * para = dynamic_cast < const G4Para * > (so); 778 double phi; 779 if(para->GetSymAxis().z()!=1.0) 780 { phi = std::atan(para->GetSymAxis().y()/para->GetSymAxis().x()); } 781 else 782 { phi = 0; } 783 params.push_back( para->GetXHalfLength()); 784 params.push_back( para->GetYHalfLength()); 785 params.push_back( para->GetZHalfLength()); 786 params.push_back( std::atan(para->GetTanAlpha())/deg); 787 params.push_back( std::acos(para->GetSymAxis().z())/deg); 788 params.push_back( phi/deg); 789 787 if (para) { 788 G4double phi = 0.; 789 if(para->GetSymAxis().z()!=1.0) 790 { phi = std::atan(para->GetSymAxis().y()/para->GetSymAxis().x()); } 791 params.push_back( para->GetXHalfLength()); 792 params.push_back( para->GetYHalfLength()); 793 params.push_back( para->GetZHalfLength()); 794 params.push_back( std::atan(para->GetTanAlpha())/deg); 795 params.push_back( std::acos(para->GetSymAxis().z())/deg); 796 params.push_back( phi/deg); 797 } 790 798 } else if (solidType == "CONS") { 791 799 const G4Cons * cn = dynamic_cast < const G4Cons * > (so); 792 params.push_back( cn->GetInnerRadiusMinusZ() ); 793 params.push_back( cn->GetOuterRadiusMinusZ() ); 794 params.push_back( cn->GetInnerRadiusPlusZ() ); 795 params.push_back( cn->GetOuterRadiusPlusZ() ); 796 params.push_back( cn->GetZHalfLength() ); 797 params.push_back( cn->GetStartPhiAngle()/deg ); 798 params.push_back( cn->GetDeltaPhiAngle()/deg ); 799 800 if (cn) { 801 params.push_back( cn->GetInnerRadiusMinusZ() ); 802 params.push_back( cn->GetOuterRadiusMinusZ() ); 803 params.push_back( cn->GetInnerRadiusPlusZ() ); 804 params.push_back( cn->GetOuterRadiusPlusZ() ); 805 params.push_back( cn->GetZHalfLength() ); 806 params.push_back( cn->GetStartPhiAngle()/deg ); 807 params.push_back( cn->GetDeltaPhiAngle()/deg ); 808 } 800 809 } else if (solidType == "SPHERE") { 801 810 const G4Sphere * sphere = dynamic_cast < const G4Sphere * > (so); 802 params.push_back( sphere->GetInnerRadius()); 803 params.push_back( sphere->GetOuterRadius()); 804 params.push_back( sphere->GetStartPhiAngle()/deg); 805 params.push_back( sphere->GetDeltaPhiAngle()/deg); 806 params.push_back( sphere->GetStartThetaAngle()/deg); 807 params.push_back( sphere->GetDeltaThetaAngle()/deg); 808 811 if (sphere) { 812 params.push_back( sphere->GetInnerRadius()); 813 params.push_back( sphere->GetOuterRadius()); 814 params.push_back( sphere->GetStartPhiAngle()/deg); 815 params.push_back( sphere->GetDeltaPhiAngle()/deg); 816 params.push_back( sphere->GetStartThetaAngle()/deg); 817 params.push_back( sphere->GetDeltaThetaAngle()/deg); 818 } 809 819 } else if (solidType == "ORB") { 810 820 const G4Orb * orb = dynamic_cast < const G4Orb * > (so); 811 params.push_back( orb->GetRadius()); 812 821 if (orb) { 822 params.push_back( orb->GetRadius()); 823 } 813 824 } else if (solidType == "TORUS") { 814 825 const G4Torus * torus = dynamic_cast < const G4Torus * > (so); 815 params.push_back( torus->GetRmin()); 816 params.push_back( torus->GetRmax()); 817 params.push_back( torus->GetRtor()); 818 params.push_back( torus->GetSPhi()/deg); 819 params.push_back( torus->GetDPhi()/deg); 820 826 if (torus) { 827 params.push_back( torus->GetRmin()); 828 params.push_back( torus->GetRmax()); 829 params.push_back( torus->GetRtor()); 830 params.push_back( torus->GetSPhi()/deg); 831 params.push_back( torus->GetDPhi()/deg); 832 } 821 833 } else if (solidType == "POLYCONE") { 822 834 //--- Dump RZ corners, as original parameters will not be present 823 835 // if it was build from RZ corners 824 836 const G4Polycone * pc = dynamic_cast < const G4Polycone * > (so); 837 if (pc) { 838 G4double angphi = pc->GetStartPhi()/deg; 839 if( angphi > 180*deg ) { angphi -= 360*deg; } 840 G4int ncor = pc->GetNumRZCorner(); 841 params.push_back( angphi ); 842 params.push_back( pc->GetOriginalParameters()->Opening_angle/deg ); 843 params.push_back( ncor ); 825 844 826 G4double angphi = pc->GetStartPhi()/deg; 827 if( angphi > 180*deg ) { angphi -= 360*deg; } 828 G4int ncor = pc->GetNumRZCorner(); 829 params.push_back( angphi ); 830 params.push_back( pc->GetOriginalParameters()->Opening_angle/deg ); 831 params.push_back( ncor ); 832 833 for( G4int ii = 0; ii < ncor; ii++ ) 834 { 835 params.push_back( pc->GetCorner(ii).r ); 836 params.push_back( pc->GetCorner(ii).z ); 837 } 838 839 845 for( G4int ii = 0; ii < ncor; ii++ ) 846 { 847 params.push_back( pc->GetCorner(ii).r ); 848 params.push_back( pc->GetCorner(ii).z ); 849 } 850 } 840 851 } else if (solidType == "POLYHEDRA") { 841 852 //--- Dump RZ corners, as original parameters will not be present 842 853 // if it was build from RZ corners 843 854 const G4Polyhedra * ph = (dynamic_cast < const G4Polyhedra * > (so)); 855 if (ph) { 856 G4double angphi = ph->GetStartPhi()/deg; 857 if( angphi > 180*deg ) angphi -= 360*deg; 858 859 G4int ncor = ph->GetNumRZCorner(); 844 860 845 G4double angphi = ph->GetStartPhi()/deg; 846 if( angphi > 180*deg ) angphi -= 360*deg; 847 848 G4int ncor = ph->GetNumRZCorner(); 849 850 params.push_back( angphi ); 851 params.push_back( ph->GetOriginalParameters()->Opening_angle/deg ); 852 params.push_back( ph->GetNumSide() ); 853 params.push_back( ncor ); 854 855 for( G4int ii = 0; ii < ncor; ii++ ) 856 { 857 params.push_back( ph->GetCorner(ii).r ); 858 params.push_back( ph->GetCorner(ii).z ); 859 } 860 861 params.push_back( angphi ); 862 params.push_back( ph->GetOriginalParameters()->Opening_angle/deg ); 863 params.push_back( ph->GetNumSide() ); 864 params.push_back( ncor ); 865 866 for( G4int ii = 0; ii < ncor; ii++ ) 867 { 868 params.push_back( ph->GetCorner(ii).r ); 869 params.push_back( ph->GetCorner(ii).z ); 870 } 871 } 861 872 } else if (solidType == "ELLIPTICALTUBE") { 862 873 const G4EllipticalTube * eltu = 863 874 dynamic_cast < const G4EllipticalTube * > (so); 864 params.push_back( eltu->GetDx()); 865 params.push_back( eltu->GetDy()); 866 params.push_back( eltu->GetDz()); 867 875 if (eltu) { 876 params.push_back( eltu->GetDx()); 877 params.push_back( eltu->GetDy()); 878 params.push_back( eltu->GetDz()); 879 } 868 880 } else if (solidType == "ELLIPSOID" ){ 869 881 const G4Ellipsoid* dso = dynamic_cast < const G4Ellipsoid * > (so); 870 params.push_back( dso->GetSemiAxisMax(0) ); 871 params.push_back( dso->GetSemiAxisMax(1) ); 872 params.push_back( dso->GetSemiAxisMax(2) ); 873 params.push_back( dso->GetZBottomCut() ); 874 params.push_back( dso->GetZTopCut() ); 875 882 if (dso) { 883 params.push_back( dso->GetSemiAxisMax(0) ); 884 params.push_back( dso->GetSemiAxisMax(1) ); 885 params.push_back( dso->GetSemiAxisMax(2) ); 886 params.push_back( dso->GetZBottomCut() ); 887 params.push_back( dso->GetZTopCut() ); 888 } 876 889 } else if (solidType == "ELLIPTICAL_CONE") { 877 890 const G4EllipticalCone * elco = 878 891 dynamic_cast < const G4EllipticalCone * > (so); 879 params.push_back( elco-> GetSemiAxisX() ); 880 params.push_back( elco-> GetSemiAxisY() ); 881 params.push_back( elco-> GetZMax() ); 882 params.push_back( elco-> GetZTopCut() ); 883 892 if (elco) { 893 params.push_back( elco-> GetSemiAxisX() ); 894 params.push_back( elco-> GetSemiAxisY() ); 895 params.push_back( elco-> GetZMax() ); 896 params.push_back( elco-> GetZTopCut() ); 897 } 884 898 } else if (solidType == "HYPE") { 885 899 const G4Hype* hype = dynamic_cast < const G4Hype * > (so); 886 params.push_back( hype->GetInnerRadius()); 887 params.push_back( hype->GetOuterRadius()); 888 params.push_back( hype->GetInnerStereo()/deg); 889 params.push_back( hype->GetOuterStereo()/deg); 890 params.push_back( 2*hype->GetZHalfLength()); 891 900 if (hype) { 901 params.push_back( hype->GetInnerRadius()); 902 params.push_back( hype->GetOuterRadius()); 903 params.push_back( hype->GetInnerStereo()/deg); 904 params.push_back( hype->GetOuterStereo()/deg); 905 params.push_back( 2*hype->GetZHalfLength()); 906 } 892 907 // } else if( solidType == "TET" ) { 893 908 894 909 } else if( solidType == "TWISTEDBOX" ) { 895 910 const G4TwistedBox* tbox = dynamic_cast < const G4TwistedBox * > (so); 896 params.push_back( tbox->GetPhiTwist()/deg ); 897 params.push_back( tbox->GetXHalfLength() ); 898 params.push_back( tbox->GetYHalfLength() ); 899 params.push_back( tbox->GetZHalfLength() ); 900 911 if (tbox) { 912 params.push_back( tbox->GetPhiTwist()/deg ); 913 params.push_back( tbox->GetXHalfLength() ); 914 params.push_back( tbox->GetYHalfLength() ); 915 params.push_back( tbox->GetZHalfLength() ); 916 } 901 917 } else if( solidType == "TWISTEDTRAP" ) { 902 918 const G4TwistedTrap * ttrap = dynamic_cast < const G4TwistedTrap * > (so); 903 params.push_back( ttrap->GetPhiTwist()/deg ); 904 params.push_back( ttrap->GetZHalfLength() ); 905 params.push_back( ttrap->GetPolarAngleTheta()/deg ); 906 params.push_back( ttrap->GetAzimuthalAnglePhi()/deg ); 907 params.push_back( ttrap->GetY1HalfLength() ); 908 params.push_back( ttrap->GetX1HalfLength() ); 909 params.push_back( ttrap->GetX2HalfLength() ); 910 params.push_back( ttrap->GetY2HalfLength() ); 911 params.push_back( ttrap->GetX3HalfLength() ); 912 params.push_back( ttrap->GetX4HalfLength() ); 913 params.push_back( ttrap->GetTiltAngleAlpha()/deg ); 914 919 if (ttrap) { 920 params.push_back( ttrap->GetPhiTwist()/deg ); 921 params.push_back( ttrap->GetZHalfLength() ); 922 params.push_back( ttrap->GetPolarAngleTheta()/deg ); 923 params.push_back( ttrap->GetAzimuthalAnglePhi()/deg ); 924 params.push_back( ttrap->GetY1HalfLength() ); 925 params.push_back( ttrap->GetX1HalfLength() ); 926 params.push_back( ttrap->GetX2HalfLength() ); 927 params.push_back( ttrap->GetY2HalfLength() ); 928 params.push_back( ttrap->GetX3HalfLength() ); 929 params.push_back( ttrap->GetX4HalfLength() ); 930 params.push_back( ttrap->GetTiltAngleAlpha()/deg ); 931 } 915 932 } else if( solidType == "TWISTEDTRD" ) { 916 933 const G4TwistedTrd * ttrd = dynamic_cast < const G4TwistedTrd * > (so); 917 params.push_back( ttrd->GetX1HalfLength()); 918 params.push_back( ttrd->GetX2HalfLength() ); 919 params.push_back( ttrd->GetY1HalfLength() ); 920 params.push_back( ttrd->GetY2HalfLength() ); 921 params.push_back( ttrd->GetZHalfLength() ); 922 params.push_back( ttrd->GetPhiTwist()/deg ); 923 934 if (ttrd) { 935 params.push_back( ttrd->GetX1HalfLength()); 936 params.push_back( ttrd->GetX2HalfLength() ); 937 params.push_back( ttrd->GetY1HalfLength() ); 938 params.push_back( ttrd->GetY2HalfLength() ); 939 params.push_back( ttrd->GetZHalfLength() ); 940 params.push_back( ttrd->GetPhiTwist()/deg ); 941 } 924 942 } else if( solidType == "TWISTEDTUBS" ) { 925 943 const G4TwistedTubs * ttub = dynamic_cast < const G4TwistedTubs * > (so); 926 params.push_back( ttub->GetInnerRadius() ); 927 params.push_back( ttub->GetOuterRadius() ); 928 params.push_back( ttub->GetZHalfLength() ); 929 params.push_back( ttub->GetDPhi()/deg ); 930 params.push_back( ttub->GetPhiTwist()/deg ); 931 944 if (ttub) { 945 params.push_back( ttub->GetInnerRadius() ); 946 params.push_back( ttub->GetOuterRadius() ); 947 params.push_back( ttub->GetZHalfLength() ); 948 params.push_back( ttub->GetDPhi()/deg ); 949 params.push_back( ttub->GetPhiTwist()/deg ); 950 } 932 951 } 933 952 else … … 945 964 G4String G4tgbGeometryDumper::DumpRotationMatrix( G4RotationMatrix* rotm ) 946 965 { 966 if (!rotm) { rotm = new G4RotationMatrix(); } 967 947 968 G4double de = MatDeterminant(rotm); 948 949 969 G4String rotName = LookForExistingRotation( rotm ); 950 970 if( rotName != "" ) { return rotName; } 951 952 if (!rotm) { rotm = new G4RotationMatrix(); }953 971 954 972 G4ThreeVector v(1.,1.,1.); -
trunk/source/persistency/ascii/src/G4tgbIsotope.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbIsotope.cc,v 1. 4 2008/12/18 12:59:24 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbIsotope.cc,v 1.6 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 40 40 //---------------------------------------------------------------------- 41 41 G4tgbIsotope::G4tgbIsotope() 42 : theTgrIsot(0), theG4Isot(0) 42 43 { 43 44 } -
trunk/source/persistency/ascii/src/G4tgbMaterial.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbMaterial.cc,v 1. 2 2008/12/18 12:59:26 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbMaterial.cc,v 1.5 2010/12/15 11:29:54 arce Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 41 41 // ------------------------------------------------------------------------- 42 42 G4tgbMaterial::G4tgbMaterial() 43 : theTgrMate(0), theG4Mate(0) 43 44 { 44 45 } … … 51 52 // ------------------------------------------------------------------------- 52 53 G4tgbMaterial::G4tgbMaterial( G4tgrMaterial* hg ) 54 : theTgrMate(hg), theG4Mate(0) 53 55 { 54 theTgrMate = hg;55 theG4Mate = 0;56 56 } 57 57 -
trunk/source/persistency/ascii/src/G4tgbMaterialMgr.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbMaterialMgr.cc,v 1. 5 2008/12/18 12:59:28 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbMaterialMgr.cc,v 1.7 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 151 151 } else if( tgr->GetType() == "MaterialMixtureByVolume" ) { 152 152 tgb = new G4tgbMaterialMixtureByVolume( tgr ); 153 } 153 } else { 154 return; 155 } 154 156 theG4tgbMaterials[tgb->GetName()] = tgb; 155 157 } -
trunk/source/persistency/ascii/src/G4tgbMaterialMixture.cc
r1337 r1347 26 26 // 27 27 // $Id: G4tgbMaterialMixture.cc,v 1.1 2008/10/23 14:43:43 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgbMaterialMixtureByNoAtoms.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbMaterialMixtureByNoAtoms.cc,v 1. 6 2008/12/18 12:59:30 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbMaterialMixtureByNoAtoms.cc,v 1.7 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgbMaterialMixtureByVolume.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbMaterialMixtureByVolume.cc,v 1. 8 2008/12/18 12:59:32 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbMaterialMixtureByVolume.cc,v 1.9 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgbMaterialMixtureByWeight.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbMaterialMixtureByWeight.cc,v 1. 4 2008/12/18 12:59:34 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbMaterialMixtureByWeight.cc,v 1.5 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgbMaterialSimple.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbMaterialSimple.cc,v 1. 5 2008/12/18 12:59:36 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbMaterialSimple.cc,v 1.7 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 41 41 // ------------------------------------------------------------------------- 42 42 G4tgbMaterialSimple::G4tgbMaterialSimple() 43 : theZ(0.), theA(0.) 43 44 { 44 45 } -
trunk/source/persistency/ascii/src/G4tgbPlaceParamCircle.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbPlaceParamCircle.cc,v 1. 5 2008/12/03 16:16:01 arceExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbPlaceParamCircle.cc,v 1.6 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgbPlaceParamLinear.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbPlaceParamLinear.cc,v 1. 5 2008/12/03 16:16:01 arceExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbPlaceParamLinear.cc,v 1.6 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgbPlaceParamSquare.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbPlaceParamSquare.cc,v 1. 6 2008/12/03 16:16:01 arceExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbPlaceParamSquare.cc,v 1.7 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgbPlaceParameterisation.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbPlaceParameterisation.cc,v 1. 4 2008/11/21 15:37:18gcosmo Exp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbPlaceParameterisation.cc,v 1.6 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // class G4tgbPlaceParameterisation … … 45 45 G4tgbPlaceParameterisation:: 46 46 G4tgbPlaceParameterisation( G4tgrPlaceParameterisation* tgrParam) 47 : theNCopies(0), theAxis(kUndefined) 47 48 { 48 49 theRotationMatrix = G4tgbRotationMatrixMgr::GetInstance() … … 52 53 G4tgbPlaceParameterisation::~G4tgbPlaceParameterisation() 53 54 { 55 delete theRotationMatrix; 54 56 } 55 57 -
trunk/source/persistency/ascii/src/G4tgbRotationMatrix.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbRotationMatrix.cc,v 1. 8 2008/12/18 12:59:38 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbRotationMatrix.cc,v 1.10 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 43 43 // ------------------------------------------------------------------------- 44 44 G4tgbRotationMatrix::G4tgbRotationMatrix() 45 : theTgrRM(0), theG4RM(0) 45 46 { 46 47 } … … 55 56 // ------------------------------------------------------------------------- 56 57 G4tgbRotationMatrix::G4tgbRotationMatrix( G4tgrRotationMatrix* tgr ) 58 : theTgrRM(tgr), theG4RM(0) 57 59 { 58 theTgrRM = tgr;59 60 } 60 61 -
trunk/source/persistency/ascii/src/G4tgbRotationMatrixMgr.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbRotationMatrixMgr.cc,v 1. 2 2008/12/18 12:59:40 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbRotationMatrixMgr.cc,v 1.3 2010/10/13 07:56:55 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgbVolume.cc
r1228 r1347 24 24 // ******************************************************************** 25 25 // 26 // 27 // $Id: G4tgbVolume.cc,v 1.23 2010/11/05 08:58:36 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 26 29 // 27 30 // … … 110 113 //------------------------------------------------------------------- 111 114 G4tgbVolume::G4tgbVolume() 115 : theTgrVolume(0), theG4AssemblyVolume(0) 112 116 { 113 117 } … … 155 159 g4vmgr->RegisterMe( logvol ); 156 160 g4vmgr->RegisterChildParentLVs( logvol, parentLV ); 157 158 } 159 } 161 } 162 else 163 { 164 return; 165 } 166 } 167 else 168 { 169 return; 170 } 160 171 } 161 172 //--- Construct PhysVol … … 291 302 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 292 303 "InvalidSetup", FatalException, ErrMessage); 304 return 0; 293 305 } 294 306 … … 367 379 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 368 380 "InvalidSetup", FatalException, ErrMessage); 381 return 0; 369 382 } 370 383 … … 427 440 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 428 441 "InvalidSetup", FatalException, ErrMessage); 442 return 0; 429 443 } 430 444 … … 655 669 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 656 670 "InvalidSetup", FatalException, ErrMessage); 671 return 0; 657 672 } 658 673 … … 679 694 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 680 695 "InvalidSetup", FatalException, ErrMessage); 696 return 0; 681 697 } 682 698 facet = new G4TriangularFacet( pt0, vt1, vt2, vertexType ); … … 705 721 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 706 722 "InvalidSetup", FatalException, ErrMessage); 723 return 0; 707 724 } 708 725 facet = new G4QuadrangularFacet( pt0, vt1, vt2, vt3, vertexType ); … … 716 733 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 717 734 "InvalidSetup", FatalException, ErrMessage); 735 return 0; 718 736 } 719 737 … … 748 766 { 749 767 const G4tgrSolidBoolean* solb = dynamic_cast<const G4tgrSolidBoolean*>(sol); 768 if (!solb) 769 { 770 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 771 "InvalidSetup", FatalException, "Invalid Solid pointer"); 772 return 0; 773 } 750 774 G4VSolid* sol1 = FindOrConstructG4Solid( solb->GetSolid(0)); 751 775 G4VSolid* sol2 = FindOrConstructG4Solid( solb->GetSolid(1)); … … 771 795 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", 772 796 "InvalidSetup", FatalException, ErrMessage); 797 return 0; 773 798 } 774 799 } … … 779 804 G4Exception("G4tgbVolume::FindOrConstructG4Solid()", "NotImplemented", 780 805 FatalException, ErrMessage); 806 return 0; 781 807 } 782 808 … … 1069 1095 G4Exception("G4tgbVolume::ConstructG4PhysVol", "WrongArgument", 1070 1096 FatalException, ErrMessage); 1097 return 0; 1071 1098 } 1072 1099 #ifdef G4VERBOSE … … 1249 1276 } 1250 1277 #endif 1251 1252 1278 } 1253 1279 } … … 1384 1410 G4Exception("G4tgbVolume::BuildSolidForDivision()", "NotImplemented", 1385 1411 FatalException, ErrMessage); 1412 return 0; 1386 1413 } 1387 1414 -
trunk/source/persistency/ascii/src/G4tgbVolumeMgr.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgbVolumeMgr.cc,v 1. 5 2008/12/18 12:59:44 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgbVolumeMgr.cc,v 1.10 2010/12/15 11:29:54 arce Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 185 185 186 186 G4VSolid* oldSolid = 0; 187 G4mmssol::const_iterator mmsscite;188 187 std::pair<G4mmssol::iterator, G4mmssol::iterator> mmssdi; 189 188 mmssdi = theSolids.equal_range( name ); 190 189 191 for( mmsscite = mmssdi.first; mmsscite != mmssdi.second; mmsscite++ ) 192 { 193 #ifdef G4VERBOSE 194 if( G4tgrMessenger::GetVerboseLevel() >= 2 ) 195 { 196 G4cout << " G4tgbVolumeMgr::FindG4Solid() - Solid finding " 197 << name << G4endl; 198 } 190 if( mmssdi.first != mmssdi.second ) { // check there is a solid found 191 G4mmssol::const_iterator mmsscite = mmssdi.first; 192 193 #ifdef G4VERBOSE 194 if( G4tgrMessenger::GetVerboseLevel() >= 2 ) 195 { 196 G4cout << " G4tgbVolumeMgr::FindG4Solid() - Solid finding " 197 << name << G4endl; 198 } 199 199 #endif 200 200 /* … … 214 214 oldSolid = (*mmsscite).second; 215 215 #ifdef G4VERBOSE 216 if( G4tgrMessenger::GetVerboseLevel() >= 1 ) 217 { 218 G4cout << " G4tgbVolumeMgr::FindG4Solid() - Solid already found " 219 << name << G4endl; 220 } 221 #endif 222 break; 216 if( G4tgrMessenger::GetVerboseLevel() >= 1 ) 217 { 218 G4cout << " G4tgbVolumeMgr::FindG4Solid() - Solid already found " 219 << name << G4endl; 220 } 221 #endif 223 222 } 224 223 … … 226 225 if( G4tgrMessenger::GetVerboseLevel() >= 2 ) 227 226 { 228 G4cout << " G4tgbVolumeMgr::FindG4Solid() - Old solid: " 229 << oldSolid << G4endl; 230 } 231 #endif 227 G4cout << " G4tgbVolumeMgr::FindG4Solid() - Old solid: " 228 << oldSolid << G4endl; 229 } 230 #endif 231 232 232 return oldSolid; 233 233 } -
trunk/source/persistency/ascii/src/G4tgrElement.cc
r1337 r1347 26 26 // 27 27 // $Id: G4tgrElement.cc,v 1.1 2008/10/23 14:43:43 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgrElementFromIsotopes.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrElementFromIsotopes.cc,v 1. 5 2008/12/18 12:59:46 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrElementFromIsotopes.cc,v 1.7 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 42 42 // ------------------------------------------------------------------------- 43 43 G4tgrElementFromIsotopes::G4tgrElementFromIsotopes() 44 : theNoIsotopes(0) 44 45 { 45 46 } -
trunk/source/persistency/ascii/src/G4tgrElementSimple.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrElementSimple.cc,v 1. 5 2008/12/18 12:59:48 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrElementSimple.cc,v 1.7 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 41 41 // ------------------------------------------------------------------------- 42 42 G4tgrElementSimple::G4tgrElementSimple() 43 : theZ(0.), theA(0.) 43 44 { 44 45 } -
trunk/source/persistency/ascii/src/G4tgrEvaluator.cc
r1337 r1347 26 26 // 27 27 // $Id: G4tgrEvaluator.cc,v 1.1 2008/10/23 14:43:43 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgrFileIn.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrFileIn.cc,v 1. 9 2008/12/18 12:59:50 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrFileIn.cc,v 1.13 2010/12/15 11:29:54 arce Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 39 39 #include <iostream> 40 40 #include <fstream> 41 #include <sstream> 41 42 42 43 #include "G4tgrFileIn.hh" … … 50 51 //----------------------------------------------------------------------- 51 52 G4tgrFileIn::G4tgrFileIn() 53 : theCurrentFile(-1), theName("") 52 54 { 53 55 } … … 57 59 G4tgrFileIn::~G4tgrFileIn() 58 60 { 59 return; 61 /* 60 62 std::vector<G4tgrFileIn*>::const_iterator vfcite; 61 63 for( vfcite = theInstances.begin(); vfcite != theInstances.end(); vfcite++) … … 63 65 delete *vfcite; 64 66 } 67 */ 65 68 } 66 69 -
trunk/source/persistency/ascii/src/G4tgrFileReader.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrFileReader.cc,v 1. 4 2008/11/12 08:44:07 arceExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrFileReader.cc,v 1.7 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 65 65 G4tgrFileReader::~G4tgrFileReader() 66 66 { 67 delete theLineProcessor; 67 68 delete theInstance; 68 69 } -
trunk/source/persistency/ascii/src/G4tgrIsotope.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrIsotope.cc,v 1. 5 2008/12/18 12:59:52 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrIsotope.cc,v 1.7 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 42 42 //------------------------------------------------------------- 43 43 G4tgrIsotope::G4tgrIsotope() 44 : theName(""), theZ(0), theN(0), theA(0.) 44 45 { 45 46 } -
trunk/source/persistency/ascii/src/G4tgrLineProcessor.cc
r1035 r1347 158 158 G4Exception("G4tgrLineProcessor::ProcessLine()", "Material not found", 159 159 FatalException, G4tgrUtils::GetString( wl[1] ) ); 160 return false; 160 161 } 161 162 mate->SetIonisationMeanExcitationEnergy( G4tgrUtils::GetDouble( wl[2] ) ); -
trunk/source/persistency/ascii/src/G4tgrMaterial.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrMaterial.cc,v 1. 3 2008/11/21 15:37:18gcosmo Exp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrMaterial.cc,v 1.5 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 40 40 // ------------------------------------------------------------------------- 41 41 G4tgrMaterial::G4tgrMaterial() 42 : theName("Material"), theDensity(0.), theNoComponents(0), 43 theMateType("Material"), theIonisationMeanExcitationEnergy(-1.) 42 44 { 43 theIonisationMeanExcitationEnergy = -1.;44 45 } 45 46 -
trunk/source/persistency/ascii/src/G4tgrMaterialFactory.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrMaterialFactory.cc,v 1. 4 2008/12/18 12:59:54 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrMaterialFactory.cc,v 1.5 2010/10/13 07:56:56 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgrMaterialMixture.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrMaterialMixture.cc,v 1. 7 2008/12/18 12:59:56 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrMaterialMixture.cc,v 1.8 2010/10/13 07:56:56 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgrMaterialSimple.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrMaterialSimple.cc,v 1. 7 2008/12/18 12:59:58 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrMaterialSimple.cc,v 1.9 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 42 42 //------------------------------------------------------------- 43 43 G4tgrMaterialSimple::G4tgrMaterialSimple() 44 : name("MaterialSimple") 44 : name("MaterialSimple"), theA(0.), theZ(0.) 45 45 { 46 46 } -
trunk/source/persistency/ascii/src/G4tgrMessenger.cc
r1337 r1347 26 26 // 27 27 // $Id: G4tgrMessenger.cc,v 1.1 2008/10/23 14:43:43 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04- beta-01$28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgrParameterMgr.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrParameterMgr.cc,v 1. 6 2008/12/18 13:00:00 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrParameterMgr.cc,v 1.7 2010/10/13 07:56:56 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgrPlace.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrPlace.cc,v 1. 3 2008/11/03 17:04:41 arceExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrPlace.cc,v 1.6 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 39 39 // ------------------------------------------------------------------------- 40 40 G4tgrPlace::G4tgrPlace() 41 : theVolume(0), theParentName(""), theCopyNo(0), theType("") 41 42 { 42 43 } -
trunk/source/persistency/ascii/src/G4tgrPlaceDivRep.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrPlaceDivRep.cc,v 1. 4 2008/11/21 15:37:18gcosmo Exp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrPlaceDivRep.cc,v 1.7 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 42 42 //------------------------------------------------------------- 43 43 G4tgrPlaceDivRep::G4tgrPlaceDivRep() 44 : theNDiv(0), theWidth(0.), theAxis(kUndefined), 45 theOffset(0.), theDivType(DivByNdivAndWidth) 44 46 { 45 theOffset = 0.;46 47 } 47 48 -
trunk/source/persistency/ascii/src/G4tgrPlaceParameterisation.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrPlaceParameterisation.cc,v 1. 6 2008/12/18 13:00:02 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrPlaceParameterisation.cc,v 1.8 2010/10/13 07:56:56 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgrPlaceSimple.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrPlaceSimple.cc,v 1. 5 2008/12/18 13:00:04 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrPlaceSimple.cc,v 1.7 2010/10/13 07:56:56 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgrRotationMatrix.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrRotationMatrix.cc,v 1. 5 2008/12/18 13:00:06 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrRotationMatrix.cc,v 1.7 2010/10/13 15:20:01 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 42 42 // ------------------------------------------------------------------------- 43 43 G4tgrRotationMatrix::G4tgrRotationMatrix() 44 : theName("Rotation-Matrix"), theInputType(rm9) 44 45 { 45 46 } … … 53 54 54 55 // ------------------------------------------------------------------------- 55 G4tgrRotationMatrix::G4tgrRotationMatrix( const std::vector<G4String>& wl ) 56 G4tgrRotationMatrix::G4tgrRotationMatrix( const std::vector<G4String>& wl ) 57 : theInputType(rm9) 56 58 { 57 59 theName = G4tgrUtils::GetString( wl[1] ); -
trunk/source/persistency/ascii/src/G4tgrRotationMatrixFactory.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrRotationMatrixFactory.cc,v 1. 2 2008/12/18 13:00:08 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrRotationMatrixFactory.cc,v 1.3 2010/10/13 07:56:56 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgrSolid.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrSolid.cc,v 1. 6 2008/12/18 13:00:10 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrSolid.cc,v 1.7 2010/10/13 07:56:56 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgrSolidBoolean.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrSolidBoolean.cc,v 1. 4 2008/12/18 13:00:12 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrSolidBoolean.cc,v 1.5 2010/10/13 07:56:56 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgrUtils.cc
r1035 r1347 78 78 G4bool G4tgrUtils::IsNumber( const G4String& str) 79 79 { 80 G4int isnum = 1;80 G4int isnum = true; 81 81 G4int numE = 0; 82 82 for(size_t ii=0; ii<str.length(); ii++) … … 90 90 if(numE != 0 || ii == str.length()-1) 91 91 { 92 isnum = 0;92 isnum = false; 93 93 break; 94 94 } … … 97 97 else 98 98 { 99 isnum = 0;99 isnum = false; 100 100 break; 101 101 } … … 123 123 void G4tgrUtils::Dump3v( const G4ThreeVector& vec, const char* msg) 124 124 { 125 G4cout << msg << std::setprecision(8) << vec << G4endl; 125 G4cout << msg << std::setprecision(8) 126 << vec << std::setprecision(6) << G4endl; 126 127 } 127 128 … … 346 347 //----- Check if it is a function 347 348 G4bool bWordOK = false; 348 if( G4tgrUtils:: WordIsFunction( word ) )349 if( G4tgrUtils::IsFunction( word ) ) 349 350 { 350 351 //--- It must be followed by '(' … … 360 361 //----- Check if it is a unit 361 362 } 362 else if( G4tgrUtils::WordIsUnit( word ) )363 else if( !G4tgrUtils::IsNumber( word ) ) 363 364 { 364 365 //--- It must be preceded by a * … … 550 551 551 552 //------------------------------------------------------------- 552 G4bool G4tgrUtils::WordIsUnit( const G4String& word ) 553 { 554 return !IsNumber(word); 555 if( word == "mm" 556 || word == "cm" 557 || word == "m" 558 || word == "km" 559 || word == "millimeter" 560 || word == "centimeter" 561 || word == "meter" 562 || word == "kilometer" 563 || word == "parsec" 564 || word == "micrometer" 565 || word == "nanometer" 566 || word == "angstrom" 567 || word == "fermi" 568 || word == "nm" 569 || word == "um" 570 || word == "pc" 571 || word == "radian" 572 || word == "milliradian" 573 || word == "degree" 574 || word == "rad" 575 || word == "mrad" 576 || word == "deg" 577 || word == "ns" 578 || word == "curie" 579 || word == "curie" ) 580 { 581 return true; 582 } 583 else 584 { 585 return false; 586 } 587 } 588 589 590 //------------------------------------------------------------- 591 G4bool G4tgrUtils::WordIsFunction( const G4String& word ) 553 G4bool G4tgrUtils::IsFunction( const G4String& word ) 592 554 { 593 555 if( word == "sin" -
trunk/source/persistency/ascii/src/G4tgrVolume.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrVolume.cc,v 1.1 0 2009/11/23 11:36:29arce Exp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrVolume.cc,v 1.13 2010/12/15 11:29:54 arce Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 49 49 //------------------------------------------------------------- 50 50 G4tgrVolume::G4tgrVolume() 51 : theName(""), theType(""), 52 theMaterialName(""), theSolid(0), theVisibility(false), 53 theRGBColour(0), theCheckOverlaps(false) 51 54 { 52 55 } … … 56 59 G4tgrVolume::~G4tgrVolume() 57 60 { 61 delete [] theRGBColour; 58 62 } 59 63 … … 104 108 #endif 105 109 } 106 107 110 } 108 111 -
trunk/source/persistency/ascii/src/G4tgrVolumeAssembly.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrVolumeAssembly.cc,v 1. 6 2008/12/18 13:00:18 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrVolumeAssembly.cc,v 1.7 2010/10/13 07:56:56 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgrVolumeDivision.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrVolumeDivision.cc,v 1. 6 2008/12/18 13:00:20 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrVolumeDivision.cc,v 1.7 2010/10/13 07:56:56 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // -
trunk/source/persistency/ascii/src/G4tgrVolumeMgr.cc
r1337 r1347 25 25 // 26 26 // 27 // $Id: G4tgrVolumeMgr.cc,v 1. 7 2008/12/18 13:00:22 gunterExp $28 // GEANT4 tag $Name: geant4-09-04- beta-01$27 // $Id: G4tgrVolumeMgr.cc,v 1.10 2010/10/13 07:56:56 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 373 373 374 374 //---------- construct the children of this VOL 375 std::pair<G4mmapspl:: const_iterator, G4mmapspl::const_iterator> children375 std::pair<G4mmapspl::iterator, G4mmapspl::iterator> children 376 376 = GetChildren( vol->GetName() ); 377 377 G4mmapspl::const_iterator cite;
Note:
See TracChangeset
for help on using the changeset viewer.
