Message: Re: Adding a Get...() and Set...() function to G4Track Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Disagree Re: Adding a Get...() and Set...() function to G4Track 

Forum: Event and Track Management
Re: Sad Adding a Get...() and Set...() function to G4Track (Cristian Bungau)
Re: None Re: Adding a Get...() and Set...() function to G4Track (Neoh)
Date: 22 Oct, 2010
From: Gumplinger Peter <Gumplinger Peter>

Hi Cristian,

As a general principle, you should not mess with the G4Track class of Geant4 and especially not add a public function. Of course, you can, but it is better practice to employ G4VUserTrackInformation. How this is done, an example of that can be found in the /examples/extended/optical/wls

http://www-geant4.kek.jp/lxr/source/examples/extended/optical/wls/include/WLSUserTrackInformation.hh
http://www-geant4.kek.jp/lxr/source//examples/extended/optical/wls/src/WLSSteppingAction.cc#L125

complete with Set/Get methods.

Peter

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

1 Sad: Re: Adding a Get...() and Set...() function to G4Track   (Cristian Bungau - 23 Oct, 2010)
(_ Disagree: Re: Adding a Get...() and Set...() function to G4Track   (Gumplinger Peter - 23 Oct, 2010)
(_ Feedback: Re: Adding a Get...() and Set...() function to G4Track   (Cristian Bungau - 23 Oct, 2010)
(_ Idea: Re: Adding a Get...() and Set...() function to G4Track   (Gumplinger Peter - 23 Oct, 2010)
(_ Agree: Re: Adding a Get...() and Set...() function to G4Track   (Cristian Bungau - 23 Oct, 2010)
(_ Feedback: Re: Adding a Get...() and Set...() function to G4Track   (Gumplinger Peter - 23 Oct, 2010)
(_ Idea: Re: Adding a Get...() and Set...() function to G4Track   (Wolfgang Lukas - 26 Oct, 2010)
(_ Agree: Re: Adding a Get...() and Set...() function to G4Track   (Gumplinger Peter - 27 Oct, 2010)
(_ Feedback: Re: Adding a Get...() and Set...() function to G4Track   (Cristian Bungau - 27 Oct, 2010)
 Add Message Add Message
to: "Re: Adding a Get...() and Set...() function to G4Track"

 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 ]