REST version : v2.3.15
Hi everyone,
to explain my problem I will take the example found here in box.gdml
and basicSim.rml
.
I want to generate cosmic particles above the “box” geometry.
Then in basicSim.rml
, in the TRestGeant4Metadata
section, I write:
<generator type="cosmic">
<source particle="geantino">
<energy type="formula2" name="CosmicMuons" nPoints="2000"/>
<angular type="formula2" direction="(0,-1,0)" nPoints="500"/>
</source>
</generator>
But, [in a restRoot -m 1
session] when I visualize the events with REST_Geant4_ViewEvent
, I have:
As you can see, the “cosmic” are generated inside the volume, which shouldn’t be the case.
I did another test, this time sending the primary particles from a surface:
<generator type="surface" shape="circle"
position="(50,50,50)mm" size="(0,0,0)mm"
rotationAngle="90deg" rotationAxis="(1,0,0)">
<source particle="geantino">
<angular type="formula" name="Cos2" direction="(0,-1,0)"/>
<energy type="formula" name="CosmicNeutrons"/>
</source>
</generator>
where you can pay attention to the coordinates of the primary events position="(50,50,50)mm
.
And here the visualization:
As you can see, the coordinates of the primary events do not correspond to what is displayed on the (x,y,z) axes.
So maybe the problem with the cosmic generator is related to that.
Does someone already had the same issue?
Thanks,
Cloe