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: Particles
Re: None Pb to retreive Optical Photon via FinParticle(PDG)
Re: None Re: Pb to retreive Optical Photon via FinParticle(PDG) (Vladimir IVANTCHENKO )
Date: 13 Apr, 2007
From: Jean-Eric Campagne <campagne@lal.in2p3.fr>

I do that for the Particle List creation, but for the particle gun I use 
information from a Messenger with the name of the particle but internaly 
the code use the PDGcode!
Don't yoiu think to give a non 0 value for optical photon?
regards
JE

--On vendredi 13 avril 2007 09:33 -0700 Vladimir IVANTCHENKO 
<vnivanch@mail.cern.ch> wrote:

> *** Discussion title: Particles
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <Pine.LNX.4.58.0704131831170.26726@pcepsft17.cern.ch>
>   Subject: ...change this to be about your reply.
>
> 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
>



...........................................................................
.LAL - IN2P3 - CNRS
.LAL - B.P 34 - 91898 Orsay Cedex - France
.Piece 108
.Tel +33 (0)1 64 46 84 29
.Fax +33 (0)1 64 46 83 97
...........................................................................


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)   (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


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