Import Geant4 0.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SteppingManager.hh,v 2.4 1998/08/26 01:55:08 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4SteppingManager.hh,v 1.3 1999/04/16 02:14:50 tsasaki Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -93,6 +93,7 @@ class G4SteppingManager
|
||||
void SetUserAction(G4UserSteppingAction* apAction);
|
||||
G4Track* GetTrack() const;
|
||||
void SetVerboseLevel(G4int vLevel);
|
||||
void SetVerbose(G4VSteppingVerbose*);
|
||||
G4Step* GetStep() const;
|
||||
|
||||
|
||||
@@ -194,7 +195,7 @@ class G4SteppingManager
|
||||
|
||||
G4UserSteppingAction* fUserSteppingAction;
|
||||
|
||||
G4SteppingVerbose* fVerbose;
|
||||
G4VSteppingVerbose* fVerbose;
|
||||
|
||||
G4double PhysicalStep;
|
||||
G4double GeometricalStep;
|
||||
@@ -488,6 +489,10 @@ class G4SteppingManager
|
||||
verboseLevel = vLevel;
|
||||
}
|
||||
|
||||
inline void G4SteppingManager::SetVerbose(G4VSteppingVerbose* yourVerbose){
|
||||
fVerbose = yourVerbose;
|
||||
}
|
||||
|
||||
inline G4Step* G4SteppingManager::GetStep() const {
|
||||
return fStep;
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SteppingManager.icc,v 2.5 1998/11/18 17:46:43 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4SteppingManager.icc,v 1.2 1999/03/24 04:42:35 tsasaki Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SteppingVerbose.hh,v 2.2 1998/08/26 02:36:09 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4SteppingVerbose.hh,v 1.3 1999/03/24 04:42:47 tsasaki Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -34,28 +34,25 @@ class G4SteppingVerbose;
|
||||
#include <iomanip.h>
|
||||
|
||||
#include "globals.hh" // Include from 'global'
|
||||
#include "G4Navigator.hh" // Include from 'geometry'
|
||||
#include "G4LogicalVolume.hh" // Include from 'geometry'
|
||||
#include "G4VPhysicalVolume.hh" // Include from 'geometry'
|
||||
class G4Navigator;
|
||||
class G4VPhysicalVolume;
|
||||
#include "G4VSensitiveDetector.hh" // Include from 'hits/digi'
|
||||
#include "G4ProcessManager.hh" // Include from 'piim'
|
||||
class G4SteppingManager; // Include from 'tracking'
|
||||
#include "G4Track.hh" // Include from 'tracking'
|
||||
#include "G4TrackVector.hh" // Include from 'tracking'
|
||||
#include "G4TrackStatus.hh" // Include from 'tracking'
|
||||
class G4Track;
|
||||
#include "G4StepStatus.hh" // Include from 'tracking'
|
||||
#include "G4UserSteppingAction.hh" // Include from 'tracking'
|
||||
#include "G4Step.hh" // Include from 'tracking'
|
||||
#include "G4StepPoint.hh" // Include from 'tracking'
|
||||
#include "G4VTouchable.hh" // Include from 'geometry'
|
||||
#include "G4TouchableHistory.hh" // Include from 'geometry'
|
||||
class G4UserSteppingAction;
|
||||
class G4StepPoint;
|
||||
class G4VTouchable;
|
||||
#include "G4VSteppingVerbose.hh"
|
||||
|
||||
|
||||
class G4SteppingVerbose{
|
||||
class G4SteppingVerbose : public G4VSteppingVerbose {
|
||||
public:
|
||||
// Constructor/Destructor
|
||||
G4SteppingVerbose();
|
||||
G4SteppingVerbose(G4SteppingManager*);
|
||||
// G4SteppingVerbose();
|
||||
G4SteppingVerbose(G4SteppingManager* const );
|
||||
~G4SteppingVerbose();
|
||||
//
|
||||
void NewStep();
|
||||
@@ -71,11 +68,11 @@ public:
|
||||
void DPSLUserLimit();
|
||||
void DPSLPostStep();
|
||||
void DPSLAlongStep();
|
||||
void DPSLAlongStepDoItOneByOne();
|
||||
void DPSLPostStepDoItOneByOne();
|
||||
// void DPSLAlongStepDoItOneByOne();
|
||||
// void DPSLPostStepDoItOneByOne();
|
||||
void VerboseTrack();
|
||||
void VerboseParticleChange();
|
||||
|
||||
void ShowStep() const;
|
||||
//
|
||||
// Member data
|
||||
private:
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4TrackVector.hh,v 2.2 1998/08/26 01:55:48 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4TrackVector.hh,v 1.2 1999/03/24 04:43:04 tsasaki Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4TrackingManager.hh,v 2.1 1998/07/12 03:09:00 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4TrackingManager.hh,v 1.3 1999/04/15 08:47:07 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -38,7 +38,7 @@ class G4TrackingManager;
|
||||
#include "G4StepStatus.hh" // Include from 'tracking'
|
||||
#include "G4UserTrackingAction.hh" // Include from 'tracking'
|
||||
#include "G4UserSteppingAction.hh" // Include from 'tracking'
|
||||
#include "G4Trajectory.hh" // Include from 'tracking'
|
||||
#include "G4VTrajectory.hh" // Include from 'tracking'
|
||||
|
||||
|
||||
////////////////////////
|
||||
@@ -72,7 +72,8 @@ class G4TrackingManager
|
||||
|
||||
G4UserTrackingAction* GetUserTrackingAction() const;
|
||||
|
||||
G4Trajectory* GimmeTrajectory() const;
|
||||
G4VTrajectory* GimmeTrajectory() const;
|
||||
void SetTrajectory(G4VTrajectory* aTrajectory);
|
||||
|
||||
G4TrackVector* GimmeSecondaries() const;
|
||||
|
||||
@@ -84,6 +85,7 @@ class G4TrackingManager
|
||||
void SetVerboseLevel(G4int vLevel);
|
||||
G4int GetVerboseLevel() const;
|
||||
|
||||
|
||||
// Other member functions
|
||||
|
||||
void ProcessOneTrack(G4Track* apValueG4Track);
|
||||
@@ -112,7 +114,7 @@ class G4TrackingManager
|
||||
G4Track* fpTrack;
|
||||
G4SteppingManager* fpSteppingManager;
|
||||
G4UserTrackingAction* fpUserTrackingAction;
|
||||
G4Trajectory* fpTrajectory;
|
||||
G4VTrajectory* fpTrajectory;
|
||||
G4bool StoreTrajectory;
|
||||
G4int verboseLevel;
|
||||
|
||||
@@ -145,7 +147,7 @@ class G4TrackingManager
|
||||
return fpUserTrackingAction;
|
||||
}
|
||||
|
||||
inline G4Trajectory* G4TrackingManager::GimmeTrajectory() const {
|
||||
inline G4VTrajectory* G4TrackingManager::GimmeTrajectory() const {
|
||||
return fpTrajectory ;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4TrackingMessenger.hh,v 2.3 1998/07/12 03:55:58 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4TrackingMessenger.hh,v 1.2 1999/03/24 04:44:17 tsasaki Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Trajectory.hh,v 2.2 1998/07/13 17:28:53 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4Trajectory.hh,v 1.5 1999/05/25 21:04:22 stesting Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -34,9 +34,11 @@ class G4Trajectory;
|
||||
#ifndef G4Trajectory_h
|
||||
#define G4Trajectory_h 1
|
||||
|
||||
#include "G4VTrajectory.hh"
|
||||
#include "G4Allocator.hh"
|
||||
#include <stdlib.h> // Include from 'system'
|
||||
#include "G4ios.hh" // Include from 'system'
|
||||
#include <rw/tvordvec.h> // RWTValOrderedVector
|
||||
#include <rw/tpordvec.h> // RWTValOrderedVector
|
||||
#include "globals.hh" // Include from 'global'
|
||||
#include "G4ParticleDefinition.hh" // Include from 'particle+matter'
|
||||
#include "G4TrajectoryPoint.hh" // Include from 'tracking'
|
||||
@@ -46,7 +48,7 @@ class G4Trajectory;
|
||||
class G4Polyline; // Forward declaration.
|
||||
|
||||
///////////////////
|
||||
class G4Trajectory
|
||||
class G4Trajectory : public G4VTrajectory
|
||||
///////////////////
|
||||
{
|
||||
|
||||
@@ -55,12 +57,18 @@ class G4Trajectory
|
||||
//--------
|
||||
|
||||
// Constructor/Destrcutor
|
||||
G4Trajectory(G4Track* aTrack);
|
||||
|
||||
G4Trajectory();
|
||||
|
||||
G4Trajectory(const G4Track* aTrack);
|
||||
G4Trajectory(G4Trajectory &);
|
||||
~G4Trajectory();
|
||||
virtual ~G4Trajectory();
|
||||
|
||||
// Operators
|
||||
inline int operator == (const G4Trajectory& right){return (this==&right);};
|
||||
inline void* operator new(size_t);
|
||||
inline void operator delete(void*);
|
||||
inline int operator == (const G4Trajectory& right) const
|
||||
{return (this==&right);}
|
||||
|
||||
// Get/Set functions
|
||||
inline G4int GetTrackID() const
|
||||
@@ -75,12 +83,12 @@ class G4Trajectory
|
||||
{ return PDGEncoding; }
|
||||
|
||||
// Other member functions
|
||||
void ShowTrajectory();
|
||||
// Print all information of the trajectory to stdout
|
||||
|
||||
void DrawTrajectory(G4int i_mode=0);
|
||||
|
||||
void AppendStep(G4Step* aStep);
|
||||
virtual void ShowTrajectory() const;
|
||||
virtual void DrawTrajectory(G4int i_mode=0) const;
|
||||
virtual void AppendStep(const G4Step* aStep);
|
||||
virtual int GetPointEntries() const { return positionRecord->entries(); }
|
||||
virtual G4VTrajectoryPoint* GetPoint(G4int i) const
|
||||
{ return (*positionRecord)[i]; }
|
||||
|
||||
G4ParticleDefinition* GetParticleDefinition();
|
||||
|
||||
@@ -88,7 +96,7 @@ class G4Trajectory
|
||||
private:
|
||||
//---------
|
||||
|
||||
RWTValOrderedVector<G4TrajectoryPoint> positionRecord;
|
||||
RWTPtrOrderedVector<G4VTrajectoryPoint>* positionRecord;
|
||||
G4int fTrackID;
|
||||
G4int fParentID;
|
||||
G4String ParticleName;
|
||||
@@ -97,6 +105,20 @@ class G4Trajectory
|
||||
|
||||
};
|
||||
|
||||
extern G4Allocator<G4Trajectory> aTrajectoryAllocator;
|
||||
|
||||
inline void* G4Trajectory::operator new(size_t)
|
||||
{
|
||||
void* aTrajectory;
|
||||
aTrajectory = (void*)aTrajectoryAllocator.MallocSingle();
|
||||
return aTrajectory;
|
||||
}
|
||||
|
||||
inline void G4Trajectory::operator delete(void* aTrajectory)
|
||||
{
|
||||
aTrajectoryAllocator.FreeSingle((G4Trajectory*)aTrajectory);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4TrajectoryPoint.hh,v 2.1 1998/07/12 03:09:01 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4TrajectoryPoint.hh,v 1.3 1999/04/15 08:47:08 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -29,18 +29,17 @@
|
||||
//
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
class G4TrajectoryPoint;
|
||||
|
||||
#ifndef G4TrajectoryPoint_h
|
||||
#define G4TrajectoryPoint_h 1
|
||||
|
||||
#include "G4VTrajectoryPoint.hh"
|
||||
#include "globals.hh" // Include from 'global'
|
||||
#include "G4ThreeVector.hh" // Include from 'geometry'
|
||||
#include "G4Allocator.hh" // Include from 'particle+matter'
|
||||
|
||||
|
||||
////////////////////////
|
||||
class G4TrajectoryPoint
|
||||
class G4TrajectoryPoint : public G4VTrajectoryPoint
|
||||
////////////////////////
|
||||
{
|
||||
|
||||
@@ -52,7 +51,7 @@ class G4TrajectoryPoint
|
||||
G4TrajectoryPoint();
|
||||
G4TrajectoryPoint(G4ThreeVector pos);
|
||||
G4TrajectoryPoint(const G4TrajectoryPoint &right);
|
||||
~G4TrajectoryPoint();
|
||||
virtual ~G4TrajectoryPoint();
|
||||
|
||||
// Operators
|
||||
inline void *operator new(size_t);
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4UserSteppingAction.hh,v 2.0 1998/07/02 17:29:16 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4UserSteppingAction.hh,v 1.3 1999/04/15 08:47:09 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -24,13 +24,10 @@
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
class G4UserSteppingAction;
|
||||
|
||||
#ifndef G4UserSteppingAction_h
|
||||
#define G4UserSteppingAction_h 1
|
||||
|
||||
#include "globals.hh" // Include from 'global'
|
||||
#include "G4Track.hh" // Include from 'tracking'
|
||||
class G4Step;
|
||||
class G4SteppingManager; // Forward declaration
|
||||
|
||||
///////////////////////////
|
||||
@@ -43,28 +40,16 @@ class G4UserSteppingAction
|
||||
//--------
|
||||
|
||||
// Constructor and destructors
|
||||
G4UserSteppingAction(){}
|
||||
virtual ~G4UserSteppingAction(){}
|
||||
G4UserSteppingAction(){;}
|
||||
virtual ~G4UserSteppingAction(){;}
|
||||
|
||||
// Member functions
|
||||
void SetSteppingManagerPointer(G4SteppingManager* pValue);
|
||||
virtual void UserSteppingAction(){}
|
||||
virtual void UserSteppingAction(const G4Step* aStep){;}
|
||||
|
||||
//-----------
|
||||
//-----------
|
||||
protected:
|
||||
//-----------
|
||||
|
||||
// Member functions
|
||||
inline const G4SteppingManager* GetSteppingManager() {
|
||||
return fpSteppingManager;
|
||||
}
|
||||
inline G4SteppingManager* GetOmnipotentSteppingManager() {
|
||||
return fpSteppingManager;
|
||||
}
|
||||
|
||||
//---------
|
||||
private:
|
||||
//---------
|
||||
//-----------
|
||||
|
||||
// Member data
|
||||
G4SteppingManager* fpSteppingManager;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4UserTrackingAction.hh,v 2.0 1998/07/02 17:29:18 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4UserTrackingAction.hh,v 1.3 1999/04/15 08:47:10 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -30,6 +30,7 @@ class G4UserTrackingAction;
|
||||
#define G4UserTrackingAction_h 1
|
||||
|
||||
class G4TrackingManager; // Forward declaration
|
||||
class G4Track;
|
||||
|
||||
///////////////////////////
|
||||
class G4UserTrackingAction
|
||||
@@ -41,30 +42,18 @@ class G4UserTrackingAction
|
||||
//--------
|
||||
|
||||
// Constructor & Destructor
|
||||
G4UserTrackingAction(){};
|
||||
virtual ~G4UserTrackingAction(){}
|
||||
G4UserTrackingAction(){;}
|
||||
virtual ~G4UserTrackingAction(){;}
|
||||
|
||||
// Member functions
|
||||
void SetTrackingManagerPointer(G4TrackingManager* pValue);
|
||||
virtual void PreUserTrackingAction(){}
|
||||
virtual void PostUserTrackingAction(){}
|
||||
virtual void PreUserTrackingAction(const G4Track* aTrack){;}
|
||||
virtual void PostUserTrackingAction(const G4Track* aTrack){;}
|
||||
|
||||
//-----------
|
||||
protected:
|
||||
//-----------
|
||||
|
||||
// Member functions
|
||||
inline const G4TrackingManager* GetTrackingManager() {
|
||||
return fpTrackingManager;
|
||||
}
|
||||
inline G4TrackingManager* GetOmnipotentTrackingManager() {
|
||||
return fpTrackingManager;
|
||||
}
|
||||
|
||||
//---------
|
||||
private:
|
||||
//---------
|
||||
|
||||
// Member data
|
||||
G4TrackingManager* fpTrackingManager;
|
||||
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4VSteppingVerbose.hh,v 1.1 1999/03/24 04:45:47 tsasaki Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
//
|
||||
// G4VSteppingVerbose.hh
|
||||
//
|
||||
// Description:
|
||||
// This class manages the vervose outputs in G4SteppingManager.
|
||||
//
|
||||
//
|
||||
// Contact:
|
||||
// Questions and comments to this code should be sent to
|
||||
// Katsuya Amako (e-mail: Katsuya.Amako@kek.jp)
|
||||
// Takashi Sasaki (e-mail: Takashi.Sasaki@kek.jp)
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
#ifndef G4VSteppingVerbose_h
|
||||
#define G4VSteppingVerbose_h
|
||||
class G4SteppingManager;
|
||||
|
||||
class G4VSteppingVerbose{
|
||||
|
||||
public:
|
||||
// Constructor/Destructor
|
||||
G4VSteppingVerbose();
|
||||
G4VSteppingVerbose(G4SteppingManager*);
|
||||
virtual ~G4VSteppingVerbose();
|
||||
//
|
||||
virtual void NewStep() = 0;
|
||||
virtual void CopyState() = 0;
|
||||
virtual void AtRestDoItInvoked() = 0;
|
||||
virtual void AlongStepDoItAllDone() = 0;
|
||||
virtual void PostStepDoItAllDone() = 0;
|
||||
virtual void AlongStepDoItOneByOne() = 0;
|
||||
virtual void PostStepDoItOneByOne() = 0;
|
||||
virtual void StepInfo() = 0;
|
||||
virtual void TrackingStarted() = 0;
|
||||
virtual void DPSLStarted() = 0;
|
||||
virtual void DPSLUserLimit() = 0;
|
||||
virtual void DPSLPostStep() = 0;
|
||||
virtual void DPSLAlongStep() = 0;
|
||||
// virtual void DPSLAlongStepDoItOneByOne() = 0;
|
||||
// virtual void DPSLPostStepDoItOneByOne() = 0;
|
||||
virtual void VerboseTrack() = 0;
|
||||
virtual void VerboseParticleChange() = 0;
|
||||
};
|
||||
#endif
|
||||
@@ -0,0 +1,60 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4VTrajectory.hh,v 1.1 1999/04/15 08:47:10 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
//
|
||||
// G4VTrajectory.hh
|
||||
//
|
||||
// Description:
|
||||
// This is the abstract base class of a trajectory.
|
||||
//
|
||||
// Contact:
|
||||
// Questions and comments to this code should be sent to
|
||||
// Katsuya Amako (e-mail: Katsuya.Amako@kek.jp)
|
||||
// Makoto Asai (e-mail: asai@kekvax.kek.jp)
|
||||
// Takashi Sasaki (e-mail: Takashi.Sasaki@kek.jp)
|
||||
//
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
#ifndef G4VTrajectory_h
|
||||
#define G4VTrajectory_h 1
|
||||
|
||||
class G4Step;
|
||||
#include "G4VTrajectoryPoint.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4VTrajectory
|
||||
{
|
||||
public:
|
||||
|
||||
G4VTrajectory() {;}
|
||||
virtual ~G4VTrajectory() {;}
|
||||
|
||||
inline int operator == (const G4VTrajectory& right){return (this==&right);}
|
||||
|
||||
virtual void ShowTrajectory() const = 0;
|
||||
virtual void DrawTrajectory(G4int i_mode=0) const = 0;
|
||||
virtual void AppendStep(const G4Step*) = 0;
|
||||
virtual int GetPointEntries() const = 0;
|
||||
virtual G4VTrajectoryPoint* GetPoint(int) const = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 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: G4VTrajectoryPoint.hh,v 1.1 1999/04/15 08:47:11 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4VTrajectoryPoint_h
|
||||
#define G4VTrajectoryPoint_h 1
|
||||
|
||||
class G4VTrajectoryPoint
|
||||
{
|
||||
public:
|
||||
|
||||
G4VTrajectoryPoint() {;}
|
||||
virtual ~G4VTrajectoryPoint() {;}
|
||||
|
||||
inline int operator==(const G4VTrajectoryPoint& right) const
|
||||
{ return (this==&right); }
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user