Import Geant4 8.1.0 source tree
This commit is contained in:
@@ -1,28 +1,31 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * License and 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 *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4TransportationManager.hh,v 1.2 2003/11/03 17:15:21 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
// $Id: G4TransportationManager.hh,v 1.8 2006/06/29 18:36:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
//
|
||||
// class G4TransportationManager
|
||||
//
|
||||
@@ -36,6 +39,7 @@
|
||||
// in turn creates the navigator and the rest.
|
||||
|
||||
// Created: 10 March 1997, J. Apostolakis
|
||||
// Reviewed: 26 April 2006, G. Cosmo
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
#ifndef G4TransportationManager_hh
|
||||
@@ -43,33 +47,79 @@
|
||||
|
||||
#include "G4Navigator.hh"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class G4PropagatorInField;
|
||||
class G4GeometryMessenger;
|
||||
class G4FieldManager;
|
||||
class G4VPhysicalVolume;
|
||||
|
||||
class G4TransportationManager
|
||||
{
|
||||
public: // with description
|
||||
|
||||
static G4TransportationManager* GetTransportationManager();
|
||||
// Retrieve the static instance
|
||||
|
||||
inline G4Navigator* GetNavigatorForTracking() const;
|
||||
inline G4PropagatorInField* GetPropagatorInField() const;
|
||||
inline G4FieldManager* GetFieldManager() const;
|
||||
|
||||
inline void SetNavigatorForTracking( G4Navigator* newNavigator );
|
||||
inline G4PropagatorInField* GetPropagatorInField() const;
|
||||
inline void SetPropagatorInField( G4PropagatorInField* newFieldPropagator );
|
||||
inline G4FieldManager* GetFieldManager() const;
|
||||
void SetFieldManager( G4FieldManager* newFieldManager );
|
||||
// Accessors for field handling
|
||||
|
||||
~G4TransportationManager();
|
||||
inline G4Navigator* GetNavigatorForTracking() const;
|
||||
inline void SetNavigatorForTracking( G4Navigator* newNavigator );
|
||||
// Accessors for the navigator for tracking
|
||||
|
||||
inline size_t GetNoActiveNavigators() const;
|
||||
inline std::vector<G4Navigator*>::iterator GetActiveNavigatorsIterator();
|
||||
// Return an iterator to the list of active navigators
|
||||
|
||||
G4VPhysicalVolume* GetParallelWorld ( const G4String& worldName );
|
||||
// Return an exact copy of the tracking world volume. If already
|
||||
// existing just return the pointer
|
||||
|
||||
G4VPhysicalVolume* IsWorldExisting ( const G4String& worldName );
|
||||
// Verify existance or not of an istance of the world volume with
|
||||
// same name in the collection
|
||||
|
||||
G4Navigator* GetNavigator ( const G4String& worldName );
|
||||
G4Navigator* GetNavigator ( G4VPhysicalVolume* aWorld );
|
||||
// Return a navigator associated to either the world volume name
|
||||
// or the pointer to world physical volume. If not existing already
|
||||
// create it and register it in the collection
|
||||
|
||||
void DeRegisterNavigator( G4Navigator* aNavigator );
|
||||
G4int ActivateNavigator( G4Navigator* aNavigator );
|
||||
void DeActivateNavigator( G4Navigator* aNavigator );
|
||||
void InactivateAll();
|
||||
// Methods for handling navigators. Navigator for tracking is always the
|
||||
// first, i.e. position 0 in the collection and cannot be de-registered
|
||||
|
||||
protected:
|
||||
|
||||
G4TransportationManager();
|
||||
|
||||
G4TransportationManager();
|
||||
~G4TransportationManager();
|
||||
// Singleton. Protected constructor and destructor
|
||||
|
||||
private:
|
||||
|
||||
G4Navigator* fNavigatorForTracking ;
|
||||
void ClearNavigators();
|
||||
// Clear collection of navigators and delete allocated objects
|
||||
G4bool RegisterWorld( G4VPhysicalVolume* aWorld );
|
||||
void DeRegisterWorld( G4VPhysicalVolume* aWorld );
|
||||
// Register/de-register an already allocated world volume.
|
||||
// The pointed object is not deleted.
|
||||
|
||||
private:
|
||||
|
||||
std::vector<G4Navigator*> fNavigators;
|
||||
// The collection of all navigators registered
|
||||
std::vector<G4Navigator*> fActiveNavigators;
|
||||
// The collection of only active navigators
|
||||
std::vector<G4VPhysicalVolume*> fWorlds;
|
||||
// The collection of worlds associated to the registered navigators
|
||||
|
||||
G4PropagatorInField* fPropagatorInField;
|
||||
G4FieldManager* fFieldManager;
|
||||
G4GeometryMessenger* fGeomMessenger;
|
||||
|
||||
Reference in New Issue
Block a user