Message: Re: How to access ParticleGun from SteppingVerbose.cc Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to access ParticleGun from SteppingVerbose.cc 

Forum: Hits, Digitization and Pileup
Re: Question How to access ParticleGun from SteppingVerbose.cc (Pradip Datta)
Date: 20 May, 2009
From: michel maire <michel maire>

On Wed, 20 May 2009 11:52:19 GMT, Pradip Datta wrote:
> Hi all,
> 
> Can anybody tell me how to access the methods in ParticleGun from
> SteppingVerbose.cc
> 
> With regards,
> 
> Pradip
>

 The following is a possible way. 

 I take TestEm1 as example. PrimaryGeneratorAction* is given to RunAction via constructor. Then, in EndOfRunAction() you will find something like :
primary->GetParticleGun()

 It is the same for your SteppingVerbose : modify its constructor in order to pass  PrimaryGeneratorAction*.

 Do not forget to modify also the place where you instanciate your SteppingVerbose (usually in the main.cc) 

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

1 None: Re: How to access ParticleGun from SteppingVerbose.cc   (Pradip Datta - 20 May, 2009)
 Add Message Add Message
to: "Re: How to access ParticleGun from SteppingVerbose.cc"

 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 ]