71 lines
2.2 KiB
C++
71 lines
2.2 KiB
C++
// 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: G4PVParameterised.hh,v 1.4 2000/11/01 15:39:33 gcosmo Exp $
|
|
// GEANT4 tag $Name: geant4-03-00 $
|
|
//
|
|
//
|
|
// class G4PVParameterised
|
|
//
|
|
// Class description:
|
|
//
|
|
// Represents many touchable detector elements differing in their
|
|
// positioning and dimensions. Both are calculated by means
|
|
// of a G4VParameterisation object. The positioning is assumed to
|
|
// be dominant along a cartesian axis (specified).
|
|
|
|
// History:
|
|
// 29.07.95 P.Kent First non-stub version
|
|
|
|
#ifndef G4PVPARAMETERISED_HH
|
|
#define G4PVPARAMETERISED_HH
|
|
|
|
#include "G4PVReplica.hh"
|
|
|
|
class G4PVParameterised : public G4PVReplica
|
|
{
|
|
public: // with description
|
|
|
|
G4PVParameterised(const G4String& pName,
|
|
G4LogicalVolume* pLogical,
|
|
G4VPhysicalVolume* pMother,
|
|
const EAxis pAxis,
|
|
const G4int nReplicas,
|
|
G4VPVParameterisation *pParam);
|
|
// Replicate the volume nReplicas Times using the paramaterisation pParam,
|
|
// within the mother volume pMother. The positioning of the replicas is
|
|
// dominant along the specified axis.
|
|
|
|
G4PVParameterised(const G4String& pName,
|
|
G4LogicalVolume* pLogical,
|
|
G4LogicalVolume* pMotherLogical,
|
|
const EAxis pAxis,
|
|
const G4int nReplicas,
|
|
G4VPVParameterisation *pParam);
|
|
// Almost exactly similar to first constructor, changing only mother
|
|
// pointer's type to LogicalVolume.
|
|
|
|
virtual ~G4PVParameterised();
|
|
// Virtual empty destructor.
|
|
|
|
virtual G4VPVParameterisation* GetParameterisation() const;
|
|
// Returns the current pointer to the parameterisation.
|
|
|
|
virtual void GetReplicationData(EAxis& axis,
|
|
G4int& nReplicas,
|
|
G4double& width,
|
|
G4double& offset,
|
|
G4bool& consuming) const;
|
|
// Fills arguments with the attributes from the base replica.
|
|
|
|
private:
|
|
|
|
G4VPVParameterisation *fparam;
|
|
};
|
|
|
|
#endif
|