Import Geant4 5.0.0 source tree
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4WeightCutOffConfigurator.cc,v 1.3 2002/11/04 10:47:56 dressel Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
// Class G4WeightCutOffConfigurator
|
||||
//
|
||||
|
||||
// Author: Michael Dressel (Michael.Dressel@cern.ch)
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
#include "G4WeightCutOffConfigurator.hh"
|
||||
#include "G4WeightCutOffProcess.hh"
|
||||
|
||||
|
||||
G4WeightCutOffConfigurator::
|
||||
G4WeightCutOffConfigurator(const G4String &particlename,
|
||||
G4double wsurvival,
|
||||
G4double wlimit,
|
||||
G4double isource,
|
||||
G4VIStore *istore,
|
||||
const G4VGCellFinder &aGCellfinder)
|
||||
:
|
||||
fPlacer(particlename),
|
||||
fWeightCutOffProcess(new G4WeightCutOffProcess(wsurvival,
|
||||
wlimit,
|
||||
isource,
|
||||
istore,
|
||||
aGCellfinder)),
|
||||
fPlaced(false)
|
||||
{
|
||||
if (!fWeightCutOffProcess) {
|
||||
G4Exception("ERROR:G4WeightCutOffConfigurator::G4WeightCutOffConfigurator: new failed to create G4WeightCutOffProcess!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
G4WeightCutOffConfigurator::~G4WeightCutOffConfigurator(){
|
||||
if (fPlaced) {
|
||||
fPlacer.RemoveProcess(fWeightCutOffProcess);
|
||||
delete fWeightCutOffProcess;
|
||||
}
|
||||
}
|
||||
|
||||
void G4WeightCutOffConfigurator::
|
||||
Configure(G4VSamplerConfigurator *preConf){
|
||||
fPlacer.AddProcessAsLastDoIt(fWeightCutOffProcess);
|
||||
fPlaced = true;
|
||||
}
|
||||
|
||||
const G4VTrackTerminator *G4WeightCutOffConfigurator::
|
||||
GetTrackTerminator() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user