Message: Re: BremssstrahlungSplitting not working in Version 10.0 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: BremssstrahlungSplitting not working in Version 10.0 

Forum: Biasing and Scoring
Re: None BremssstrahlungSplitting not working in Version 10.0
Re: None Re: BremssstrahlungSplitting not working in Version 10.0 (Daren Sawkey)
Date: 16 Mar, 2014
From: <MJM>

Hi!

First of all, thanks for your answer.

We are quite sure that this error is caused by BremsstrahlungSplitting. Our PhysicsList looks like this:

[...]

aParticleIterator->reset();

while((*aParticleIterator)())
{
    G4ParticleDefinition* particle = aParticleIterator->value();
    G4String particleName = particle->GetParticleName();

[...]

   BremsstrahlungSplitting* wrapper = new BremsstrahlungSplitting; // G4WrapperClass adapted for BremsstrahlungSplitting
   G4ProcessManager* pmanager = particle->GetProcessManager(); // This G4ProcessManager instance is being used to implement the wrapped processes

    //Bremsstrahlung
    G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
    G4int prSubType = eBrem->GetProcessSubType();
    G4ProcessType prType = eBrem->GetProcessType();
    G4PenelopeBremsstrahlungModel* theBremPenelope = new G4PenelopeBremsstrahlungModel();
    theBremPenelope->SetHighEnergyLimit(PenelopeHighEnergyLimit);
eBrem->AddEmModel(0,theBremPenelope);

if(bremsstrahlungSplittingFlag == true)
{
    wrapper->SetProcessSubType(prSubType);
    wrapper->SetProcessType(prType);
    wrapper->SetNumberOfSplits(numberOfSplits);
    wrapper->RegisterProcess(eBrem);
    pmanager->AddProcess(wrapper);
} 
else
{
    ph->RegisterProcess(eBrem, particle);
}

[...]

}

If we set the bremsstrahlungSplittingFlag to true the program crashes with aforementioned error message in version 10.0, if we set it to false the code runs through as it is basically the copied G4EmPenelopePhysics - List. As mentioned, this code worked fine in version 9.6.

Cheers, MJM

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

1 None: Re: BremssstrahlungSplitting not working in Version 10.0   (Daren Sawkey - 18 Mar, 2014)
(_ None: Re: BremssstrahlungSplitting not working in Version 10.0   (MJM - 19 Mar, 2014)
 Add Message Add Message
to: "Re: BremssstrahlungSplitting not working in Version 10.0"

 Subscribe Subscribe

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