<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Hi Mark,<br>
<br>
You should be able to get at it with something like:<br>
<br>
vector<const DMCThrown*> mcthrowns;<br>
loop->Get(mcthrowns);<br>
for(unsigned int i=0; i<mcthrowns->size(); i++){<br>
DVector3 &pos = mcthrowns[i]->position();<br>
cout << "X=" << pos.X() << "Y=" <<
pos.Y() << "Z=" << pos.Z() << endl;<br>
}<br>
<br>
Regards,<br>
-Dave<br>
<br>
On 10/7/10 9:08 AM, Mark M. Ito wrote:
<blockquote cite="mid:4CADC664.2000602@jlab.org" type="cite">
<pre wrap=""> Folks,
General question:
I have an hdgeant-generated event with a single particle. Here is
snippet of the hddm:
<physicsEvent eventNo="1" runNo="1">
<reaction type="0" weight="0">
<vertex>
<product decayVertex="0" id="1" mech="0" parentid="0" pdgtype="0"
type="pi+">
<momentum E="0" px="0" py="0" pz="100" />
</product>
<origin t="0" vx="-100" vy="-100" vz="170" />
</vertex>
</reaction>
How do I get access to the position of the vertex, i. e., (vx, vy, vz)
where "v" stands for vertex, from within JANA?
-- Mark
_______________________________________________
Halld-offline mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Halld-offline@jlab.org">Halld-offline@jlab.org</a>
<a class="moz-txt-link-freetext" href="https://mailman.jlab.org/mailman/listinfo/halld-offline">https://mailman.jlab.org/mailman/listinfo/halld-offline</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<img src="cid:part1.04070902.08060104@jlab.org" border="0"></div>
</body>
</html>