Hello,
I would like to create a mesh detector from the command-based scoring in the form of a thin cylindrical wall. For this purpose I used these commands:
/score/create/cylinderMesh CylinderMesh1
/score/mesh/cylinderSize 42. 70. mm
/score/mesh/cylinderRMin 41.999 mm
/score/mesh/nBin 1 14 4
But I found this message in the output:
/score/create/cylinderMesh CylinderMesh1
/score/mesh/cylinderSize 42. 70. mm
/score/mesh/cylinderRMin 41.999 mm
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : DigiHitsUtilsScoreVScoringMesh000
issued by : G4VScoringMesh::SetSize()
Mesh size has already been set and it cannot be changed.
This method is ignored.
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------
/score/mesh/nBin 1 14 4
And from the results and from the list of detectors it can be seen, that the cylinder detector was made as a full cylinder:
G4ScoringCylinder : CylinderMesh1 --- Shape: Cylindrical mesh
Size (Rmin, Rmax, Dz): (0, 4.2, 7) [cm]
Angle (start, span): (0, 360) [deg]
# of segments: (14, 4, 1)
In the part of G4VScoringMesh, from where the warning is, I found this:
void G4VScoringMesh::SetSize(G4double size[3])
{
if(!sizeIsSet)
{
sizeIsSet = true;
for(int i = 0; i < 3; i++)
{
fSize[i] = size[i];
}
}
else
{
G4String message = " Mesh size has already been set and it cannot be changed.\n";
message += " This method is ignored.";
G4Exception("G4VScoringMesh::SetSize()",
"DigiHitsUtilsScoreVScoringMesh000", JustWarning, message);
}
}
So it seems, that once some numbers are added to the description of dimensions of the mesh detector, no other details cannot be added.
Could you please advice me, how to correct this?
Thank you,
Marek