Import Geant4 4.0.0 source tree
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4UIaliasList.hh,v 1.3 2001/10/16 08:14:31 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
|
||||
#ifndef G4UIaliasList_h
|
||||
#define G4UIaliasList_h 1
|
||||
|
||||
|
||||
#include "globals.hh"
|
||||
#include "g4std/vector"
|
||||
|
||||
// class description:
|
||||
//
|
||||
// This class is exclusively used by G4UImanager for handling the
|
||||
// alias list.
|
||||
//
|
||||
|
||||
class G4UIaliasList
|
||||
{
|
||||
public:
|
||||
G4UIaliasList();
|
||||
~G4UIaliasList();
|
||||
|
||||
private:
|
||||
G4int operator==(const G4UIaliasList &right) const;
|
||||
G4int operator!=(const G4UIaliasList &right) const;
|
||||
|
||||
public:
|
||||
void RemoveAlias(G4String aliasName);
|
||||
void ChangeAlias(G4String aliasName, G4String aliasValue);
|
||||
G4String* FindAlias(G4String aliasName);
|
||||
void List();
|
||||
|
||||
private:
|
||||
void AddNewAlias(G4String aliasName, G4String aliasValue);
|
||||
G4int FindAliasID(G4String aliasName);
|
||||
|
||||
private:
|
||||
G4std::vector<G4String*> alias;
|
||||
G4std::vector<G4String*> value;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIbatch.hh,v 1.3.4.1 2001/06/28 19:10:15 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIbatch.hh,v 1.4 2001/07/11 10:01:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
// $id$
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWith3Vector.hh,v 1.3.4.1 2001/06/28 19:10:15 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIcmdWith3Vector.hh,v 1.4 2001/07/11 10:01:12 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWith3VectorAndUnit.hh,v 1.3.4.1 2001/06/28 19:10:15 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIcmdWith3VectorAndUnit.hh,v 1.4 2001/07/11 10:01:12 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWithABool.hh,v 1.3.4.1 2001/06/28 19:10:15 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIcmdWithABool.hh,v 1.4 2001/07/11 10:01:12 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWithADouble.hh,v 1.3.4.1 2001/06/28 19:10:15 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIcmdWithADouble.hh,v 1.4 2001/07/11 10:01:12 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWithADoubleAndUnit.hh,v 1.3.4.1 2001/06/28 19:10:15 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIcmdWithADoubleAndUnit.hh,v 1.4 2001/07/11 10:01:12 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWithAString.hh,v 1.3.4.1 2001/06/28 19:10:15 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIcmdWithAString.hh,v 1.4 2001/07/11 10:01:12 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWithAnInteger.hh,v 1.3.4.1 2001/06/28 19:10:15 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIcmdWithAnInteger.hh,v 1.4 2001/07/11 10:01:12 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcmdWithoutParameter.hh,v 1.3.4.1 2001/06/28 19:10:15 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIcmdWithoutParameter.hh,v 1.4 2001/07/11 10:01:13 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcommand.hh,v 1.6.2.1 2001/06/28 19:10:15 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIcommand.hh,v 1.10 2001/10/16 08:14:31 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -33,8 +33,6 @@
|
||||
class G4UImessenger;
|
||||
#include "globals.hh"
|
||||
#include "G4ApplicationState.hh"
|
||||
//#include "g4rw/tpordvec.h"
|
||||
//#include "g4rw/tvordvec.h"
|
||||
#include "g4std/vector"
|
||||
#include "G4UItokenNum.hh"
|
||||
|
||||
@@ -58,8 +56,8 @@ class G4UIcommand
|
||||
public:
|
||||
virtual ~G4UIcommand();
|
||||
|
||||
int operator==(const G4UIcommand &right) const;
|
||||
int operator!=(const G4UIcommand &right) const;
|
||||
G4int operator==(const G4UIcommand &right) const;
|
||||
G4int operator!=(const G4UIcommand &right) const;
|
||||
|
||||
G4int DoIt(G4String parameterList);
|
||||
G4String GetCurrentValue();
|
||||
@@ -108,7 +106,7 @@ class G4UIcommand
|
||||
{ return rangeString; };
|
||||
inline G4int GetGuidanceEntries() const
|
||||
{ return commandGuidance.size(); }
|
||||
inline const G4String GetGuidanceLine(int i) const
|
||||
inline const G4String GetGuidanceLine(G4int i) const
|
||||
{ return commandGuidance[i]; }
|
||||
inline const G4String GetCommandPath() const
|
||||
{ return commandPath; }
|
||||
@@ -116,8 +114,10 @@ class G4UIcommand
|
||||
{ return commandName; }
|
||||
inline G4int GetParameterEntries() const
|
||||
{ return parameter.size(); }
|
||||
inline G4UIparameter * GetParameter(int i) const
|
||||
inline G4UIparameter * GetParameter(G4int i) const
|
||||
{ return parameter[i]; }
|
||||
inline G4std::vector<G4ApplicationState>* GetStateList()
|
||||
{ return &availabelStateList; }
|
||||
public: // with description
|
||||
inline void SetParameter(G4UIparameter *const newParameter)
|
||||
{
|
||||
@@ -147,15 +147,15 @@ class G4UIcommand
|
||||
}
|
||||
|
||||
protected:
|
||||
int CheckNewValue(G4String newValue);
|
||||
G4int CheckNewValue(G4String newValue);
|
||||
|
||||
// --- the following is used by CheckNewValue() --------
|
||||
private:
|
||||
int TypeCheck(G4String newValue);
|
||||
int RangeCheck(G4String newValue);
|
||||
int IsInt(const char* str, short maxLength);
|
||||
int IsDouble(const char* str);
|
||||
int ExpectExponent(const char* str);
|
||||
G4int TypeCheck(G4String newValue);
|
||||
G4int RangeCheck(G4String newValue);
|
||||
G4int IsInt(const char* str, short maxLength);
|
||||
G4int IsDouble(const char* str);
|
||||
G4int ExpectExponent(const char* str);
|
||||
// syntax nodes
|
||||
yystype Expression( void );
|
||||
yystype LogicalORExpression( void );
|
||||
@@ -167,26 +167,26 @@ class G4UIcommand
|
||||
yystype UnaryExpression( void );
|
||||
yystype PrimaryExpression( void );
|
||||
// semantics routines
|
||||
int Eval2( yystype arg1, int op, yystype arg2 );
|
||||
int CompareInt( int arg1, int op, int arg2);
|
||||
int CompareDouble( double arg1, int op, double arg2);
|
||||
G4int Eval2( yystype arg1, G4int op, yystype arg2 );
|
||||
G4int CompareInt( G4int arg1, G4int op, G4int arg2);
|
||||
G4int CompareDouble( G4double arg1, G4int op, G4double arg2);
|
||||
// utility
|
||||
tokenNum Yylex( void ); // returns next token
|
||||
unsigned IndexOf( G4String ); // returns the index of the var name
|
||||
unsigned IsParameter( G4String ); // returns 1 or 0
|
||||
int G4UIpGetc( void ); // read one char from rangeBuf
|
||||
int G4UIpUngetc( int c ); // put back
|
||||
int Backslash( int c );
|
||||
int Follow( int expect, int ifyes, int ifno );
|
||||
G4String TokenToStr(int token);
|
||||
G4int G4UIpGetc( void ); // read one char from rangeBuf
|
||||
G4int G4UIpUngetc( G4int c ); // put back
|
||||
G4int Backslash( G4int c );
|
||||
G4int Follow( G4int expect, G4int ifyes, G4int ifno );
|
||||
G4String TokenToStr(G4int token);
|
||||
void PrintToken(void); // for debug
|
||||
// data
|
||||
G4String rangeBuf;
|
||||
int bp; // buffer pointer for rangeBuf
|
||||
G4int bp; // buffer pointer for rangeBuf
|
||||
tokenNum token;
|
||||
yystype yylval;
|
||||
G4std::vector<yystype> newVal;
|
||||
int paramERR;
|
||||
G4int paramERR;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcommandStatus.hh,v 1.2.4.1 2001/06/28 19:10:15 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIcommandStatus.hh,v 1.4 2001/10/04 23:15:27 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
|
||||
#ifndef G4UIcommandStatus_h
|
||||
@@ -35,7 +35,8 @@ enum G4UIcommandStatus
|
||||
fIllegalApplicationState = 200,
|
||||
fParameterOutOfRange = 300,
|
||||
fParameterUnreadable = 400,
|
||||
fParameterOutOfCandidates = 500
|
||||
fParameterOutOfCandidates = 500,
|
||||
fAliasNotFound = 600
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcommandTree.hh,v 1.7.2.1 2001/06/28 19:10:15 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIcommandTree.hh,v 1.12 2001/10/16 08:14:31 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
|
||||
#ifndef G4UIcommandTree_h
|
||||
@@ -31,7 +31,6 @@
|
||||
|
||||
#include "G4UIcommand.hh"
|
||||
#include "globals.hh"
|
||||
//#include "g4rw/tpordvec.h"
|
||||
#include "g4std/vector"
|
||||
|
||||
// class description:
|
||||
@@ -47,8 +46,8 @@ class G4UIcommandTree
|
||||
G4UIcommandTree(G4String thePathName);
|
||||
G4UIcommandTree(const char * thePathName);
|
||||
~G4UIcommandTree();
|
||||
int operator==(const G4UIcommandTree &right) const;
|
||||
int operator!=(const G4UIcommandTree &right) const;
|
||||
G4int operator==(const G4UIcommandTree &right) const;
|
||||
G4int operator!=(const G4UIcommandTree &right) const;
|
||||
|
||||
public:
|
||||
void AddNewCommand(G4UIcommand * newCommand);
|
||||
@@ -57,8 +56,12 @@ class G4UIcommandTree
|
||||
void List();
|
||||
void ListCurrent();
|
||||
void ListCurrentWithNum();
|
||||
void CreateHTML();
|
||||
|
||||
private:
|
||||
G4String CreateFileName(G4String pName);
|
||||
G4String ModStr(G4String str);
|
||||
|
||||
G4std::vector<G4UIcommand*> command;
|
||||
G4std::vector<G4UIcommandTree*> tree;
|
||||
G4UIcommand *guidance;
|
||||
@@ -73,7 +76,7 @@ class G4UIcommandTree
|
||||
{ return tree.size(); };
|
||||
inline G4int GetCommandEntry() const
|
||||
{ return command.size(); };
|
||||
inline G4UIcommandTree * GetTree(int i)
|
||||
inline G4UIcommandTree * GetTree(G4int i)
|
||||
{ return tree[i-1]; };
|
||||
inline G4UIcommandTree * GetTree(G4String comName)
|
||||
{
|
||||
@@ -84,7 +87,7 @@ class G4UIcommandTree
|
||||
}
|
||||
return NULL;
|
||||
};
|
||||
inline G4UIcommand * GetCommand(int i)
|
||||
inline G4UIcommand * GetCommand(G4int i)
|
||||
{ return command[i-1]; };
|
||||
inline const G4String GetTitle() const
|
||||
{
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcontrolMessenger.hh,v 1.3.4.1 2001/06/28 19:10:16 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIcontrolMessenger.hh,v 1.9 2001/10/11 01:37:58 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
|
||||
#ifndef G4UIcontrolMessenger_h
|
||||
@@ -34,6 +34,7 @@ class G4UIdirectory;
|
||||
class G4UIcmdWithAString;
|
||||
class G4UIcmdWithAnInteger;
|
||||
class G4UIcmdWithoutParameter;
|
||||
class G4UIcommand;
|
||||
|
||||
// class description:
|
||||
// This class is a concrete class of G4UImessenger which defines
|
||||
@@ -41,10 +42,18 @@ class G4UIcmdWithoutParameter;
|
||||
// this messenger are
|
||||
// /control/
|
||||
// /control/execute
|
||||
// /control/loop
|
||||
// /control/foreach
|
||||
// /control/suppressAbortion
|
||||
// /control/verbose
|
||||
// /control/saveHistory
|
||||
// /control/stopSavingHistory
|
||||
// /control/alias
|
||||
// /control/unalias
|
||||
// /control/listAlias
|
||||
// /control/shell
|
||||
// /control/manual
|
||||
// /control/createHTML
|
||||
|
||||
class G4UIcontrolMessenger : public G4UImessenger
|
||||
{
|
||||
@@ -57,10 +66,18 @@ class G4UIcontrolMessenger : public G4UImessenger
|
||||
private:
|
||||
G4UIdirectory * controlDirectory;
|
||||
G4UIcmdWithAString * ExecuteCommand;
|
||||
G4UIcmdWithAnInteger * suppressAbortionCommand;
|
||||
G4UIcmdWithAnInteger * verboseCommand;
|
||||
G4UIcmdWithAString * historyCommand;
|
||||
G4UIcmdWithoutParameter * stopStoreHistoryCommand;
|
||||
G4UIcommand * aliasCommand;
|
||||
G4UIcmdWithAString * unaliasCommand;
|
||||
G4UIcmdWithoutParameter * listAliasCommand;
|
||||
G4UIcmdWithAString * shellCommand;
|
||||
G4UIcommand * loopCommand;
|
||||
G4UIcommand * foreachCommand;
|
||||
G4UIcmdWithAString * ManualCommand;
|
||||
G4UIcmdWithAString * HTMLCommand;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIdirectory.hh,v 1.3.4.1 2001/06/28 19:10:16 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIdirectory.hh,v 1.4 2001/07/11 10:01:14 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -21,24 +21,25 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UImanager.hh,v 1.8.2.1 2001/06/28 19:10:16 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UImanager.hh,v 1.16 2001/10/16 08:14:31 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
|
||||
#ifndef G4UImanager_h
|
||||
#define G4UImanager_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "g4rw/ctoken.h"
|
||||
//#include "g4rw/tvordvec.h"
|
||||
|
||||
#include "g4std/vector"
|
||||
#include "g4std/fstream"
|
||||
#include "G4VStateDependent.hh"
|
||||
#include "G4UIcommandStatus.hh"
|
||||
class G4UIcommandTree;
|
||||
class G4UIcommand;
|
||||
class G4UIsession;
|
||||
class G4UIcontrolMessenger;
|
||||
class G4UnitsMessenger;
|
||||
class G4UIaliasList;
|
||||
|
||||
// class description:
|
||||
//
|
||||
@@ -61,8 +62,8 @@ class G4UImanager : public G4VStateDependent
|
||||
private:
|
||||
G4UImanager(const G4UImanager &right);
|
||||
const G4UImanager & operator=(const G4UImanager &right);
|
||||
int operator==(const G4UImanager &right) const;
|
||||
int operator!=(const G4UImanager &right) const;
|
||||
G4int operator==(const G4UImanager &right) const;
|
||||
G4int operator!=(const G4UImanager &right) const;
|
||||
|
||||
public: // with description
|
||||
G4String GetCurrentValues(const char * aCommand);
|
||||
@@ -75,8 +76,18 @@ class G4UImanager : public G4VStateDependent
|
||||
void RemoveCommand(G4UIcommand * aCommand);
|
||||
// This command remove the registered command. After invokation of this
|
||||
// command, that particular command cannot be applied.
|
||||
void ExecuteMacroFile(const char * fileName);
|
||||
void ExecuteMacroFile(G4String fileName);
|
||||
// A macro file defined by the argument will be read by G4UIbatch object.
|
||||
void Loop(const char * macroFile,const char * variableName,
|
||||
G4double initialValue,G4double finalValue,G4double stepSize=1.0);
|
||||
void Loop(G4String macroFile,G4String variableName,
|
||||
G4double initialValue,G4double finalValue,G4double stepSize=1.0);
|
||||
// Execute a macro file more than once with a loop counter.
|
||||
void Foreach(const char * macroFile,const char * variableName,const char * candidates);
|
||||
void Foreach(G4String macroFile,G4String variableName,G4String candidates);
|
||||
// Execute a macro file more than once with an aliased variable which takes
|
||||
// a value in the candidate list.
|
||||
G4int ApplyCommand(const char * aCommand);
|
||||
G4int ApplyCommand(G4String aCommand);
|
||||
// These two methods are identical. A command (and parameter(s)) given
|
||||
@@ -95,6 +106,26 @@ class G4UImanager : public G4VStateDependent
|
||||
void ListCommands(G4String direc);
|
||||
// All commands registored under the given directory will be listed to
|
||||
// G4cout.
|
||||
void SetAlias(const char * aliasLine);
|
||||
void SetAlias(G4String aliasLine);
|
||||
// Define an alias. The first word of "aliasLine" string is the
|
||||
// alias name and the remaining word(s) is(are) string value
|
||||
// to be aliased.
|
||||
void RemoveAlias(const char * aliasName);
|
||||
void RemoveAlias(G4String aliasName);
|
||||
// Remove the defined alias.
|
||||
void ListAlias();
|
||||
// Print all aliases.
|
||||
G4String SolveAlias(G4String aCmd);
|
||||
// Convert a command string which contains alias(es).
|
||||
void CreateHTML(const char* dir = "/");
|
||||
// Generate HTML files for defined UI commands
|
||||
|
||||
|
||||
public:
|
||||
void LoopS(G4String valueList);
|
||||
void ForeachS(G4String valueList);
|
||||
// These methods are used by G4UIcontrolMessenger to use Loop() and Foreach() methods.
|
||||
virtual G4bool Notify(G4ApplicationState requestedState);
|
||||
// This method is exclusively invoked by G4StateManager and the user
|
||||
// must not use this method.
|
||||
@@ -123,6 +154,7 @@ class G4UImanager : public G4VStateDependent
|
||||
G4std::ofstream historyFile;
|
||||
G4bool saveHistory;
|
||||
G4std::vector<G4String> histVec;
|
||||
G4UIaliasList* aliasList;
|
||||
|
||||
G4bool pauseAtBeginOfEvent;
|
||||
G4bool pauseAtEndOfEvent;
|
||||
@@ -130,11 +162,11 @@ class G4UImanager : public G4VStateDependent
|
||||
|
||||
public: // with description
|
||||
G4String GetCurrentStringValue(const char * aCommand,
|
||||
int parameterNumber=1, G4bool reGet=true);
|
||||
G4int parameterNumber=1, G4bool reGet=true);
|
||||
G4int GetCurrentIntValue(const char * aCommand,
|
||||
int parameterNumber=1, G4bool reGet=true);
|
||||
G4int parameterNumber=1, G4bool reGet=true);
|
||||
G4double GetCurrentDoubleValue(const char * aCommand,
|
||||
int parameterNumber=1, G4bool reGet=true);
|
||||
G4int parameterNumber=1, G4bool reGet=true);
|
||||
G4String GetCurrentStringValue(const char * aCommand,
|
||||
const char * aParameterName, G4bool reGet=true);
|
||||
G4int GetCurrentIntValue(const char * aCommand,
|
||||
@@ -165,12 +197,12 @@ class G4UImanager : public G4VStateDependent
|
||||
|
||||
public:
|
||||
inline G4UIcommandTree * GetTree() const
|
||||
{ return treeTop; };
|
||||
{ return treeTop; }
|
||||
inline G4UIsession * GetSession() const
|
||||
{ return session; };
|
||||
{ return session; }
|
||||
public: // with description
|
||||
inline void SetSession(G4UIsession *const value)
|
||||
{ session = value; };
|
||||
{ session = value; }
|
||||
// This method defines the active (G)UI session.
|
||||
void SetCoutDestination(G4UIsession *const value);
|
||||
// This method defines the destination of G4cout/G4cerr stream.
|
||||
@@ -180,11 +212,11 @@ class G4UImanager : public G4VStateDependent
|
||||
|
||||
public:
|
||||
inline void SetVerboseLevel(G4int val)
|
||||
{ verboseLevel = val; };
|
||||
{ verboseLevel = val; }
|
||||
inline G4int GetVerboseLevel() const
|
||||
{ return verboseLevel; };
|
||||
{ return verboseLevel; }
|
||||
inline G4int GetNumberOfHistory() const
|
||||
{ return histVec.size(); };
|
||||
{ return histVec.size(); }
|
||||
inline G4String GetPreviousCommand(G4int i) const
|
||||
{
|
||||
G4String st;
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UImessenger.hh,v 1.4.4.1 2001/06/28 19:10:16 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UImessenger.hh,v 1.6 2001/10/11 13:29:16 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
|
||||
#ifndef G4UImessenger_h
|
||||
@@ -64,8 +64,8 @@ class G4UImessenger
|
||||
// to value(s) of type(s) of the parameter(s). Convert methods corresponding
|
||||
// to the type of the command can be used if the command is an object of
|
||||
// G4UIcmdXXX classes.
|
||||
|
||||
public:
|
||||
// For G4RWTPtrOrderedVector...
|
||||
G4bool operator == (const G4UImessenger& messenger) const;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIparameter.hh,v 1.3.4.1 2001/06/28 19:10:16 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIparameter.hh,v 1.5 2001/10/16 08:14:31 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// ---------------------------------------------------------------------
|
||||
@@ -63,8 +63,8 @@ class G4UIparameter
|
||||
// NOT to invoke this by him/herself.
|
||||
|
||||
public:
|
||||
int operator==(const G4UIparameter &right) const;
|
||||
int operator!=(const G4UIparameter &right) const;
|
||||
G4int operator==(const G4UIparameter &right) const;
|
||||
G4int operator!=(const G4UIparameter &right) const;
|
||||
|
||||
G4int CheckNewValue(G4String newValue);
|
||||
void List();
|
||||
@@ -141,12 +141,12 @@ class G4UIparameter
|
||||
|
||||
private:
|
||||
// --- the following is used by CheckNewValue() -------
|
||||
int TypeCheck(G4String newValue );
|
||||
int RangeCheck(G4String newValue );
|
||||
int CandidateCheck(G4String newValue );
|
||||
int IsInt(const char* str, short maxDigit);
|
||||
int IsDouble(const char* str);
|
||||
int ExpectExponent(const char* str);
|
||||
G4int TypeCheck(G4String newValue );
|
||||
G4int RangeCheck(G4String newValue );
|
||||
G4int CandidateCheck(G4String newValue );
|
||||
G4int IsInt(const char* str, short maxDigit);
|
||||
G4int IsDouble(const char* str);
|
||||
G4int ExpectExponent(const char* str);
|
||||
// syntax nodes
|
||||
yystype Expression( void );
|
||||
yystype LogicalORExpression( void );
|
||||
@@ -158,24 +158,24 @@ class G4UIparameter
|
||||
yystype UnaryExpression( void );
|
||||
yystype PrimaryExpression( void );
|
||||
// semantics routines
|
||||
int Eval2( yystype arg1, int op, yystype arg2 );
|
||||
int CompareInt( int arg1, int op, int arg2);
|
||||
int CompareDouble( double arg1, int op, double arg2);
|
||||
G4int Eval2( yystype arg1, G4int op, yystype arg2 );
|
||||
G4int CompareInt( G4int arg1, G4int op, G4int arg2);
|
||||
G4int CompareDouble( double arg1, G4int op, double arg2);
|
||||
// utility
|
||||
tokenNum Yylex( void ); // returns next token
|
||||
int G4UIpGetc( void ); // read one char from rangeBuf
|
||||
int G4UIpUngetc( int c ); // put back
|
||||
int Backslash( int c );
|
||||
int Follow( int expect, int ifyes, int ifno );
|
||||
G4String TokenToStr(int token);
|
||||
G4int G4UIpGetc( void ); // read one char from rangeBuf
|
||||
G4int G4UIpUngetc( G4int c ); // put back
|
||||
G4int Backslash( G4int c );
|
||||
G4int Follow( G4int expect, G4int ifyes, G4int ifno );
|
||||
G4String TokenToStr(G4int token);
|
||||
//void PrintToken(void); // debug
|
||||
// data
|
||||
G4String rangeBuf;
|
||||
int bp; // buffer pointer for rangeBuf
|
||||
G4int bp; // buffer pointer for rangeBuf
|
||||
tokenNum token;
|
||||
yystype yylval;
|
||||
yystype newVal;
|
||||
int paramERR;
|
||||
G4int paramERR;
|
||||
//------------ end of CheckNewValue() related member --------------
|
||||
|
||||
};
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIsession.hh,v 1.3.4.1 2001/06/28 19:10:16 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UIsession.hh,v 1.4 2001/07/11 10:01:14 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
// $id$
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UItokenNum.hh,v 1.2.4.1 2001/06/28 19:10:16 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UItokenNum.hh,v 1.4 2001/10/16 08:14:31 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
// G4UItokenNum.hh
|
||||
|
||||
@@ -51,11 +51,11 @@ enum tokenNum {
|
||||
|
||||
typedef struct yystype {
|
||||
tokenNum type;
|
||||
double D;
|
||||
int I;
|
||||
G4double D;
|
||||
G4int I;
|
||||
char C;
|
||||
G4String S;
|
||||
int operator==(const yystype &right) const
|
||||
G4int operator==(const yystype &right) const
|
||||
{ return (this == &right); }
|
||||
} yystype;
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UnitsMessenger.hh,v 1.3.4.1 2001/06/28 19:10:16 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4UnitsMessenger.hh,v 1.4 2001/07/11 10:01:15 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
// class description
|
||||
//
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VFlavoredParallelWorld.hh,v 1.2.4.1 2001/06/28 19:10:16 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4VFlavoredParallelWorld.hh,v 1.3 2001/07/11 10:01:15 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// Abstract interface for GEANT4 Flavored Parallel World.
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VGlobalFastSimulationManager.hh,v 1.2.4.1 2001/06/28 19:10:16 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4VGlobalFastSimulationManager.hh,v 1.3 2001/07/11 10:01:15 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// Abstract interface for GEANT4 Global Fast Simulation Manager.
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VGraphicsScene.hh,v 1.5.4.1 2001/06/28 19:10:16 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4VGraphicsScene.hh,v 1.8 2001/08/14 18:19:14 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
// John Allison 19th July 1996
|
||||
//
|
||||
// Class Description:
|
||||
@@ -48,6 +48,7 @@ class G4PhysicalVolumeModel;
|
||||
class G4Polycone;
|
||||
class G4Polyhedra;
|
||||
class G4Polyline;
|
||||
class G4Scale;
|
||||
class G4Text;
|
||||
class G4Circle;
|
||||
class G4Square;
|
||||
@@ -91,7 +92,8 @@ public: // With description
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// Functions for adding graphics primitives to the scene handler.
|
||||
|
||||
virtual void BeginPrimitives (const G4Transform3D& objectTransformation) = 0;
|
||||
virtual void BeginPrimitives
|
||||
(const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
// IMPORTANT: invoke this from your polymorphic versions, e.g.:
|
||||
// void MyXXXSceneHandler::BeginPrimitives
|
||||
// (const G4Transform3D& objectTransformation) {
|
||||
@@ -107,6 +109,7 @@ public: // With description
|
||||
// }
|
||||
|
||||
virtual void AddPrimitive (const G4Polyline&) = 0;
|
||||
virtual void AddPrimitive (const G4Scale&) = 0;
|
||||
virtual void AddPrimitive (const G4Text&) = 0;
|
||||
virtual void AddPrimitive (const G4Circle&) = 0;
|
||||
virtual void AddPrimitive (const G4Square&) = 0;
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VVisManager.hh,v 1.4.4.1 2001/06/28 19:10:17 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4VVisManager.hh,v 1.6 2001/08/17 22:49:26 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
// John Allison 19/Oct/1996.
|
||||
//
|
||||
// Class Description:
|
||||
@@ -71,6 +71,7 @@
|
||||
class G4Polyline;
|
||||
class G4Text;
|
||||
class G4Circle;
|
||||
class G4Scale;
|
||||
class G4Square;
|
||||
class G4Polymarker;
|
||||
class G4Polyhedron;
|
||||
@@ -94,36 +95,50 @@ public:
|
||||
|
||||
public: // With description
|
||||
|
||||
virtual void Draw (const G4Polyline&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
virtual void Draw (const G4Text&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
// Draw methods for Geant4 Visualization Primitives, useful
|
||||
// for representing hits, digis, etc.
|
||||
|
||||
virtual void Draw (const G4Circle&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
virtual void Draw (const G4Square&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
virtual void Draw (const G4Polymarker&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
virtual void Draw (const G4Polyhedron&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
virtual void Draw (const G4NURBS&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
virtual void Draw (const G4VSolid&, const G4VisAttributes&,
|
||||
virtual void Draw (const G4Polyhedron&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
virtual void Draw (const G4Polyline&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
virtual void Draw (const G4Polymarker&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
virtual void Draw (const G4Scale&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
virtual void Draw (const G4Square&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
virtual void Draw (const G4Text&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
// Draw methods for Geant4 Geometry Objects as if they were
|
||||
// Visualization Primitives. Useful for representing hits.
|
||||
|
||||
virtual void Draw (const G4LogicalVolume&, const G4VisAttributes&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
virtual void Draw (const G4VPhysicalVolume&, const G4VisAttributes&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
virtual void Draw (const G4VSolid&, const G4VisAttributes&,
|
||||
const G4Transform3D& objectTransformation = G4Transform3D::Identity) = 0;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Other methods...
|
||||
|
||||
virtual void GeometryHasChanged () = 0;
|
||||
// This is used by the run manager to notify a change of geometry.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user