Changeset 921 for trunk/source/persistency
- Timestamp:
- Feb 16, 2009, 10:14:30 AM (17 years ago)
- Location:
- trunk/source/persistency
- Files:
-
- 5 edited
-
GNUmakefile (modified) (2 diffs)
-
History (modified) (1 diff)
-
gdml/History (modified) (2 diffs)
-
gdml/include/G4GDMLParser.hh (modified) (5 diffs)
-
gdml/src/G4GDMLParser.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/persistency/GNUmakefile
r818 r921 1 # $Id: GNUmakefile,v 1. 29 2007/11/02 16:22:05gcosmo Exp $1 # $Id: GNUmakefile,v 1.30 2008/10/23 14:47:26 gcosmo Exp $ 2 2 # ----------------------------------------------------------------------- 3 3 # GNUmakefile for persistency library. Gabriele Cosmo, 16/11/96. … … 6 6 name := G4persistency 7 7 8 SUBDIRS := mctruth 9 SUBLIBS = G4mctruth 8 SUBDIRS := mctruth ascii 9 SUBLIBS = G4mctruth G4geomtext 10 10 11 11 ifdef G4LIB_BUILD_GDML -
trunk/source/persistency/History
r818 r921 15 15 * Reverse chronological order (last date on top), please * 16 16 ---------------------------------------------------------- 17 18 23 October, 08 G.Cosmo (persistency-V09-01-00) 19 - Added "ascii" module from original implementation by P.Arce (CIEMAT). 20 First release. 21 - Coworks with tag "config-V09-01-08". 17 22 18 23 02 November, 07 G.Cosmo (persistency-V09-00-00) -
trunk/source/persistency/gdml/History
r850 r921 1 $Id: History,v 1. 89 2008/08/22 16:01:02 gcosmo Exp $1 $Id: History,v 1.98 2009/01/23 10:41:12 gcosmo Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 17 17 * Reverse chronological order (last date on top), please * 18 18 ---------------------------------------------------------- 19 20 23 January 2009 Gabriele Cosmo (gdml-V09-02-01) 21 - Changed post-fix"_refl" to "_PV" for placements made through the 22 reflection-factory. 23 24 22 January 2009 Gabriele Cosmo (gdml-V09-02-00) 25 - Added possibility to check overlaps by activating/de-activating the 26 built-in surface check for placement and parameterised volumes. 27 By default the overlap check is off. To activate it, use call to the 28 parser 'SetOverlapCheck(true)' before reading the GDML file. 29 30 4 December 2008 Gabriele Cosmo (gdml-V09-01-21) 31 - Updated default GDML schema location in G4GDMLParser to point to new 32 GDML schema. 33 34 21 November 2008 Tatiana Nikitina (gdml-V09-01-20) 35 - Updated schema to include new features introduced in reader/writer plugin. 36 37 21 November 2008 Gabriele Cosmo (gdml-V09-01-19) 38 - Added missing solid Elliptical-Cone to reader and writer. 39 40 20 November 2008 Gabriele Cosmo (gdml-V09-01-18) 41 - Implemented mechanism for importing GDML descriptions with extensions 42 to the GDML schema, identified by a new tag "extension". 43 - Added implementation .cc file for G4GDMLParser. 44 45 17 November 2008 Gabriele Cosmo (gdml-V09-01-17) 46 - Get rid of module-name pre-pended to entity names. 47 - Added StripNamePointers() method to G4GDMLParser, utility to be invoked in 48 the user-code to strip off pointers from entity names in a GDML modular setup 49 after loading all modules. 50 51 14 November 2008 Gabriele Cosmo (gdml-V09-01-16) 52 - Enhanced name stripping in G4GDMLRead, to remove also additional IDs 53 prepended to the original name of entities in the case of modular GDML files. 54 55 13 November 2008 Gabriele Cosmo (gdml-V09-01-15) 56 - Added support for new serializer API as introduced in Xerces-3.0.0. 57 - Cleared compilation warnings on Intel-icc compiler. 19 58 20 59 22 August 2008 Tatiana Nikitina (gdml-V09-01-14) -
trunk/source/persistency/gdml/include/G4GDMLParser.hh
r850 r921 25 25 // 26 26 // 27 // $Id: G4GDMLParser.hh,v 1.5 3 2008/08/21 12:17:09gcosmo Exp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4GDMLParser.hh,v 1.57 2009/01/22 11:02:07 gcosmo Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // … … 46 46 #include "G4STRead.hh" 47 47 48 #define G4GDML_DEFAULT_SCHEMALOCATION G4String("http://service-spi.web.cern.ch/service-spi/app/releases/GDML/ GDML_2_10_0/src/GDMLSchema/gdml.xsd")48 #define G4GDML_DEFAULT_SCHEMALOCATION G4String("http://service-spi.web.cern.ch/service-spi/app/releases/GDML/schema/gdml.xsd") 49 49 50 50 class G4GDMLParser … … 52 52 public: // with description 53 53 54 G4GDMLParser() { xercesc::XMLPlatformUtils::Initialize(); } 55 ~G4GDMLParser() { xercesc::XMLPlatformUtils::Terminate(); } 54 G4GDMLParser(); 55 G4GDMLParser(G4GDMLReadStructure*); 56 ~G4GDMLParser(); 56 57 // 57 // Parser constructor & destructor58 // Parser constructors & destructor 58 59 59 60 inline void Read(const G4String& filename, G4bool Validate=true); … … 99 100 inline G4VPhysicalVolume* GetWorldVolume(const G4String& setupName="Default"); 100 101 inline G4GDMLAuxListType GetVolumeAuxiliaryInformation(const G4LogicalVolume* const logvol); 102 inline void StripNamePointers() const; 103 inline void SetOverlapCheck(G4bool); 101 104 102 105 // Methods for Writer … … 108 111 private: 109 112 110 G4GDMLReadStructure reader; 111 G4GDMLWriteStructure writer; 113 G4GDMLReadStructure* reader; 114 G4GDMLWriteStructure* writer; 115 G4bool ucode; 112 116 113 117 }; -
trunk/source/persistency/gdml/src/G4GDMLParser.cc
r818 r921 24 24 // ******************************************************************** 25 25 // 26 // 27 // $Id: G4GDMLParser.cc,v 1.13 2008/11/20 15:33:52 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 // 30 // 31 // class G4GDMLParser Implementation 32 // 33 // ------------------------------------------------------------------------- 34 26 35 #include "G4GDMLParser.hh" 36 37 G4GDMLParser::G4GDMLParser() 38 : ucode(false) 39 { 40 reader = new G4GDMLReadStructure; 41 writer = new G4GDMLWriteStructure; 42 xercesc::XMLPlatformUtils::Initialize(); 43 } 44 45 G4GDMLParser::G4GDMLParser(G4GDMLReadStructure* ext) 46 : ucode(true) 47 { 48 reader = ext; 49 writer = new G4GDMLWriteStructure; 50 xercesc::XMLPlatformUtils::Initialize(); 51 } 52 53 G4GDMLParser::~G4GDMLParser() 54 { 55 xercesc::XMLPlatformUtils::Terminate(); 56 delete writer; 57 if (!ucode) { delete reader; } 58 }
Note:
See TracChangeset
for help on using the changeset viewer.
