Import Geant4 3.0.0 source tree
This commit is contained in:
@@ -1,15 +1,28 @@
|
||||
// Contents ---------------------------------------------------------
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// G4Assembly
|
||||
// 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.
|
||||
//
|
||||
// Description:
|
||||
// $Id: G4Assembly.hh,v 1.5 2000/11/08 14:21:58 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// Class G4Assembly
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
// C++ header file for ...
|
||||
// Uses the xxxxx classes.
|
||||
// A G4Assembly is ...
|
||||
// End --------------------------------------------------------------
|
||||
// Object providing access to the final assembled geometry as read, for
|
||||
// instance, from a STEP file description. It owns a vector of placed
|
||||
// solids which must be initialised through the SetPlacedVector()
|
||||
// method. Currently, it simply provides a way to retrieve the pointer
|
||||
// to each placed solid, and to determine the number of solids currently
|
||||
// placed.
|
||||
|
||||
// Interface Dependencies -------------------------------------------
|
||||
// Authors: J.Sulkimo, P.Urban.
|
||||
// Revisions by: L.Broglia, G.Cosmo.
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
#ifndef G4ASSEMBLY_HH
|
||||
#define G4ASSEMBLY_HH
|
||||
@@ -19,47 +32,33 @@
|
||||
#include "G4BREPSolid.hh"
|
||||
|
||||
typedef G4RWTPtrOrderedVector<G4PlacedSolid> G4PlacedVector;
|
||||
|
||||
// End Interface Dependencies ---------------------------------------
|
||||
|
||||
|
||||
// Class //
|
||||
class G4Assembly
|
||||
{
|
||||
|
||||
public:
|
||||
public: // with description
|
||||
|
||||
G4Assembly();
|
||||
~G4Assembly();
|
||||
// Constructor & destructor
|
||||
|
||||
void SetPlacedVector(G4PlacedVector&);
|
||||
inline G4PlacedSolid* GetPlacedSolid(G4int solidNumber) const;
|
||||
inline G4int GetNumberOfSolids() const;
|
||||
|
||||
G4PlacedSolid* GetPlacedSolid(G4int solidNumber)
|
||||
{
|
||||
return placedVec[solidNumber];
|
||||
}
|
||||
|
||||
G4int GetNumberOfSolids()
|
||||
{
|
||||
return numberOfSolids;
|
||||
}
|
||||
private:
|
||||
|
||||
G4Assembly(const G4Assembly&);
|
||||
G4Assembly& operator=(const G4Assembly&);
|
||||
// Private copy constructor and assignment operator.
|
||||
|
||||
private:
|
||||
|
||||
G4int numberOfSolids;
|
||||
G4PlacedVector placedVec;
|
||||
|
||||
};
|
||||
|
||||
#include "G4Assembly.icc"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user