Import Geant4 9.3.0 source tree
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01DetectorConstruction.hh,v 1.5 2006/06/29 16:30:50 gunter Exp $
|
||||
// $Id: A01DetectorConstruction.hh,v 1.6 2009/11/21 00:22:55 perl Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
#include "globals.hh"
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
#include "G4RotationMatrix.hh"
|
||||
#include "G4FieldManager.hh"
|
||||
|
||||
class G4VPhysicalVolume;
|
||||
class G4Material;
|
||||
@@ -60,6 +61,7 @@ class A01DetectorConstruction : public G4VUserDetectorConstruction
|
||||
private:
|
||||
A01DetectorConstMessenger* messenger;
|
||||
A01MagneticField* magneticField;
|
||||
G4FieldManager* fieldMgr;
|
||||
|
||||
G4Material* air;
|
||||
G4Material* argonGas;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01EMPhysics.hh,v 1.6 2006/06/29 16:30:58 gunter Exp $
|
||||
// $Id: A01EMPhysics.hh,v 1.7 2009/11/21 01:00:19 perl Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
// 09-Oct-2003 Chhange gamma, electron, positorn process T. Koi
|
||||
@@ -40,7 +40,7 @@
|
||||
#include "G4PhotoElectricEffect.hh"
|
||||
#include "G4ComptonScattering.hh"
|
||||
#include "G4GammaConversion.hh"
|
||||
#include "G4MultipleScattering.hh"
|
||||
#include "G4eMultipleScattering.hh"
|
||||
#include "G4eIonisation.hh"
|
||||
#include "G4eBremsstrahlung.hh"
|
||||
#include "G4eplusAnnihilation.hh"
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01HadronPhysics.hh,v 1.6 2006/06/29 16:31:14 gunter Exp $
|
||||
// $Id: A01HadronPhysics.hh,v 1.7 2009/11/21 01:00:19 perl Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
// 10-Oct-2003 Full Hadron Processes with Parameterization Model T. Koi
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "G4ios.hh"
|
||||
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
#include "G4MultipleScattering.hh"
|
||||
#include "G4hMultipleScattering.hh"
|
||||
#include "G4hIonisation.hh"
|
||||
|
||||
// Hadronic Processes
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01IonPhysics.hh,v 1.7 2006/06/29 16:31:22 gunter Exp $
|
||||
// $Id: A01IonPhysics.hh,v 1.8 2009/11/21 01:00:19 perl Exp $
|
||||
// --------------------------------------------------------------
|
||||
// 05-Jan-2004 Add G4ionIonisation T. Koi
|
||||
//
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
#include "G4hIonisation.hh"
|
||||
#include "G4ionIonisation.hh"
|
||||
#include "G4MultipleScattering.hh"
|
||||
#include "G4hMultipleScattering.hh"
|
||||
|
||||
class A01IonPhysics : public G4VPhysicsConstructor
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01MagneticField.hh,v 1.4 2006/06/29 16:31:27 gunter Exp $
|
||||
// $Id: A01MagneticField.hh,v 1.5 2009/11/21 00:22:55 perl Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -40,15 +40,12 @@ class A01MagneticField : public G4MagneticField
|
||||
A01MagneticField();
|
||||
~A01MagneticField();
|
||||
|
||||
virtual void GetFieldValue( const double Point[3],
|
||||
double *Bfield ) const;
|
||||
virtual void GetFieldValue(const G4double Point[4],double *Bfield ) const;
|
||||
|
||||
private:
|
||||
A01MagneticFieldMessenger* messenger;
|
||||
G4double By;
|
||||
G4double rmax_sq;
|
||||
G4double ymax;
|
||||
|
||||
|
||||
public:
|
||||
inline void SetField(G4double val) { By = val; }
|
||||
inline G4double GetField() const { return By; }
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01MuonPhysics.hh,v 1.6 2006/06/29 16:31:31 gunter Exp $
|
||||
// $Id: A01MuonPhysics.hh,v 1.8 2009/12/02 22:45:09 perl Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
// 09-Oct-2003 mu+- tau+- processes are changed by T. Koi
|
||||
@@ -36,7 +36,7 @@
|
||||
#include "G4ios.hh"
|
||||
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
#include "G4MultipleScattering.hh"
|
||||
#include "G4MuMultipleScattering.hh"
|
||||
#include "G4MuBremsstrahlung.hh"
|
||||
#include "G4MuPairProduction.hh"
|
||||
#include "G4MuIonisation.hh"
|
||||
|
||||
@@ -1,134 +0,0 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * 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. 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 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: A01Trajectory.hh,v 1.6 2006/06/29 16:31:41 gunter Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
|
||||
class A01Trajectory;
|
||||
|
||||
#ifndef A01Trajectory_h
|
||||
#define A01Trajectory_h 1
|
||||
|
||||
#include "G4VTrajectory.hh"
|
||||
#include "G4Allocator.hh"
|
||||
#include <stdlib.h> // Include from 'system'
|
||||
#include "G4ios.hh" // Include from 'system'
|
||||
#include <vector> //
|
||||
#include <iostream> //
|
||||
#include "globals.hh" // Include from 'global'
|
||||
#include "G4ParticleDefinition.hh" // Include from 'particle+matter'
|
||||
#include "G4TrajectoryPoint.hh" // Include from 'tracking'
|
||||
#include "G4Track.hh"
|
||||
#include "G4Step.hh"
|
||||
|
||||
typedef std::vector<G4VTrajectoryPoint*> A01TrajectoryPointContainer;
|
||||
|
||||
class G4Polyline; // Forward declaration.
|
||||
|
||||
///////////////////
|
||||
class A01Trajectory : public G4VTrajectory
|
||||
///////////////////
|
||||
{
|
||||
|
||||
//--------
|
||||
public:
|
||||
//--------
|
||||
|
||||
// Constructor/Destrcutor
|
||||
|
||||
A01Trajectory();
|
||||
|
||||
A01Trajectory(const G4Track* aTrack);
|
||||
A01Trajectory(A01Trajectory &);
|
||||
virtual ~A01Trajectory();
|
||||
|
||||
// Operators
|
||||
inline void* operator new(size_t);
|
||||
inline void operator delete(void*);
|
||||
inline int operator == (const A01Trajectory& right) const
|
||||
{return (this==&right);}
|
||||
|
||||
// Get/Set functions
|
||||
inline G4int GetTrackID() const
|
||||
{ return fTrackID; }
|
||||
inline G4int GetParentID() const
|
||||
{ return fParentID; }
|
||||
inline G4String GetParticleName() const
|
||||
{ return ParticleName; }
|
||||
inline G4double GetCharge() const
|
||||
{ return PDGCharge; }
|
||||
inline G4int GetPDGEncoding() const
|
||||
{ return PDGEncoding; }
|
||||
inline G4ThreeVector GetInitialMomentum() const
|
||||
{ return InitialMomentum; }
|
||||
|
||||
// Other member functions
|
||||
virtual void ShowTrajectory() const;
|
||||
virtual void ShowTrajectory(std::ostream& o) const;
|
||||
virtual void DrawTrajectory(G4int i_mode=0) const;
|
||||
virtual void AppendStep(const G4Step* aStep);
|
||||
virtual void MergeTrajectory(G4VTrajectory* secondTrajectory);
|
||||
|
||||
G4ParticleDefinition* GetParticleDefinition();
|
||||
|
||||
//---------
|
||||
private:
|
||||
//---------
|
||||
|
||||
A01TrajectoryPointContainer* positionRecord;
|
||||
G4int fTrackID;
|
||||
G4int fParentID;
|
||||
G4ParticleDefinition* fpParticleDefinition;
|
||||
G4String ParticleName;
|
||||
G4double PDGCharge;
|
||||
G4int PDGEncoding;
|
||||
// FIXME not initialized !!!
|
||||
G4ThreeVector InitialMomentum;
|
||||
|
||||
//---------
|
||||
public:
|
||||
//---------
|
||||
virtual int GetPointEntries() const
|
||||
{ return positionRecord->size(); }
|
||||
virtual G4VTrajectoryPoint* GetPoint(G4int i) const
|
||||
{ return (*positionRecord)[i]; }
|
||||
};
|
||||
|
||||
extern G4Allocator<A01Trajectory> myTrajectoryAllocator;
|
||||
|
||||
inline void* A01Trajectory::operator new(size_t)
|
||||
{
|
||||
void* aTrajectory;
|
||||
aTrajectory = (void*)myTrajectoryAllocator.MallocSingle();
|
||||
return aTrajectory;
|
||||
}
|
||||
|
||||
inline void A01Trajectory::operator delete(void* aTrajectory)
|
||||
{
|
||||
myTrajectoryAllocator.FreeSingle((A01Trajectory*)aTrajectory);
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user