Hello I simulated a e+ beam 45GeV hitting 2 circualr targets having diameter 1.5 cm, thickness 3mm and distance between them 2cm.

I’m interested to stud the released energy from e+ in the 2 targets. In this post Target temperature @mkelsey some weeks ago proposed me to add the scoring mesh or to store in the ROOT file the hit points in my 2 targets (called Envelope and Envelope2) so to get Root plots of releases energy vs hit points. Given that I have the steppingaction in my simulation, I did the second one. Anyway, my supervisor asked me to add the scoring mesh, so

- In exampleB1.cc I addes

a. #include “G4ScoringManager.hh”

b. G4ScoringManager* scoringManager = G4ScoringManager::GetScoringManager();

as you can see in the following printscreen

- Following the \extended\runAndEvent\RE03 example, I wrote in my run1.mac this code

a.

/score/create/cylinderMesh Envelope1

/score/mesh/cylinderSize 0 cm. 0.75 cm 0.15 cm 0. 6.28

/score/mesh/nBin 30 30 30

/score/quantity/energyDeposit eDep

/score/quantity/nOfStep nOfStepGamma

/score/filter/particle gammaFilter gamma

/score/quantity/nOfStep nOfStepEMinus

/score/filter/particle eMinusFilter e-

/score/filter/particle muMinusFilter mu-

/score/quantity/nOfStep nOfStepEPlus

/score/filter/particle ePlusFilter e+

/score/filter/particle muPlusFilter mu+

/score/close

/score/list

Notice that I wrote `/score/mesh/cylinderSize 0 cm. 0.75 cm 0.15 cm 0. 6.28`

because I have 2 circular targets having diameter 1.5 cm, thickness 3mm and distaince between them 2cm; i.e. I wrote the numbers following the way to define the G4Tubs

Anyway

1.I get this error

2. I have to do the scoring mesh for my two targets, not just one! The first one is centered in 0,0,0 the second one in 0,0,2.3 cm

How can I solve?

@mkelsey due that you proposed me to use the scoring mesh, i guess you are able to help me to do it…

Thank you