Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:18:02

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 // $Id: PHG4GDMLWriteParamvol.hh 77528 2013-11-25 13:06:36Z gcosmo $
0028 //
0029 //
0030 // class PHG4GDMLWriteParamvol
0031 //
0032 // Class description:
0033 //
0034 // GDML class for writing parameterised entities dimensions.
0035 
0036 // History:
0037 // - Created.                                  Zoltan Torzsok, November 2007
0038 // -------------------------------------------------------------------------
0039 
0040 #ifndef _PHG4GDMLWRITEPARAMVOL_INCLUDED_
0041 #define _PHG4GDMLWRITEPARAMVOL_INCLUDED_
0042 
0043 #include "PHG4GDMLWriteSetup.hh"
0044 
0045 class G4Box;
0046 class G4Trd;
0047 class G4Trap;
0048 class G4Tubs;
0049 class G4Cons;
0050 class G4Sphere;
0051 class G4Orb;
0052 class G4Torus;
0053 class G4Ellipsoid;
0054 class G4Para;
0055 class G4Hype;
0056 class G4Polycone;
0057 class G4Polyhedra;
0058 class G4VPhysicalVolume;
0059 
0060 class PHG4GDMLWriteParamvol : public PHG4GDMLWriteSetup
0061 {
0062 
0063  public:
0064 
0065    virtual void ParamvolWrite(xercesc::DOMElement*,
0066                               const G4VPhysicalVolume* const);
0067    virtual void ParamvolAlgorithmWrite(xercesc::DOMElement* paramvolElement,
0068                               const G4VPhysicalVolume* const paramvol);
0069 
0070  protected:
0071 
0072    PHG4GDMLWriteParamvol();
0073    virtual ~PHG4GDMLWriteParamvol();
0074 
0075    void Box_dimensionsWrite(xercesc::DOMElement*, const G4Box* const);
0076    void Trd_dimensionsWrite(xercesc::DOMElement*, const G4Trd* const);
0077    void Trap_dimensionsWrite(xercesc::DOMElement*, const G4Trap* const);
0078    void Tube_dimensionsWrite(xercesc::DOMElement*, const G4Tubs* const);
0079    void Cone_dimensionsWrite(xercesc::DOMElement*, const G4Cons* const);
0080    void Sphere_dimensionsWrite(xercesc::DOMElement*, const G4Sphere* const);
0081    void Orb_dimensionsWrite(xercesc::DOMElement*, const G4Orb* const);
0082    void Torus_dimensionsWrite(xercesc::DOMElement*, const G4Torus* const);
0083    void Ellipsoid_dimensionsWrite(xercesc::DOMElement*, const G4Ellipsoid* const);
0084    void Para_dimensionsWrite(xercesc::DOMElement*, const G4Para* const);
0085    void Hype_dimensionsWrite(xercesc::DOMElement*, const G4Hype* const);
0086    void Polycone_dimensionsWrite(xercesc::DOMElement*, const G4Polycone* const);
0087    void Polyhedra_dimensionsWrite(xercesc::DOMElement*, const G4Polyhedra* const);
0088    void ParametersWrite(xercesc::DOMElement*,
0089                         const G4VPhysicalVolume* const, const G4int&);
0090 
0091 };
0092 
0093 #endif