Import Geant4 6.2.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4PVDivision.hh,v 1.7 2003/11/19 11:51:22 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// $Id: G4PVDivision.hh,v 1.8 2004/05/13 14:57:12 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
//
|
||||
// class G4PVDivision
|
||||
//
|
||||
@@ -61,9 +61,9 @@
|
||||
// n=0..nReplicas-1
|
||||
|
||||
// History:
|
||||
// 09.05.01 - P.Arce Initial version
|
||||
// ********************************************************************
|
||||
|
||||
// -------
|
||||
// 09.05.01 - P.Arce, Initial version
|
||||
// ----------------------------------------------------------------------
|
||||
#ifndef G4PVDIVISION_HH
|
||||
#define G4PVDIVISION_HH
|
||||
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4PVDivisionFactory.hh,v 1.1 2004/05/13 14:56:30 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
//
|
||||
//
|
||||
// class G4PVDivisionFactory
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
// Implementation of the interfaces for creating volumes divisions
|
||||
// (defined in G4VPVDivisionFactory) for G4PVDivision type.
|
||||
|
||||
// Author: Ivana Hrivnacova, 4.5.2004 (Ivana.Hrivnacova@cern.ch)
|
||||
// ------------------------------------------------------------------------
|
||||
#ifndef G4PVDIVISION_FACTORY_HH
|
||||
#define G4PVDIVISION_FACTORY_HH
|
||||
|
||||
#include "geomdefs.hh"
|
||||
#include "G4VPVDivisionFactory.hh"
|
||||
|
||||
class G4LogicalVolume;
|
||||
|
||||
class G4PVDivisionFactory : public G4VPVDivisionFactory
|
||||
{
|
||||
public: // with description
|
||||
|
||||
virtual ~G4PVDivisionFactory();
|
||||
|
||||
virtual G4VPhysicalVolume* CreatePVDivision(
|
||||
const G4String& pName,
|
||||
G4LogicalVolume* pLogical,
|
||||
G4LogicalVolume* pMother,
|
||||
const EAxis pAxis,
|
||||
const G4int nReplicas,
|
||||
const G4double width,
|
||||
const G4double offset );
|
||||
// Create division - with number of divisions and width.
|
||||
|
||||
virtual G4VPhysicalVolume* CreatePVDivision(
|
||||
const G4String& pName,
|
||||
G4LogicalVolume* pLogical,
|
||||
G4LogicalVolume* pMotherLogical,
|
||||
const EAxis pAxis,
|
||||
const G4int nReplicas,
|
||||
const G4double offset );
|
||||
// Create division - with number of divisions.
|
||||
|
||||
virtual G4VPhysicalVolume* CreatePVDivision(
|
||||
const G4String& pName,
|
||||
G4LogicalVolume* pLogical,
|
||||
G4LogicalVolume* pMotherLogical,
|
||||
const EAxis pAxis,
|
||||
const G4double width,
|
||||
const G4double offset );
|
||||
// Create division - with width.
|
||||
|
||||
virtual G4VPhysicalVolume* CreatePVDivision(
|
||||
const G4String& pName,
|
||||
G4LogicalVolume* pLogical,
|
||||
G4LogicalVolume* pMotherLogical,
|
||||
const G4VPVParameterisation* param);
|
||||
// Create division - with parameterisation.
|
||||
|
||||
virtual G4bool IsPVDivision(const G4VPhysicalVolume* pv) const;
|
||||
// Returns true if pv is division.
|
||||
|
||||
static G4PVDivisionFactory* GetInstance();
|
||||
// Create the unique instance of the singleton.
|
||||
|
||||
protected:
|
||||
|
||||
G4PVDivisionFactory();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ParameterisationBox.hh,v 1.3 2003/11/19 11:51:22 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// $Id: G4ParameterisationBox.hh,v 1.4 2004/05/13 14:57:12 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
//
|
||||
// classes G4ParameterisationBoxX,
|
||||
// G4ParameterisationBoxY,
|
||||
@@ -34,9 +34,10 @@
|
||||
// dividing a G4Box along one of each axis X, Y, Z.
|
||||
|
||||
// History:
|
||||
// 09.05.01 - P.Arce Initial version
|
||||
// ********************************************************************
|
||||
|
||||
// -------
|
||||
// 09.05.01 - P.Arce, Initial version
|
||||
// 08.04.04 - I.Hrivnacova, Implemented reflection
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef G4ParameterisationBox_H
|
||||
#define G4ParameterisationBox_H 1
|
||||
|
||||
@@ -58,7 +59,18 @@ class G4Tubs;
|
||||
class G4Polycone;
|
||||
class G4Polyhedra;
|
||||
|
||||
class G4ParameterisationBoxX : public G4VDivisionParameterisation
|
||||
class G4VParameterisationBox : public G4VDivisionParameterisation
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4VParameterisationBox( EAxis axis, G4int nCopies,
|
||||
G4double offset, G4double step,
|
||||
G4VSolid* msolid, DivisionType divType );
|
||||
|
||||
virtual ~G4VParameterisationBox();
|
||||
};
|
||||
|
||||
class G4ParameterisationBoxX : public G4VParameterisationBox
|
||||
{
|
||||
public: // with description
|
||||
|
||||
@@ -75,8 +87,7 @@ class G4ParameterisationBoxX : public G4VDivisionParameterisation
|
||||
void ComputeDimensions(G4Box& box, const G4int copyNo,
|
||||
const G4VPhysicalVolume* physVol) const;
|
||||
|
||||
|
||||
private: // Dummy declarations to get rid of warnings ...
|
||||
private: // Dummy declarations to get rid of warnings ...
|
||||
|
||||
void ComputeDimensions (G4Cons&,const G4int,
|
||||
const G4VPhysicalVolume*) const {}
|
||||
@@ -102,7 +113,7 @@ class G4ParameterisationBoxX : public G4VDivisionParameterisation
|
||||
const G4VPhysicalVolume*) const {}
|
||||
};
|
||||
|
||||
class G4ParameterisationBoxY : public G4VDivisionParameterisation
|
||||
class G4ParameterisationBoxY : public G4VParameterisationBox
|
||||
{
|
||||
public: // with description
|
||||
|
||||
@@ -145,7 +156,7 @@ class G4ParameterisationBoxY : public G4VDivisionParameterisation
|
||||
const G4VPhysicalVolume*) const {}
|
||||
};
|
||||
|
||||
class G4ParameterisationBoxZ : public G4VDivisionParameterisation
|
||||
class G4ParameterisationBoxZ : public G4VParameterisationBox
|
||||
{
|
||||
public: // with description
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ParameterisationCons.hh,v 1.4 2003/11/19 11:51:23 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// $Id: G4ParameterisationCons.hh,v 1.5 2004/05/13 14:57:12 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
//
|
||||
// classes G4ParameterisationConsRho,
|
||||
// G4ParameterisationConsPhi,
|
||||
@@ -34,9 +34,10 @@
|
||||
// dividing a G4Cons along one of each axis Rho, Phi, Z.
|
||||
|
||||
// History:
|
||||
// 09.05.01 - P.Arce Initial version
|
||||
// ********************************************************************
|
||||
|
||||
// -------
|
||||
// 09.05.01 - P.Arce, Initial version
|
||||
// 08.04.04 - I.Hrivnacova, Implemented reflection
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef G4ParameterisationCons_H
|
||||
#define G4ParameterisationCons_H 1
|
||||
|
||||
@@ -58,7 +59,18 @@ class G4Tubs;
|
||||
class G4Polycone;
|
||||
class G4Polyhedra;
|
||||
|
||||
class G4ParameterisationConsRho : public G4VDivisionParameterisation
|
||||
class G4VParameterisationCons : public G4VDivisionParameterisation
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4VParameterisationCons( EAxis axis, G4int nCopies,
|
||||
G4double offset, G4double step,
|
||||
G4VSolid* msolid, DivisionType divType );
|
||||
|
||||
virtual ~G4VParameterisationCons();
|
||||
};
|
||||
|
||||
class G4ParameterisationConsRho : public G4VParameterisationCons
|
||||
{
|
||||
public: // with description
|
||||
|
||||
@@ -100,7 +112,7 @@ class G4ParameterisationConsRho : public G4VDivisionParameterisation
|
||||
const G4VPhysicalVolume*) const {}
|
||||
};
|
||||
|
||||
class G4ParameterisationConsPhi : public G4VDivisionParameterisation
|
||||
class G4ParameterisationConsPhi : public G4VParameterisationCons
|
||||
{
|
||||
public: // with description
|
||||
|
||||
@@ -142,7 +154,7 @@ class G4ParameterisationConsPhi : public G4VDivisionParameterisation
|
||||
const G4VPhysicalVolume*) const {}
|
||||
};
|
||||
|
||||
class G4ParameterisationConsZ : public G4VDivisionParameterisation
|
||||
class G4ParameterisationConsZ : public G4VParameterisationCons
|
||||
{
|
||||
public: // with description
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ParameterisationPara.hh,v 1.5 2003/11/19 11:51:23 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// $Id: G4ParameterisationPara.hh,v 1.6 2004/05/13 14:57:12 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
//
|
||||
// classes G4ParameterisationParaX,
|
||||
// G4ParameterisationParaY,
|
||||
@@ -34,9 +34,10 @@
|
||||
// dividing a G4Para along one of each axis X, Y, Z.
|
||||
|
||||
// History:
|
||||
// 09.05.01 - P.Arce First version
|
||||
// ********************************************************************
|
||||
|
||||
// -------
|
||||
// 09.05.01 - P.Arce, Initial version
|
||||
// 08.04.04 - I.Hrivnacova, Implemented reflection
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef G4ParameterisationPara_H
|
||||
#define G4ParameterisationPara_H 1
|
||||
|
||||
@@ -56,8 +57,18 @@ class G4Tubs;
|
||||
class G4Polycone;
|
||||
class G4Polyhedra;
|
||||
|
||||
class G4VParameterisationPara : public G4VDivisionParameterisation
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4VParameterisationPara( EAxis axis, G4int nCopies,
|
||||
G4double offset, G4double step,
|
||||
G4VSolid* msolid, DivisionType divType );
|
||||
|
||||
virtual ~G4VParameterisationPara();
|
||||
};
|
||||
|
||||
class G4ParameterisationParaX : public G4VDivisionParameterisation
|
||||
class G4ParameterisationParaX : public G4VParameterisationPara
|
||||
{
|
||||
public: // with description
|
||||
|
||||
@@ -101,7 +112,7 @@ class G4ParameterisationParaX : public G4VDivisionParameterisation
|
||||
};
|
||||
|
||||
|
||||
class G4ParameterisationParaY : public G4VDivisionParameterisation
|
||||
class G4ParameterisationParaY : public G4VParameterisationPara
|
||||
{
|
||||
public: // with description
|
||||
|
||||
@@ -145,7 +156,7 @@ class G4ParameterisationParaY : public G4VDivisionParameterisation
|
||||
};
|
||||
|
||||
|
||||
class G4ParameterisationParaZ : public G4VDivisionParameterisation
|
||||
class G4ParameterisationParaZ : public G4VParameterisationPara
|
||||
{
|
||||
public: // with description
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ParameterisationPolycone.hh,v 1.5 2003/11/18 12:15:30 arce Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// $Id: G4ParameterisationPolycone.hh,v 1.6 2004/05/13 14:57:12 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
//
|
||||
// classes G4ParameterisationPolyconeRho,
|
||||
// G4ParameterisationPolyconePhi,
|
||||
@@ -34,7 +34,9 @@
|
||||
// dividing a G4Polycone along one of each axis Rho, Phi, Z.
|
||||
|
||||
// History:
|
||||
// 09.05.01 - P.Arce First version
|
||||
// -------
|
||||
// 09.05.01 - P.Arce, Initial version
|
||||
// 08.04.04 - I.Hrivnacova, Implemented reflection
|
||||
//---------------------------------------------------------------------
|
||||
#ifndef G4ParameterisationPolycone_H
|
||||
#define G4ParameterisationPolycone_H 1
|
||||
@@ -56,11 +58,22 @@ class G4Hype;
|
||||
class G4Tubs;
|
||||
class G4Polyhedra;
|
||||
|
||||
class G4VParameterisationPolycone : public G4VDivisionParameterisation
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4VParameterisationPolycone( EAxis axis, G4int nCopies,
|
||||
G4double offset, G4double step,
|
||||
G4VSolid* msolid, DivisionType divType );
|
||||
|
||||
virtual ~G4VParameterisationPolycone();
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// Class G4ParameterisationPolyconeRho
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
class G4ParameterisationPolyconeRho : public G4VDivisionParameterisation
|
||||
class G4ParameterisationPolyconeRho : public G4VParameterisationPolycone
|
||||
{
|
||||
public: // with description
|
||||
|
||||
@@ -109,7 +122,7 @@ class G4ParameterisationPolyconeRho : public G4VDivisionParameterisation
|
||||
// Class G4ParameterisationPolyconePhi
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
class G4ParameterisationPolyconePhi : public G4VDivisionParameterisation
|
||||
class G4ParameterisationPolyconePhi : public G4VParameterisationPolycone
|
||||
{
|
||||
public: // with description
|
||||
|
||||
@@ -156,7 +169,7 @@ class G4ParameterisationPolyconePhi : public G4VDivisionParameterisation
|
||||
// Class G4ParameterisationPolyconeZ
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
class G4ParameterisationPolyconeZ : public G4VDivisionParameterisation
|
||||
class G4ParameterisationPolyconeZ : public G4VParameterisationPolycone
|
||||
{
|
||||
public: // with description
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ParameterisationPolyhedra.hh,v 1.6 2003/11/18 12:15:30 arce Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// $Id: G4ParameterisationPolyhedra.hh,v 1.7 2004/05/13 14:57:12 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
//
|
||||
// classes G4ParameterisationPolyhedraRho,
|
||||
// G4ParameterisationPolyhedraPhi,
|
||||
@@ -34,7 +34,9 @@
|
||||
// dividing a G4Polyhedra along one of each axis Rho, Phi, Z.
|
||||
|
||||
// History:
|
||||
// 09.05.01 - P.Arce First version
|
||||
// -------
|
||||
// 09.05.01 - P.Arce, Initial version
|
||||
// 08.04.04 - I.Hrivnacova, Implemented reflection
|
||||
//---------------------------------------------------------------------
|
||||
#ifndef G4ParameterisationPolyhedra_H
|
||||
#define G4ParameterisationPolyhedra_H 1
|
||||
@@ -56,11 +58,28 @@ class G4Hype;
|
||||
class G4Tubs;
|
||||
class G4Polycone;
|
||||
|
||||
class G4VParameterisationPolyhedra : public G4VDivisionParameterisation
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4VParameterisationPolyhedra( EAxis axis, G4int nCopies,
|
||||
G4double offset, G4double step,
|
||||
G4VSolid* msolid, DivisionType divType );
|
||||
|
||||
virtual ~G4VParameterisationPolyhedra();
|
||||
|
||||
private:
|
||||
|
||||
G4double ConvertRadiusFactor(const G4Polyhedra& phedra) const;
|
||||
// Converts radius of the sides to radius of the corners:
|
||||
// r_corners = r_sides/factor
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// Class G4ParameterisationPolyhedraRho
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
class G4ParameterisationPolyhedraRho : public G4VDivisionParameterisation
|
||||
class G4ParameterisationPolyhedraRho : public G4VParameterisationPolyhedra
|
||||
{
|
||||
public: // with description
|
||||
|
||||
@@ -109,7 +128,7 @@ class G4ParameterisationPolyhedraRho : public G4VDivisionParameterisation
|
||||
// Class G4ParameterisationPolyhedraPhi
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
class G4ParameterisationPolyhedraPhi : public G4VDivisionParameterisation
|
||||
class G4ParameterisationPolyhedraPhi : public G4VParameterisationPolyhedra
|
||||
{
|
||||
public: // with description
|
||||
|
||||
@@ -158,7 +177,7 @@ class G4ParameterisationPolyhedraPhi : public G4VDivisionParameterisation
|
||||
// Class G4ParameterisationPolyhedraZ
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
class G4ParameterisationPolyhedraZ : public G4VDivisionParameterisation
|
||||
class G4ParameterisationPolyhedraZ : public G4VParameterisationPolyhedra
|
||||
{
|
||||
public: // with description
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ParameterisationTrd.hh,v 1.5 2003/11/19 11:51:23 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// $Id: G4ParameterisationTrd.hh,v 1.6 2004/05/13 14:57:12 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
//
|
||||
// classes G4ParameterisationTrdX
|
||||
// G4ParameterisationTrdY
|
||||
@@ -34,9 +34,10 @@
|
||||
// dividing a trapezoid along one of each axis X, Y, Z.
|
||||
|
||||
// History:
|
||||
// 09.05.01 P.Arce First version
|
||||
// ********************************************************************
|
||||
|
||||
// -------
|
||||
// 09.05.01 - P.Arce, Initial version
|
||||
// 08.04.04 - I.Hrivnacova, Implemented reflection
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef G4ParameterisationTrd_H
|
||||
#define G4ParameterisationTrd_H 1
|
||||
|
||||
@@ -57,7 +58,18 @@ class G4Tubs;
|
||||
class G4Polycone;
|
||||
class G4Polyhedra;
|
||||
|
||||
class G4ParameterisationTrdX : public G4VDivisionParameterisation
|
||||
class G4VParameterisationTrd : public G4VDivisionParameterisation
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4VParameterisationTrd( EAxis axis, G4int nCopies,
|
||||
G4double offset, G4double step,
|
||||
G4VSolid* msolid, DivisionType divType );
|
||||
|
||||
virtual ~G4VParameterisationTrd();
|
||||
};
|
||||
|
||||
class G4ParameterisationTrdX : public G4VParameterisationTrd
|
||||
{
|
||||
public: // with description
|
||||
|
||||
@@ -103,7 +115,7 @@ class G4ParameterisationTrdX : public G4VDivisionParameterisation
|
||||
};
|
||||
|
||||
|
||||
class G4ParameterisationTrdY : public G4VDivisionParameterisation
|
||||
class G4ParameterisationTrdY : public G4VParameterisationTrd
|
||||
{
|
||||
public: // with description
|
||||
|
||||
@@ -149,7 +161,7 @@ class G4ParameterisationTrdY : public G4VDivisionParameterisation
|
||||
};
|
||||
|
||||
|
||||
class G4ParameterisationTrdZ : public G4VDivisionParameterisation
|
||||
class G4ParameterisationTrdZ : public G4VParameterisationTrd
|
||||
{
|
||||
public: // with description
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ParameterisationTubs.hh,v 1.4 2003/11/19 11:51:23 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// $Id: G4ParameterisationTubs.hh,v 1.5 2004/05/13 14:57:13 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
//
|
||||
// classes G4ParameterisationTubsRho
|
||||
// G4ParameterisationTubsPhi
|
||||
@@ -34,9 +34,10 @@
|
||||
// dividing a G4Tubs along one of each axis Rho, Phi, Z.
|
||||
|
||||
// History:
|
||||
// 09.05.01 P.Arce First version
|
||||
// ********************************************************************
|
||||
|
||||
// -------
|
||||
// 09.05.01 - P.Arce, Initial version
|
||||
// 08.04.04 - I.Hrivnacova, Implemented reflection
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef G4ParameterisationTubsRho_H
|
||||
#define G4ParameterisationTubsRho_H 1
|
||||
|
||||
@@ -56,8 +57,18 @@ class G4Hype;
|
||||
class G4Polycone;
|
||||
class G4Polyhedra;
|
||||
|
||||
class G4VParameterisationTubs : public G4VDivisionParameterisation
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4VParameterisationTubs( EAxis axis, G4int nCopies,
|
||||
G4double offset, G4double step,
|
||||
G4VSolid* msolid, DivisionType divType );
|
||||
|
||||
virtual ~G4VParameterisationTubs();
|
||||
};
|
||||
|
||||
class G4ParameterisationTubsRho : public G4VDivisionParameterisation
|
||||
class G4ParameterisationTubsRho : public G4VParameterisationTubs
|
||||
{
|
||||
public: // with description
|
||||
|
||||
@@ -100,7 +111,7 @@ class G4ParameterisationTubsRho : public G4VDivisionParameterisation
|
||||
};
|
||||
|
||||
|
||||
class G4ParameterisationTubsPhi : public G4VDivisionParameterisation
|
||||
class G4ParameterisationTubsPhi : public G4VParameterisationTubs
|
||||
{
|
||||
public: // with description
|
||||
|
||||
@@ -143,7 +154,7 @@ class G4ParameterisationTubsPhi : public G4VDivisionParameterisation
|
||||
};
|
||||
|
||||
|
||||
class G4ParameterisationTubsZ : public G4VDivisionParameterisation
|
||||
class G4ParameterisationTubsZ : public G4VParameterisationTubs
|
||||
{
|
||||
public: // with description
|
||||
|
||||
|
||||
@@ -21,20 +21,20 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VDivisionParameterisation.hh,v 1.6 2003/11/19 11:51:23 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// $Id: G4VDivisionParameterisation.hh,v 1.8 2004/05/17 07:20:39 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
//
|
||||
// class G4VDivisionParameterisation
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
// ......
|
||||
//
|
||||
// Member data:
|
||||
//
|
||||
// Base class for parameterisations defining divisions of volumes
|
||||
// for different kind of CSG and specific solids.
|
||||
|
||||
// History:
|
||||
// 09.05.01 - P.Arce Initial version
|
||||
// -------
|
||||
// 09.05.01 - P.Arce, Initial version
|
||||
// 08.04.04 - I.Hrivnacova, Implemented reflection
|
||||
//---------------------------------------------------------------------
|
||||
#ifndef G4VDivisionParameterisation_H
|
||||
#define G4VDivisionParameterisation_H 1
|
||||
@@ -58,6 +58,8 @@ class G4VDivisionParameterisation : public G4VPVParameterisation
|
||||
G4VSolid* motherSolid = 0);
|
||||
virtual ~G4VDivisionParameterisation();
|
||||
|
||||
virtual G4VSolid* ComputeSolid(const G4int, G4VPhysicalVolume *);
|
||||
|
||||
virtual void ComputeTransformation(const G4int copyNo,
|
||||
G4VPhysicalVolume *physVol) const = 0;
|
||||
|
||||
@@ -84,6 +86,7 @@ class G4VDivisionParameterisation : public G4VPVParameterisation
|
||||
void CheckOffset( G4double maxPar );
|
||||
void CheckNDivAndWidth( G4double maxPar );
|
||||
virtual G4double GetMaxParameter() const = 0;
|
||||
G4double OffsetZ() const;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -94,6 +97,8 @@ class G4VDivisionParameterisation : public G4VPVParameterisation
|
||||
G4double foffset;
|
||||
DivisionType fDivisionType;
|
||||
G4VSolid* fmotherSolid;
|
||||
G4bool fReflectedSolid;
|
||||
G4bool fDeleteSolid;
|
||||
|
||||
static G4int verbose;
|
||||
G4int theVoluFirstCopyNo;
|
||||
|
||||
@@ -21,13 +21,12 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VDivisionParameterisation.icc,v 1.2 2003/11/18 12:15:30 arce Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// $Id: G4VDivisionParameterisation.icc,v 1.3 2004/05/13 14:57:13 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-02 $
|
||||
//
|
||||
// class G4VDivisionParameterisation Inline Implementation file
|
||||
//
|
||||
// 26.05.03 - G.Cosmo: Created
|
||||
// ********************************************************************
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
inline
|
||||
const G4String& G4VDivisionParameterisation::GetType() const
|
||||
|
||||
Reference in New Issue
Block a user