Import Geant4 3.2.0 source tree
This commit is contained in:
@@ -1,12 +1,28 @@
|
||||
// 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.
|
||||
// ********************************************************************
|
||||
// * 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: G4SmartVoxelNode.hh,v 1.4 2000/04/20 16:49:47 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-03-01 $
|
||||
//
|
||||
// $Id: G4SmartVoxelNode.hh,v 1.5.2.1 2001/06/28 19:08:26 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
//
|
||||
// class G4SmartVoxelNode
|
||||
//
|
||||
@@ -23,11 +39,12 @@
|
||||
// G4int fmaxEquivalent
|
||||
// - Min and maximum nodes with same contents. Set by constructor
|
||||
// and set methods.
|
||||
// G4RWTValOrderedVector<G4int>(1) fcontents
|
||||
// G4std::vector<G4int> fcontents
|
||||
// - Vector of no.s of volumes inside the node.
|
||||
|
||||
// History:
|
||||
// 12.07.95 P.Kent Initial version
|
||||
// 18.04.01 G.Cosmo Migrated to STL vector
|
||||
// 12.07.95 P.Kent Initial version
|
||||
|
||||
#ifndef G4SMARTVOXELNODE_HH
|
||||
#define G4SMARTVOXELNODE_HH
|
||||
@@ -36,17 +53,16 @@
|
||||
#include "voxeldefs.hh"
|
||||
|
||||
#include "G4VPhysicalVolume.hh"
|
||||
#include "g4rw/tvordvec.h"
|
||||
#include "g4std/vector"
|
||||
|
||||
|
||||
typedef G4RWTValOrderedVector<G4int> G4SliceVector;
|
||||
typedef G4std::vector<G4int> G4SliceVector;
|
||||
|
||||
class G4SmartVoxelNode
|
||||
{
|
||||
public: // with description
|
||||
|
||||
G4SmartVoxelNode(const G4int pSlice=0) : fminEquivalent(pSlice),
|
||||
fmaxEquivalent(pSlice) {}
|
||||
G4SmartVoxelNode(G4int pSlice=0) : fminEquivalent(pSlice),
|
||||
fmaxEquivalent(pSlice) {}
|
||||
// Constructor. Create an empty node with slice number pSlice.
|
||||
// THis number is not stored, but used to provide defaults for the
|
||||
// minimum and maximum equivalent node numbers.
|
||||
@@ -54,7 +70,7 @@ class G4SmartVoxelNode
|
||||
~G4SmartVoxelNode() {}
|
||||
// Destructor. No actions.
|
||||
|
||||
G4int GetVolume(const G4int pVolumeNo) const;
|
||||
G4int GetVolume(G4int pVolumeNo) const;
|
||||
// Return contained volume number pVolumeNo.
|
||||
// Note: starts from 0 and no bounds checking performed.
|
||||
|
||||
@@ -67,12 +83,12 @@ class G4SmartVoxelNode
|
||||
G4int GetMaxEquivalentSliceNo() const;
|
||||
// Return the maximum slice (node/header) number with the same contents,
|
||||
// and with all intermediate slice also having the same contents.
|
||||
void SetMaxEquivalentSliceNo(const G4int pMax);
|
||||
void SetMaxEquivalentSliceNo(G4int pMax);
|
||||
// Set the maximum slice number (as above).
|
||||
G4int GetMinEquivalentSliceNo() const;
|
||||
// Return the minimum slice (node/header) number with the same contents,
|
||||
// and with all intermediate nodes also having the same contents.
|
||||
void SetMinEquivalentSliceNo(const G4int pMin);
|
||||
void SetMinEquivalentSliceNo(G4int pMin);
|
||||
// Set the minimum slice number (as above).
|
||||
|
||||
G4bool operator == (const G4SmartVoxelNode& v) const;
|
||||
|
||||
Reference in New Issue
Block a user