Message: Re: G4Exception-START: ELECTRONSCINTILLATIONYIELD Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: G4Exception-START: ELECTRONSCINTILLATIONYIELD 

Forum: Processes Involving Optical Photons
Re: Question G4Exception-START: ELECTRONSCINTILLATIONYIELD (Sergio Lo Meo)
Re: Feedback Re: G4Exception-START: ELECTRONSCINTILLATIONYIELD (Gumplinger Peter)
Re: Question Re: G4Exception-START: ELECTRONSCINTILLATIONYIELD (Sergio Lo Meo)
Re: Feedback Re: G4Exception-START: ELECTRONSCINTILLATIONYIELD (Gumplinger Peter)
Re: Question Re: G4Exception-START: ELECTRONSCINTILLATIONYIELD (Sergio Lo Meo)
Date: 13 May, 2016
From: Gumplinger Peter <Gumplinger Peter>

Dear Sergio,

>   aParticleIterator->reset();
>   while( (*aParticleIterator)() ){
>     G4ParticleDefinition* particle = aParticleIterator->value();
>     G4ProcessManager* pmanager = particle->GetProcessManager();
>     G4String particleName = particle->GetParticleName();
>     if (theProtonScintProcess->IsApplicable(*particle)) {
>        if (particleName == "proton") {
>           pmanager->AddProcess(theProtonScintProcess);
>           pmanager->SetProcessOrderingToLast(theProtonScintProcess, idxAtRest);
>           pmanager->SetProcessOrderingToLast(theProtonScintProcess, idxPostStep);
>        }
>     }
>   }

Yes, but later on in the code you presumably have another section:

http://www-geant4.kek.jp/lxr/source/physics_lists/constructors/electromagnetic/src/G4OpticalPhysics.cc#L329

so you are attaching two G4Scintillation processes to the proton!

Peter

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

1 Ok: Re: G4Exception-START: ELECTRONSCINTILLATIONYIELD   (Sergio Lo Meo - 22 May, 2016)
(_ Question: Re: G4Exception-START: ELECTRONSCINTILLATIONYIELD   (Nicholas DePorzio - 09 Aug, 2016)
(_ Feedback: Re: G4Exception-START: ELECTRONSCINTILLATIONYIELD   (Gumplinger Peter - 11 Aug, 2016)
 Add Message Add Message
to: "Re: G4Exception-START: ELECTRONSCINTILLATIONYIELD"

 Subscribe Subscribe

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