Message: Binary Light Ion Reaction for Generic Ions Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Binary Light Ion Reaction for Generic Ions 

Keywords: Binary Light Ion Reaction
Forum: Hadronic Processes
Date: 08 Jun, 2007
From: Rick Foster <rickf@space.mit.edu>

I am attemptintg to try to use the Binary Light Ion model for for the inelastic process associated with genericIons (I had been using the Wilson Abrasion/Ablation Models).

the following code compiles fine, but when I run the code, my system crashes immediatly after seeing the message:

"Thank you for using G4BinaryCascade."

I am running Geant8.3 with Windows/XP + Visual Studio + Cygwin.

It appears to be crashing when while trying to create the model:
   G4BinaryLightIonReaction * blirInelasticModel= new G4BinaryLightIonReaction;

Any help/insight would be greatly appreciated

Thanks Rick

******Code**************

	else if (particleName == "GenericIon") {
	//Elastic
	pmanager->AddDiscreteProcess(theElasticProcess);

	// Inelastic Process for Generic Ions
	// Uses Binary Light Ion Model .. 

	// Create instance of inelastic process for generic ions
	G4HadronInelasticProcess* hadInelasticProcess= new G4HadronInelasticProcess(
											"IonInelastic",G4GenericIon::GenericIon());

	// Load Cross Sections .. Last loaded is used first for energy range
        // Shen 0-10 GeV/nuc .. Tripathi 0-1 GeV/nuc
	G4IonsShenCrossSection* shenCS = new G4IonsShenCrossSection();
	hadInelasticProcess->AddDataSet(shenCS);
	G4TripathiCrossSection* tripathiData = new G4TripathiCrossSection();
	hadInelasticProcess->AddDataSet(tripathiData);

	//Create an instance of the binary Light Ion reaction model and register it
	G4BinaryLightIonReaction * blirInelasticModel= new G4BinaryLightIonReaction;
  	hadInelasticProcess->RegisterMe(blirInelasticModel);

	//Add the hadronic inelastic process to the list of discrete processes for the particle
	pmanager->AddDiscreteProcess(hadInelasticProcess);	
	}

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Binary Light Ion Reaction for Generic Ions   (Vladimir IVANTCHENKO - 08 Jun, 2007)
(_ Sad: Re: Binary Light Ion Reaction for Generic Ions   (Rick Foster - 08 Jun, 2007)
(_ None: Re: Binary Light Ion Reaction for Generic Ions   (Vladimir IVANTCHENKO - 08 Jun, 2007)
 Add Message Add Message
to: "Binary Light Ion Reaction for Generic Ions"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]