Ignore:
Timestamp:
Feb 16, 2009, 10:14:30 AM (17 years ago)
Author:
garnier
Message:

en test de gl2ps. Problemes de libraries

Location:
trunk/source/persistency/gdml
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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 $
    22-------------------------------------------------------------------
    33
     
    1717     * Reverse chronological order (last date on top), please *
    1818     ----------------------------------------------------------
     19
     2023 January 2009 Gabriele Cosmo (gdml-V09-02-01)
     21- Changed post-fix"_refl" to "_PV" for placements made through the
     22  reflection-factory.
     23
     2422 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
     304 December 2008 Gabriele Cosmo (gdml-V09-01-21)
     31- Updated default GDML schema location in G4GDMLParser to point to new
     32  GDML schema.
     33
     3421 November 2008 Tatiana Nikitina (gdml-V09-01-20)
     35- Updated schema to include new features introduced in reader/writer plugin.
     36
     3721 November 2008 Gabriele Cosmo (gdml-V09-01-19)
     38- Added missing solid Elliptical-Cone to reader and writer.
     39
     4020 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
     4517 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
     5114 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
     5513 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.
    1958
    205922 August 2008 Tatiana Nikitina (gdml-V09-01-14)
  • trunk/source/persistency/gdml/include/G4GDMLParser.hh

    r850 r921  
    2525//
    2626//
    27 // $Id: G4GDMLParser.hh,v 1.53 2008/08/21 12:17:09 gcosmo 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: $
    2929//
    3030//
     
    4646#include "G4STRead.hh"
    4747
    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")
    4949
    5050class G4GDMLParser
     
    5252  public:  // with description
    5353
    54    G4GDMLParser() { xercesc::XMLPlatformUtils::Initialize(); }
    55    ~G4GDMLParser() { xercesc::XMLPlatformUtils::Terminate(); }
     54   G4GDMLParser();
     55   G4GDMLParser(G4GDMLReadStructure*);
     56  ~G4GDMLParser();
    5657     //
    57      // Parser constructor & destructor
     58     // Parser constructors & destructor
    5859
    5960   inline void Read(const G4String& filename, G4bool Validate=true);
     
    99100   inline G4VPhysicalVolume* GetWorldVolume(const G4String& setupName="Default");
    100101   inline G4GDMLAuxListType GetVolumeAuxiliaryInformation(const G4LogicalVolume* const logvol);
     102   inline void StripNamePointers() const;
     103   inline void SetOverlapCheck(G4bool);
    101104
    102105   // Methods for Writer
     
    108111  private:
    109112
    110    G4GDMLReadStructure reader;
    111    G4GDMLWriteStructure writer;
     113   G4GDMLReadStructure* reader;
     114   G4GDMLWriteStructure* writer;
     115   G4bool ucode;
    112116
    113117};
  • trunk/source/persistency/gdml/src/G4GDMLParser.cc

    r818 r921  
    2424// ********************************************************************
    2525//
     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
    2635#include "G4GDMLParser.hh"
     36
     37G4GDMLParser::G4GDMLParser()
     38  : ucode(false)
     39{
     40  reader = new G4GDMLReadStructure;
     41  writer = new G4GDMLWriteStructure;
     42  xercesc::XMLPlatformUtils::Initialize();
     43}
     44
     45G4GDMLParser::G4GDMLParser(G4GDMLReadStructure* ext)
     46  : ucode(true)
     47{
     48  reader = ext;
     49  writer = new G4GDMLWriteStructure;
     50  xercesc::XMLPlatformUtils::Initialize();
     51}
     52
     53G4GDMLParser::~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.