Import Geant4 4.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:39:52 +02:00
parent 921d3b1cda
commit 330b82b769
4524 changed files with 178689 additions and 43575 deletions
@@ -0,0 +1,71 @@
//
// ********************************************************************
// * 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: G4ImportancePostStepDoIt.hh,v 1.4 2002/05/31 08:06:34 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4ImportancePostStepDoIt
//
// Class description:
//
// Used internally by importance sampling.
// It is responsible for the common part of importance sampling
// for the "mass" and "parallel" geometry.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4ImportancePostStepDoIt_hh
#define G4ImportancePostStepDoIt_hh G4ImportancePostStepDoIt_hh
class G4VImportanceSplitExaminer;
class G4ParticleChange;
class G4Track;
class G4Step;
class G4Nsplit_Weight;
class G4ImportancePostStepDoIt
{
public: // with description
G4ImportancePostStepDoIt();
// simply construct
~G4ImportancePostStepDoIt();
// simple destruct
void DoIt(const G4Track& aTrack,
G4ParticleChange *aParticleChange,
const G4Nsplit_Weight nw);
// Do the PostStepDoIt part common to importance sampling in the
// "mass" and "parallel" geometry.
private:
void Split(const G4Track &aTrack,
const G4Nsplit_Weight &nw,
G4ParticleChange *aParticleChange);
};
#endif
@@ -0,0 +1,98 @@
//
// ********************************************************************
// * 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: G4MScoreProcess.hh,v 1.3 2002/04/10 13:14:16 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4MScoreProcess
//
// Class description:
//
// Used internally by scoring in the "mass" world.
// This is a forced post step process messaging a "scorer"
// derived from G4VPScorer.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4MScoreProcess_hh
#define G4MScoreProcess_hh G4MScoreProcess_hh
#include "G4VProcess.hh"
class G4VPScorer;
class G4MScoreProcess : public G4VProcess
{
public: // with description
G4MScoreProcess(G4VPScorer &aScorer,
const G4String &aName = "MScoreProcess");
// take reference to scorer and coppy particle name and
// create a G4ParticleChange
virtual ~G4MScoreProcess();
// delete the G4ParticleChange
virtual G4double
PostStepGetPhysicalInteractionLength(const G4Track& aTrack,
G4double previousStepSize,
G4ForceCondition* condition);
// make processed being forced
virtual G4VParticleChange * PostStepDoIt(const G4Track&, const G4Step&);
// message "scorer" with G4Step and a G4PStep from the "mass"
// geometry
public: // without description
// no operation in AtRestDoIt and AlongStepDoIt
G4double
AlongStepGetPhysicalInteractionLength(const G4Track&,
G4double ,
G4double ,
G4double& ,
G4GPILSelection*) {return -1.0;}
G4double
AtRestGetPhysicalInteractionLength(const G4Track&,
G4ForceCondition*) {return -1.0;}
G4VParticleChange* AtRestDoIt(const G4Track&,
const G4Step&) {return 0;}
G4VParticleChange* AlongStepDoIt(const G4Track&,
const G4Step&) {return 0;}
private:
G4MScoreProcess(const G4MScoreProcess &);
G4MScoreProcess &operator=(const G4MScoreProcess &);
private:
G4VPScorer &fScorer;
};
#endif
@@ -0,0 +1,99 @@
//
// ********************************************************************
// * 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: G4MassImportanceProcess.hh,v 1.3 2002/04/10 13:14:16 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4MassImportanceProcess
//
// Class description:
//
// Used internally by importance sampling in the "mass" geometry.
// This process is a forced post step process. I will apply
// importance sampling if the particle crosses a boundary in the
// "mass" geometry.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4MassImportanceProcess_hh
#define G4MassImportanceProcess_hh G4MassImportanceProcess_hh
#include "G4VProcess.hh"
#include "G4ImportancePostStepDoIt.hh"
class G4VImportanceAlgorithm;
class G4ImportanceFinder;
class G4VIStore;
class G4MassImportanceProcess : public G4VProcess
{
public: // with description
G4MassImportanceProcess(const G4VImportanceAlgorithm &aImportanceAlgorithm,
const G4VIStore &aIstore,
const G4String &aName = "MassImportanceProcess");
// creates a G4ParticleChange
~G4MassImportanceProcess();
// delete the G4ParticleChange
virtual G4double
PostStepGetPhysicalInteractionLength(const G4Track& aTrack,
G4double previousStepSize,
G4ForceCondition* condition);
// make process beeing forced
virtual G4VParticleChange *PostStepDoIt(const G4Track&, const G4Step&);
// manage the importance sampling in the "mass" geometry
public: // without description
// no operation in AtRestDoIt and AlongStepDoIt
G4double AlongStepGetPhysicalInteractionLength(const G4Track&,
G4double ,
G4double ,
G4double& ,
G4GPILSelection*) {return -1.0;}
G4double AtRestGetPhysicalInteractionLength(const G4Track& ,
G4ForceCondition*) {return -1.0;}
G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&) {return 0;}
G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&) {return 0;}
private:
G4MassImportanceProcess(const G4MassImportanceProcess &);
G4MassImportanceProcess &operator=(const G4MassImportanceProcess &);
private:
G4ParticleChange *fParticleChange;
G4ImportancePostStepDoIt fImportancePostStepDoIt;
const G4VImportanceAlgorithm &fImportanceAlgorithm;
G4ImportanceFinder *fImportanceFinder;
};
#endif
@@ -0,0 +1,89 @@
//
// ********************************************************************
// * 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: G4MassImportanceSampler.hh,v 1.1 2002/05/31 10:16:01 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4MassImportanceSampler
//
// Class description:
//
// A user should use this class to set up importance sampling
// in the "mass" geometry.
// The user must create an object of this kind and initialise it.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4MassImportanceSampler_hh
#define G4MassImportanceSampler_hh G4MassImportanceSampler_hh
#include "globals.hh"
#include "G4VSampler.hh"
class G4VIStore;
class G4MassImportanceProcess;
class G4VImportanceAlgorithm;
class G4VProcess;
class G4MassImportanceSampler : public G4VSampler
{
public: // with description
G4MassImportanceSampler(G4VIStore &aIstore,
const G4String &particlename,
const G4VImportanceAlgorithm *algorithm = 0);
// if *algorithm = 0: use the G4ImportanceAlgorithm
// else: use a customised importance algorithm derived from
// G4VImportanceAlgorithm
~G4MassImportanceSampler();
// delete G4MassImportanceProcess and G4VImportanceAlgorithm
// if constructed by this object
G4MassImportanceProcess *CreateMassImportanceProcess();
// create the mass importance process
// don't use it if you use Initialize()
void Initialize();
// the G4MassImportanceSampler has to be initialised after
// the initialisation of the G4RunManager !
private:
G4MassImportanceSampler(const G4MassImportanceSampler &);
G4MassImportanceSampler &operator=(const G4MassImportanceSampler &);
private:
G4VIStore &fIStore;
G4String fParticleName;
G4MassImportanceProcess *fMassImportanceProcess;
G4bool fCreatedAlgorithm;
const G4VImportanceAlgorithm *fAlgorithm;
};
#endif
@@ -0,0 +1,85 @@
//
// ********************************************************************
// * 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: G4MassImportanceScoreSampler.hh,v 1.1 2002/05/31 10:16:01 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4MassImportanceScoreSampler
//
// Class description:
//
// A user should use this class to set up importance sampling and scoring
// in the "mass" geometry.
// The user must create an object of this kind and initialise it.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4MassImportanceScoreSampler_hh
#define G4MassImportanceScoreSampler_hh G4MassImportanceScoreSampler_hh
#include "globals.hh"
#include "G4VSampler.hh"
class G4VIStore;
class G4VPScorer;
class G4VImportanceAlgorithm;
class G4MassImportanceSampler;
class G4MassScoreSampler;
class G4MassImportanceScoreSampler : public G4VSampler
{
public: // with description
G4MassImportanceScoreSampler(G4VIStore &aIstore,
G4VPScorer &ascorer,
const G4String &particlename,
const G4VImportanceAlgorithm
*algorithm = 0);
// if *algorithm = 0: use the G4ImportanceAlgorithm
// else : use a customised importance algorithm derived from
// G4VImportanceAlgorithm
~G4MassImportanceScoreSampler();
// delete G4MassScoreSampler and G4MassImportanceSampler if created
void Initialize();
// the G4MassImportanceScoreSampler has to be initialised after
// the initialisation of the G4RunManager !
private:
G4MassImportanceScoreSampler(const G4MassImportanceScoreSampler &);
G4MassImportanceScoreSampler &
operator=(const G4MassImportanceScoreSampler &);
private:
G4MassImportanceSampler *fMassImportanceSampler;
G4MassScoreSampler *fMassScoreSampler;
};
#endif
@@ -0,0 +1,78 @@
//
// ********************************************************************
// * 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: G4MassScoreSampler.hh,v 1.1 2002/05/31 10:16:01 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4MassScoreSampler
//
// Class description:
//
// A user should use this class to set up scoring in the "mass" geometry.
// The user must create an object of this kind and initialise it.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4MassScoreSampler_hh
#define G4MassScoreSampler_hh G4MassScoreSampler_hh
#include "globals.hh"
#include "G4VSampler.hh"
class G4VProcess;
class G4VPScorer;
class G4MScoreProcess;
class G4MassScoreSampler : public G4VSampler
{
public: // with description
G4MassScoreSampler(G4VPScorer &ascorer, const G4String &particlename);
// a G4MassScoreSampler for a particle type
~G4MassScoreSampler();
// delete G4MScoreProcess if constructed
G4MScoreProcess *CreateMassScoreProcess();
// create the mass score process
// don't use it if you use Initialize()
void Initialize();
// the G4MassScoreSampler has to be initialised after
// the initialisation of the G4RunManager !
private:
G4MassScoreSampler(const G4MassScoreSampler &);
G4MassScoreSampler &operator=(const G4MassScoreSampler &);
private:
G4VPScorer &fScorer;
G4String fParticleName;
G4MScoreProcess *fMScoreProcess;
};
#endif
@@ -0,0 +1,95 @@
//
// ********************************************************************
// * 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: G4PIScorer.hh,v 1.5 2002/04/10 13:14:16 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4PIScorer
//
// Class description:
//
// A scorer delegating the scoring to G4PScorer. It performs
// a check for consistency between the importance value
// assigned to a post G4PTouchableKey and the weight of a track.
// The relation should be importance value * weight = 1.
// CAUTION: This holds only in well defined situations:
// A track starts in a "cell" with importance 1 and has a weight of 1.
// The particle can not be produced by other not importance sampled
// particles.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4PIScorer_hh
#define G4PIScorer_hh G4PIScorer_hh
#include "g4std/iostream"
#include "G4VPScorer.hh"
#include "G4PMapPtkTallys.hh"
#include "G4PScorer.hh"
class G4Step;
class G4PStep;
class G4VIStore;
class G4PIScorer : public G4VPScorer
{
public: // with description
G4PIScorer(const G4VIStore &IStore);
// simple construction
~G4PIScorer();
// simple destruction
void Score(const G4Step &aStep, const G4PStep &aPStep);
// perform scoring for the G4Step and G4PStep
const G4PMapPtkTallys &GetMapPtkTallys() const
{return fPScorer.GetMapPtkTallys();}
// get a reference to the G4PMapPtkTallys containing
// the tallies
G4bool CorrectWeight() const {return fCorrectWeight;}
// returns false if the weight was not correct
// a user might want to get this information
// to mark the event a incorrect weight occurred
void ResetCorrectWeight() {fCorrectWeight = true;}
// reset fCorrectWeight
// the user has to reset the flag fCorrectWeight
// if he wants to use CorrectWeight()
private:
const G4VIStore &fIStore;
G4PScorer fPScorer;
G4int fNerr;
G4bool fCorrectWeight;
};
G4std::ostream& operator<<(G4std::ostream &out, const G4PIScorer &ps);
#endif
@@ -0,0 +1,99 @@
//
// ********************************************************************
// * 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: G4PImportanceWWindowScoreSampler.hh,v 1.1 2002/05/31 10:16:01 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4PImportanceWWindowScoreSampler
//
// Class description:
//
// This class manages the importance sampling and importance weight window
// sampling together with scoring in a parallel geometry.
// The user must create an object of this kind and initialise it.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4PImportanceWWindowScoreSampler_hh
#define G4PImportanceWWindowScoreSampler_hh G4PImportanceWWindowScoreSampler_hh
#include "globals.hh"
#include "G4VSampler.hh"
class G4VIStore;
class G4VPScorer;
class G4VImportanceAlgorithm;
class G4PScoreProcess;
class G4ParallelWorld;
class G4ParallelImportanceSampler;
class G4VProcess;
class G4VWeightWindowAlgorithm;
class G4PImportanceWWindowScoreSampler :
public G4VSampler
{
public: // with description
G4PImportanceWWindowScoreSampler(G4VIStore &iw,
G4VPScorer &ascorer,
const G4String &particlename,
G4VWeightWindowAlgorithm &wwalg,
const G4VImportanceAlgorithm *ialg = 0);
// if *ialg = 0: use G4ImportanceAlgorithm
// use a customised importance algorithm derived from
// G4VImportanceAlgorithm
~G4PImportanceWWindowScoreSampler();
// delete constructed objects
G4PScoreProcess *CreateParallelScoreProcess();
// create the parallel score process
// don't use it if you use Initialize()
G4VProcess *CreateWeightWindowProcess();
void Initialize();
// the G4MassImportanceScoreSampler has to be initialised after
// the initialisation of the G4RunManager !
private:
G4PImportanceWWindowScoreSampler(const G4PImportanceWWindowScoreSampler &);
G4PImportanceWWindowScoreSampler &
operator=(const G4PImportanceWWindowScoreSampler &);
private:
G4String fParticleName;
G4ParallelWorld &fParallelWorld;
G4ParallelImportanceSampler &fParallelImportanceSampler;
G4VPScorer &fPScorer;
G4VIStore &fIstore;
G4PScoreProcess *fPScoreProcess;
G4VProcess *fPWeightWindowProcess;
G4VWeightWindowAlgorithm &fWWAlgorithm;
};
#endif
@@ -0,0 +1,102 @@
//
// ********************************************************************
// * 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: G4PScoreProcess.hh,v 1.3 2002/04/10 13:14:16 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4PIScoreProcess
//
// Class description:
//
// Used internally by scoring in a "parallel" geometry.
// This forced process messages a "scorer" derived from G4VPScorer.
// The scorer is messaged with the current G4Step and G4PStep.
// This post step process is supposed to be placed as the
// process following directly after transportation and the
// importance sampling process if applied and before all physical
// post step processes.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4PScoreProcess_hh
#define G4PScoreProcess_hh G4PScoreProcess_hh
#include "G4VProcess.hh"
class G4VParallelStepper;
class G4VPScorer;
class G4PScoreProcess : public G4VProcess
{
public: // with description
G4PScoreProcess(G4VParallelStepper &astepper,
G4VPScorer &aScorer,
const G4String &aName = "PScoreProcess");
// create a G4ParticleChange
virtual ~G4PScoreProcess();
// delete the G4ParticleChange
virtual G4double
PostStepGetPhysicalInteractionLength(const G4Track& aTrack,
G4double previousStepSize,
G4ForceCondition* condition);
// make the process beeing forced
virtual G4VParticleChange * PostStepDoIt(const G4Track&,
const G4Step&);
// get G4PStep and G4Step and message "scorer"
public: // without description
// no operation in AtRestDoIt and AlongStepDoIt
G4double AlongStepGetPhysicalInteractionLength(const G4Track&,
G4double ,
G4double ,
G4double& ,
G4GPILSelection*) {return -1.0;}
G4double AtRestGetPhysicalInteractionLength(const G4Track& ,
G4ForceCondition*) {return -1.0;}
G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&) {return 0;}
G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&) {return 0;}
private:
G4PScoreProcess(const G4PScoreProcess &);
G4PScoreProcess &operator=(const G4PScoreProcess &);
G4VParallelStepper &fPstepper;
G4VPScorer &fScorer;
};
#endif
@@ -0,0 +1,76 @@
//
// ********************************************************************
// * 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: G4PScorer.hh,v 1.5 2002/04/10 13:14:16 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4PScorer
//
// Class description:
//
// A scorer for standard tallies. Under development.
// See also G4VPScorer.
// It scores using informations form G4Step and G4PStep.
// The tallies are contained and related with "cells"
// in the container G4PMapPtkTallys (see G4PMapPtkTallys.hh)
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4Pscorer_hh
#define G4Pscorer_hh G4Pscorer_hh
#include "g4std/iostream"
#include "G4VPScorer.hh"
#include "G4PMapPtkTallys.hh"
class G4Step;
class G4PStep;
class G4PScorer : public G4VPScorer
{
public: // with description
G4PScorer();
// simple construction
~G4PScorer();
// simple destruction
void Score(const G4Step &aStep, const G4PStep &aPStep);
// perform scoring for the G4Step and G4PStep
const G4PMapPtkTallys &GetMapPtkTallys() const {return fPtkTallys;}
// get a reference to the G4PMapPtkTallys containing
// the tallies
private:
G4PMapPtkTallys fPtkTallys;
};
G4std::ostream& operator<<(G4std::ostream &out, const G4PScorer &ps);
#endif
@@ -0,0 +1,76 @@
//
// ********************************************************************
// * 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: G4ParallelImportanceProcess.hh,v 1.5 2002/05/31 10:16:01 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4ParallelImportanceProcess
//
// Class description:
//
// Used internally by importance sampling in a "parallel" geometry.
// This is a G4ParallelTransport that also does importance
// sampling in the "parallel" geometry.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4ParallelImportanceProcess_hh
#define G4ParallelImportanceProcess_hh G4ParallelImportanceProcess_hh
#include "G4ParallelTransport.hh"
#include "G4ImportancePostStepDoIt.hh"
class G4VImportanceSplitExaminer;
class G4Nsplit_Weight;
class G4ParallelImportanceProcess : public G4ParallelTransport
{
public: // with description
G4ParallelImportanceProcess(const G4VImportanceSplitExaminer &aImportanceSplitExaminer,
G4VPGeoDriver &pgeodriver,
G4VParallelStepper &aStepper,
const G4String &aName = "ParallelImportanceProcess");
// initialise G4ParallelTransport and members
G4VParticleChange *PostStepDoIt(const G4Track&,
const G4Step&);
// do the "parallel transport" and importance sampling.
private:
G4ParallelImportanceProcess(const G4ParallelImportanceProcess &);
G4ParallelImportanceProcess &operator=(const G4ParallelImportanceProcess &);
void Error(const G4String &m);
private:
G4ParticleChange *fParticleChange;
const G4VImportanceSplitExaminer &fImportanceSplitExaminer;
G4ImportancePostStepDoIt fImportancePostStepDoIt;
};
#endif
@@ -0,0 +1,104 @@
//
// ********************************************************************
// * 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: G4ParallelImportanceSampler.hh,v 1.1 2002/05/31 10:16:01 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4ParallelImportanceSampler
//
// Class description:
//
// A user should use this class to set up importance sampling
// in a "parallel" geometry.
// The user must create an object of this kind and initialise it.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4ParallelImportanceSampler_hh
#define G4ParallelImportanceSampler_hh G4ParallelImportanceSampler_hh
#include "globals.hh"
#include "G4VSampler.hh"
class G4ParallelWorld;
class G4VIStore;
class G4VImportanceAlgorithm;
class G4VImportanceSplitExaminer;
class G4ParallelImportanceProcess;
class G4ParallelImportanceSampler : public G4VSampler
{
public: // with description
G4ParallelImportanceSampler(G4VIStore &is,
const G4String &particlename,
const G4VImportanceAlgorithm *ialg = 0);
// if *ialg = 0: use the G4ImportanceAlgorithm
// use a customised importance algorithm derived from
// G4VImportanceAlgorithm
// create G4ParallelWorld and G4ImportanceSplitExaminer
public: // used internally by importance sampling
G4ParallelImportanceSampler(G4VIStore &is,
const G4String &particlename,
G4ParallelWorld &pworld,
const G4VImportanceAlgorithm *ialg = 0);
~G4ParallelImportanceSampler();
// delete G4ParallelWorld and G4ImportanceSplitExaminer
// and G4ImportanceAgorithm and G4ParallelImportanceProcess
// if created
public: // with description
G4ParallelImportanceProcess *CreateParallelImportanceProcess();
// create the parallel importance process
// don't use it if you use Initialize()
void Initialize();
// the G4ParallelImportanceSampler has to be initialised after
// the initialisation of the G4RunManager !
private:
G4ParallelImportanceSampler(const G4ParallelImportanceSampler &);
G4ParallelImportanceSampler &operator=(const G4ParallelImportanceSampler &);
private:
G4String fParticleName;
G4ParallelWorld &fParallelWorld;
G4bool fCreatedPW;
G4bool fDeleteAlg;
const G4VImportanceAlgorithm *fIalgorithm;
G4VImportanceSplitExaminer *fExaminer;
G4ParallelImportanceProcess *fParallelImportanceProcess;
};
#endif
@@ -0,0 +1,92 @@
//
// ********************************************************************
// * 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: G4ParallelImportanceScoreSampler.hh,v 1.1 2002/05/31 10:16:01 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4ParallelImportanceScoreSampler
//
// Class description:
//
// A user should use this class to set up importance sampling and scoring
// in a "parallel" geometry.
// The user must create an object of this kind and initialise it.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4ParallelImportanceScoreSampler_hh
#define G4ParallelImportanceScoreSampler_hh G4ParallelImportanceScoreSampler_hh
#include "globals.hh"
#include "G4VSampler.hh"
class G4VIStore;
class G4VPScorer;
class G4VImportanceAlgorithm;
class G4PScoreProcess;
class G4ParallelWorld;
class G4ParallelImportanceSampler;
class G4ParallelImportanceScoreSampler :
public G4VSampler
{
public: // with description
G4ParallelImportanceScoreSampler(G4VIStore &iw,
G4VPScorer &ascorer,
const G4String &particlename,
const G4VImportanceAlgorithm *ialg = 0);
// if *ialg = 0: use G4ImportanceAlgorithm,
// use a customised importance algorithm derived from
// G4VImportanceAlgorithm
~G4ParallelImportanceScoreSampler();
// delete constructed objects
G4PScoreProcess *CreateParallelScoreProcess();
// create the parallel score process
// don't use it if you use Initialize()
void Initialize();
// the G4MassImportanceScoreSampler has to be initialised after
// the initialisation of the G4RunManager !
private:
G4ParallelImportanceScoreSampler(const G4ParallelImportanceScoreSampler &);
G4ParallelImportanceScoreSampler &
operator=(const G4ParallelImportanceScoreSampler &);
private:
G4String fParticleName;
G4ParallelWorld &fParallelWorld;
G4ParallelImportanceSampler &fParallelImportanceSampler;
G4VPScorer &fPScorer;
G4PScoreProcess *fPScoreProcess;
};
#endif
@@ -0,0 +1,87 @@
//
// ********************************************************************
// * 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: G4ParallelScoreSampler.hh,v 1.1 2002/05/31 10:16:01 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4ParallelScoreSampler
//
// Class description:
//
// A user should use this class to set up scoring in a "parallel"
// geometry.
// The user must create an object of this kind and initialise it.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4ParallelScoreSampler_hh
#define G4ParallelScoreSampler_hh G4ParallelScoreSampler_hh
#include "globals.hh"
#include "G4VSampler.hh"
class G4ParallelWorld;
class G4VPhysicalVolume;
class G4ParallelTransport;
class G4VPScorer;
class G4PScoreProcess;
class G4ParallelScoreSampler : public G4VSampler
{
public: // with description
G4ParallelScoreSampler(G4VPhysicalVolume &worldvolume,
const G4String &particlename,
G4VPScorer &scorer);
// create and initalise members
~G4ParallelScoreSampler();
// delete constructed members
G4PScoreProcess *CreateParallelScoreProcess();
// create the parallel score process
// don't use it if you use Initialize()
G4ParallelTransport *CreateParallelTransport();
// get the G4ParallelTransport
void Initialize();
// the G4ParallelScoreSampler has to be initialised after
// the initialisation of the G4RunManager !
private:
G4ParallelScoreSampler(const G4ParallelScoreSampler &);
G4ParallelScoreSampler &operator=(const G4ParallelScoreSampler&);
private:
G4String fParticleName;
G4ParallelWorld &fParallelWorld;
G4VPScorer &fPScorer;
G4PScoreProcess *fPScorerProcess;
G4ParallelTransport *fParallelTransport;
};
#endif
@@ -0,0 +1,122 @@
//
// ********************************************************************
// * 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: G4ParallelTransport.hh,v 1.4 2002/05/02 08:43:23 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4ParallelTransport
//
// Class description:
//
// Used internally by importance sampling and scoring in a "parallel"
// geometry.
// This process "moves" a particle in a "parallel" geometry.
// It should be placed in the post step process do it vector after the
// G4Transportation process.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4ParallelTransport_hh
#define G4ParallelTransport_hh G4ParallelTransport_hh
#include "g4std/strstream"
#include "G4VProcess.hh"
#include "globals.hh"
class G4VPGeoDriver;
class G4VParallelStepper;
class G4ParallelTransport : public G4VProcess
{
public: // with description
G4ParallelTransport(G4VPGeoDriver &pgeodriver,
G4VParallelStepper &aStepper,
const G4String &aName = "ParallelTransport");
// create G4ParticleChange
virtual ~G4ParallelTransport();
// delete G4ParticleChange
// the post step pair of functions may be overwritten
// in certain derived classes like the importance process
virtual G4double
PostStepGetPhysicalInteractionLength(const G4Track& aTrack,
G4double previousStepSize,
G4ForceCondition* condition);
// straight distance to the boundary in the "parallel" geometry
// in the direction of the track
virtual G4VParticleChange *PostStepDoIt(const G4Track&, const G4Step&);
// move a track in a "parallel" geometry
// and update a G4PArallelStepper
virtual void StartTracking();
virtual void EndTracking();
G4VParallelStepper &GetPStepper(){return fPStepper;}
// get the fPStepper
public: // without description
// no operation in AtRestDoIt and AlongStepDoIt
G4double AlongStepGetPhysicalInteractionLength(const G4Track&,
G4double ,
G4double ,
G4double& ,
G4GPILSelection*) {return -1.0;}
G4double AtRestGetPhysicalInteractionLength(const G4Track& ,
G4ForceCondition*) {return -1.0;}
G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&) {return 0;}
G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&) {return 0;}
protected:
virtual void Error(const G4String &m);
virtual void Warning(const G4String &m);
G4ParticleChange *fParticleChange;
private:
G4ParallelTransport(const G4ParallelTransport &);
G4ParallelTransport &operator=(const G4ParallelTransport &);
private:
G4VPGeoDriver &fPgeodriver;
G4VParallelStepper &fPStepper;
G4bool fCrossBoundary;
G4bool fInitStep;
};
#endif
@@ -0,0 +1,118 @@
//
// ********************************************************************
// * 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: G4ParallelWeightWindowProcess.hh,v 1.2 2002/05/31 10:16:01 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4ParallelWeightWindowProcess
//
// Class description:
//
// The process performing the weight window sampling according
// to an G4VWeightWindowAlgorithm
//
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4ParallelWeightWindowProcess_hh
#define G4ParallelWeightWindowProcess_hh G4ParallelWeightWindowProcess_hh
#include "g4std/strstream"
#include "G4VProcess.hh"
#include "globals.hh"
#include "G4Nsplit_Weight.hh"
#include "G4ImportancePostStepDoIt.hh"
class G4VIStore;;
class G4VParallelStepper;
class G4VWeightWindowAlgorithm;
class G4ParallelWeightWindowProcess : public G4VProcess
{
public: // with description
G4ParallelWeightWindowProcess(G4VIStore &aIstore,
G4VParallelStepper &aStepper,
G4VWeightWindowAlgorithm &aWWAlgorithm,
const G4String &aName = "ParallelWeightWindowProcess");
// create G4ParticleChange
virtual ~G4ParallelWeightWindowProcess();
// delete G4ParticleChange
virtual G4double
PostStepGetPhysicalInteractionLength(const G4Track& aTrack,
G4double previousStepSize,
G4ForceCondition* condition);
virtual G4VParticleChange *PostStepDoIt(const G4Track&, const G4Step&);
void StartTracking();
void EndTracking();
public: // without description
// no operation in AtRestDoIt and AlongStepDoIt
G4double AlongStepGetPhysicalInteractionLength(const G4Track&,
G4double ,
G4double ,
G4double& ,
G4GPILSelection*) {return -1.0;}
G4double AtRestGetPhysicalInteractionLength(const G4Track& ,
G4ForceCondition*) {return -1.0;}
G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&) {return 0;}
G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&) {return 0;}
protected:
virtual void Error(const G4String &m);
virtual void Warning(const G4String &m);
G4ParticleChange *fParticleChange;
private:
G4ParallelWeightWindowProcess(const G4ParallelWeightWindowProcess &);
G4ParallelWeightWindowProcess &operator=(const G4ParallelWeightWindowProcess &);
private:
G4VIStore &fIStore;
G4VParallelStepper &fPStepper;
G4VWeightWindowAlgorithm &fWWAlgorithm;
G4Nsplit_Weight fNsplit_Weight;
G4ImportancePostStepDoIt fImportancePostStepDoIt;
G4bool fInitStep;
};
#endif
@@ -0,0 +1,89 @@
//
// ********************************************************************
// * 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: G4ProcessPlacer.hh,v 1.4 2002/05/24 08:17:19 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4ProcessPlacer
//
// Class description:
//
// Used internally by importance sampling and scoring.
// See G4VProcessPlacer.hh.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4ProcessPlacer_hh
#define G4ProcessPlacer_hh G4ProcessPlacer_hh
#include "globals.hh"
#include "G4VProcessPlacer.hh"
class G4ProcessManager;
class G4ProcessVector;
class G4ProcessPlacer : public G4VProcessPlacer
{
public: // with description
G4ProcessPlacer(const G4String &particlename);
// create a process placer for a particle type
void AddProcessAsLastDoIt(G4VProcess *process);
// place a post step do it process such that the
// PostStepDoIt function is called last
// THE ORDER CHANGES BY SUBSEQUENT CALLS
void AddProcessAsSecondDoIt(G4VProcess *process);
// place a post step do it process such that the
// PostStepDoIt function is called second
// THE ORDER CHANGES BY SUBSEQUENT CALLS
void RemoveProcess(G4VProcess *process);
// removes a given process
private:
G4ProcessManager &GetProcessManager();
enum SecondOrLast
{
eSecond = 1,
eLast = 0
};
void AddProcessAs(G4VProcess *process, SecondOrLast);
void PrintProcVec(G4ProcessVector* processVec);
void PrintPostStepGPILVec();
void PrintPostStepDoItVec();
private:
G4String fParticleName;
};
#endif
@@ -22,7 +22,7 @@
//
//
// $Id: G4Transportation.hh,v 1.6 2001/11/28 18:27:50 japost Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
//
// ------------------------------------------------------------
@@ -22,7 +22,7 @@
//
//
// $Id: G4Transportation.icc,v 1.4 2001/11/06 01:38:19 radoone Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
//
//
@@ -22,7 +22,7 @@
//
//
// $Id: G4UserSpecialCuts.hh,v 1.4 2001/07/11 10:08:30 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
// GEANT4 tag $Name: geant4-04-01 $
// ------------------------------------------------------------
// 15 April 1998 M.Maire
// ------------------------------------------------------------
@@ -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: G4VProcessPlacer.hh,v 1.4 2002/05/24 08:17:19 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4VProcessPlacer
//
// Class description:
//
// Used internally by importance sampling and scoring to place
// processes as second or last PostStepDoit processes.
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4VProcessPlacer_hh
#define G4VProcessPlacer_hh G4VProcessPlacer_hh
#include "globals.hh"
class G4VProcess;
class G4VProcessPlacer
{
public: // with description
G4VProcessPlacer(const G4String &particlename){}
virtual ~G4VProcessPlacer(){}
virtual void AddProcessAsLastDoIt(G4VProcess *process) = 0;
// place a post step do it process such that the
// PostStepDoIt function is called last
// THE ORDER CHANGES BY SUBSEQUENT CALLS
virtual void AddProcessAsSecondDoIt(G4VProcess *process) = 0;
// place a post step do it process such that the
// PostStepDoIt function is called second
// THE ORDER CHANGES BY SUBSEQUENT CALLS
void RemoveProcess(G4VProcess *process);
// removes a given process
};
#endif
@@ -0,0 +1,48 @@
//
// ********************************************************************
// * 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: G4VSampler.hh,v 1.1 2002/05/31 08:08:22 dressel Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
// ----------------------------------------------------------------------
// Class G4VSampler
//
// Class description:
// The base class for importance sampling and scoring.
//
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
#ifndef G4VSampler_hh
#define G4VSampler_hh G4VSampler_hh
class G4VSampler
{
public:
virtual ~G4VSampler(){}
virtual void Initialize() = 0;
// the user must initialize the concrete object this interface
// covers afer the initialization of the G4RunManager
};
#endif