Re: GetBeam Function [message #13335 is a reply to message #13334] |
Mon, 16 April 2012 20:26 ![Go to previous message Go to previous message](/theme/gsi/images/up.png) ![Go to next message Go to previous message](/theme/gsi/images/down.png) |
Ingo Froehlich
Messages: 167 Registered: March 2004 Location: IKF - Frankfurt
|
first-grade participant |
From: *dip.t-dialin.net
|
|
GetBeam() returns a PParticle object, so I think you should use something like
my_reaction.Do(histo2,"_x = ([g+p]->GetBeam())->E()");
to project a scalar onto the x-axis.
ene is empty, because you use a second proton, but in the outgoing channel you have only one (I know I should throw some warning but this is not so easy for mixed channels)
--
Ingo Froehlich
IKF - University of Frankfurt
069-798-47027, FAX: -47024
|
|
|