Import Geant4 7.1.0 source tree
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIaliasList.hh,v 1.5 2003/06/16 16:55:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
|
||||
#ifndef G4UIaliasList_h
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIbatch.hh,v 1.7 2003/06/16 16:55:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// $Id: G4UIbatch.hh,v 1.8 2005/05/19 16:11:53 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
// $id$
|
||||
|
||||
@@ -64,6 +64,9 @@ class G4UIbatch : public G4UIsession
|
||||
std::ifstream macroFile;
|
||||
G4String macroFileName;
|
||||
G4bool openFailed;
|
||||
|
||||
private:
|
||||
static G4bool commandFailed;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWith3Vector.hh,v 1.6 2004/05/16 18:42:29 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWith3VectorAndUnit.hh,v 1.7 2004/05/16 20:42:37 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWithABool.hh,v 1.6 2004/05/16 18:42:30 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWithADouble.hh,v 1.6 2004/05/16 18:42:30 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWithADoubleAndUnit.hh,v 1.7 2004/05/16 20:42:37 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWithAString.hh,v 1.4 2001/07/11 10:01:12 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWithAnInteger.hh,v 1.6 2004/05/16 18:42:30 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWithoutParameter.hh,v 1.4 2001/07/11 10:01:13 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcommand.hh,v 1.14 2004/05/16 18:42:30 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcommandStatus.hh,v 1.4 2001/10/04 23:15:27 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
|
||||
#ifndef G4UIcommandStatus_h
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcommandTree.hh,v 1.14 2003/06/16 16:55:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
|
||||
#ifndef G4UIcommandTree_h
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcontrolMessenger.hh,v 1.10 2002/05/15 06:51:31 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
|
||||
#ifndef G4UIcontrolMessenger_h
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIdirectory.hh,v 1.4 2001/07/11 10:01:14 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UImanager.hh,v 1.20 2003/06/16 16:55:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
|
||||
#ifndef G4UImanager_h
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UImessenger.hh,v 1.6 2001/10/11 13:29:16 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
|
||||
#ifndef G4UImessenger_h
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIparameter.hh,v 1.7 2003/06/16 16:55:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
//
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIsession.hh,v 1.4 2001/07/11 10:01:14 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
// $id$
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UItokenNum.hh,v 1.7 2003/06/07 16:40:48 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
// G4UItokenNum.hh
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UnitsMessenger.hh,v 1.4 2001/07/11 10:01:15 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
// class description
|
||||
//
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VFlavoredParallelWorld.hh,v 1.3 2001/07/11 10:01:15 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
//
|
||||
// Abstract interface for GEANT4 Flavored Parallel World.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VGlobalFastSimulationManager.hh,v 1.4 2002/11/20 14:46:00 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
//
|
||||
//
|
||||
// Abstract interface for GEANT4 Global Fast Simulation Manager.
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VGraphicsScene.hh,v 1.9 2002/10/24 14:11:04 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// $Id: G4VGraphicsScene.hh,v 1.12 2005/05/03 17:34:44 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// John Allison 19th July 1996
|
||||
//
|
||||
// Class Description:
|
||||
@@ -65,52 +65,60 @@ class G4VGraphicsScene {
|
||||
public: // With description
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// Functions for adding raw GEANT4 objects to the scene handler.
|
||||
// The concrete graphics scene handler has the option of
|
||||
// implementing its own model or asking the solid to provide a
|
||||
// G4Polyhedron or similar primitive - see, for example,
|
||||
// G4VSceneHandler in the Visualization Category.
|
||||
// Methods for adding solids to the scene handler. They
|
||||
// must always be called in the triplet PreAddSolid, AddSolid and
|
||||
// PostAddSolid. The transformation and visualization attributes
|
||||
// must be set by the call to PreAddSolid. A possible default
|
||||
// implementation is to request the solid to provide a G4Polyhedron
|
||||
// or similar primitive - see, for example, G4VSceneHandler in the
|
||||
// Visualization Category.
|
||||
|
||||
virtual void PreAddThis (const G4Transform3D& objectTransformation,
|
||||
const G4VisAttributes& visAttribs) = 0;
|
||||
virtual void PreAddSolid (const G4Transform3D& objectTransformation,
|
||||
const G4VisAttributes& visAttribs) = 0;
|
||||
// objectTransformation is the transformation in the world
|
||||
// coordinate system of the object about to be added, and
|
||||
// visAttribs is its visualization attributes.
|
||||
|
||||
virtual void PostAddThis () = 0;
|
||||
virtual void PostAddSolid () = 0;
|
||||
|
||||
virtual void AddThis (const G4Box&) = 0;
|
||||
virtual void AddThis (const G4Cons&) = 0;
|
||||
virtual void AddThis (const G4Tubs&) = 0;
|
||||
virtual void AddThis (const G4Trd&) = 0;
|
||||
virtual void AddThis (const G4Trap&) = 0;
|
||||
virtual void AddThis (const G4Sphere&) = 0;
|
||||
virtual void AddThis (const G4Para&) = 0;
|
||||
virtual void AddThis (const G4Torus&) = 0;
|
||||
virtual void AddThis (const G4Polycone&) = 0;
|
||||
virtual void AddThis (const G4Polyhedra&) = 0;
|
||||
virtual void AddThis (const G4VSolid&) = 0; // For solids not above.
|
||||
virtual void AddThis (const G4VTrajectory&) = 0;
|
||||
virtual void AddThis (const G4VHit&) = 0;
|
||||
virtual void AddSolid (const G4Box&) = 0;
|
||||
virtual void AddSolid (const G4Cons&) = 0;
|
||||
virtual void AddSolid (const G4Tubs&) = 0;
|
||||
virtual void AddSolid (const G4Trd&) = 0;
|
||||
virtual void AddSolid (const G4Trap&) = 0;
|
||||
virtual void AddSolid (const G4Sphere&) = 0;
|
||||
virtual void AddSolid (const G4Para&) = 0;
|
||||
virtual void AddSolid (const G4Torus&) = 0;
|
||||
virtual void AddSolid (const G4Polycone&) = 0;
|
||||
virtual void AddSolid (const G4Polyhedra&) = 0;
|
||||
virtual void AddSolid (const G4VSolid&) = 0; // For solids not above.
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// Functions for adding graphics primitives to the scene handler.
|
||||
// Methods for adding "compound" GEANT4 objects to the scene
|
||||
// handler. These methods may either (a) invoke "user code" that
|
||||
// uses the "user interface", G4VVisManager (see, for example,
|
||||
// G4VSceneHandler in the Visualization Category, which for
|
||||
// trajectories uses G4VTrajectory::DrawTrajectory, via
|
||||
// G4TrajectoriesModel in the Modeling Category) or (b) invoke
|
||||
// AddPrimitives below (between calls to Begin/EndPrimitives) or (c)
|
||||
// use graphics-system-specific code or (d) any combination of the
|
||||
// above.
|
||||
|
||||
virtual void AddCompound (const G4VTrajectory&) = 0;
|
||||
virtual void AddCompound (const G4VHit&) = 0;
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// Methods for adding graphics primitives to the scene handler. A
|
||||
// sequence of calls to AddPrimitive must be sandwiched between
|
||||
// calls to BeginPrimitives and EndPrimitives. A sequence is any
|
||||
// number of calls the have the same transformation.
|
||||
|
||||
virtual void BeginPrimitives
|
||||
(const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
// IMPORTANT: invoke this from your polymorphic versions, e.g.:
|
||||
// void MyXXXSceneHandler::BeginPrimitives
|
||||
// (const G4Transform3D& objectTransformation) {
|
||||
// G4VSceneHandler::BeginPrimitives (objectTransformation);
|
||||
// ...
|
||||
// }
|
||||
// objectTransformation is the transformation in the world
|
||||
// coordinate system of the object about to be added.
|
||||
|
||||
virtual void EndPrimitives () = 0;
|
||||
// IMPORTANT: invoke this from your polymorphic versions, e.g.:
|
||||
// void MyXXXSceneHandler::EndPrimitives () {
|
||||
// ...
|
||||
// G4VSceneHandler::EndPrimitives ();
|
||||
// }
|
||||
|
||||
virtual void AddPrimitive (const G4Polyline&) = 0;
|
||||
virtual void AddPrimitive (const G4Scale&) = 0;
|
||||
|
||||
@@ -21,23 +21,25 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VVisManager.hh,v 1.8 2003/01/20 14:17:20 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
// $Id: G4VVisManager.hh,v 1.10 2005/05/03 17:32:18 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// John Allison 19/Oct/1996.
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// G4VVisManager is an abstract interface for the GEANT4 Visualization Manager.
|
||||
// The inheritance hierarchy is:
|
||||
// G4VVisManager <- G4VisManager <- YourVisManager
|
||||
// G4VVisManager <- G4VisManager <- G4VisExecutive
|
||||
//
|
||||
// See example/novice/N02 to see how to write YourVisManager and
|
||||
// instantiate it. You should *not* access it directly; instead you
|
||||
// should obtain a pointer as follows:
|
||||
// You may also write your own vis manager in place of G4VisExecutive.
|
||||
//
|
||||
// See example/novice/N02 to see how and when to instantiate
|
||||
// G4VisExecutive (or your own vis manager). You should *not* access
|
||||
// it directly; instead you should obtain a pointer as follows:
|
||||
//
|
||||
// G4VVisManager* pVVMan = G4VVisManager::GetConcreteInstance ();
|
||||
//
|
||||
// This ensures your code will link even if YourVisManager is not
|
||||
// This ensures your code will link even if G4VisExecutive is not
|
||||
// instantiated or even if not provided in a library. Please protect
|
||||
// your code by testing the pointer, for example, by:
|
||||
//
|
||||
@@ -47,14 +49,16 @@
|
||||
// for debugging, e.g., drawing the step in your UserSteppingAction,
|
||||
// since G4Steps are not kept.
|
||||
//
|
||||
// Note: to draw "permanent" objects, i.e., objects which are always
|
||||
// Note: "permanent" objects, i.e., objects which are always
|
||||
// available, such as detector geometry components, or available in an
|
||||
// event after tracking has finished, such as hits, digitisations and
|
||||
// trajectories, can be drawn in a transient way if you wish but it is
|
||||
// usually possible to draw them in a permanent way with /vis/
|
||||
// commands. The advantage is that permanent objects can be redrawn,
|
||||
// e.g., when you change view or viewer; transient objects get
|
||||
// forgotten.
|
||||
// forgotten. Also, it is possible to write a G4VUserVisAction class
|
||||
// and register it to "promote" your Draw messages to "permanent" -
|
||||
// see documentation.
|
||||
//
|
||||
// Note that the G4Transform3D argument refers to the transformation
|
||||
// of the *object*, not the transformation of the coordinate syste.
|
||||
@@ -133,11 +137,9 @@ public: // With description
|
||||
// associated with the object itself - thus you can, for example,
|
||||
// change the colour of a physical volume.
|
||||
|
||||
virtual void Draw (const G4VHit&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
virtual void Draw (const G4VHit&) = 0;
|
||||
|
||||
virtual void Draw (const G4VTrajectory&, G4int i_mode = 0,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
virtual void Draw (const G4VTrajectory&, G4int i_mode = 0) = 0;
|
||||
// i_mode is a parameter that can be used to control the drawing of
|
||||
// the trajectory. See, e.g., G4VTrajectory::DrawTrajectory.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user