Message: Re: Pb to retreive Optical Photon via FinParticle(PDG) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Pb to retreive Optical Photon via FinParticle(PDG) 

Forum: Processes Involving Optical Photons
Date: 13 Apr, 2007
From: Vladimir IVANTCHENKO <vnivanch@mail.cern.ch>

On Fri, 13 Apr 2007 campagne@lal.in2p3.fr wrote:

> *** Discussion title: Particles
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/particles/325"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> Using optical photon since some times for some Cerenkov studies, I am
> confronted to a problem. As you know the PDG code of an OP is set to 0
> and
> 
> the following crash
> 
> particleGun->SetParticleDefinition(particleTable->FindParticle(beampdg))
> ; with beampdg = 0
> 
> Note that the code is ok when I am using electron (pdg =11).
> 
> Have you a comment? JE
> 

Hello,

Zero code of PDG is assigned to all particles, which are unknown to PDG, 
so crash is garanteed. Please, use 

G4OpticalPhoton::OpticalPhoton() 

directly instead of call to particle table.

VI

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

1 None: Re: Pb to retreive Optical Photon via FinParticle(PDG)   (Jean-Eric Campagne - 13 Apr, 2007)
(_ None: Re: Pb to retreive Optical Photon via FinParticle(PDG)   (Vladimir IVANTCHENKO - 13 Apr, 2007)
 Add Message Add Message
to: "Re: Pb to retreive Optical Photon via FinParticle(PDG)"

 Subscribe Subscribe

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