This project has moved. For the latest updates, please go here.
1

Closed

X and Y settings ignored in RadianceOfXAndYAndZAndThetaAndPhi

description

Hi all,

When I run the MC command line simulator with the infile in the attachment, the MC simulator does not seem to respect the X and Y settings. No matter what Count, Start and Stop values I give, the output always has X and Y from -10 to 10 in 101 steps.

Could you have a look into this one?

Thanks,

Martijn

file attachments

Closed May 4 at 12:05 AM by hayakawa
User error, not a problem with the code.

comments

hayakawa wrote Apr 1, 2013 at 2:22 AM

Hi Martijn,

If you notice in your attached file, the subfolders in the DetectorInputs folder for Radiance(x,y,z,theta,phi) are in the wrong order. The folders after Theta are Z, X, Y. They should be X,Y,Z in that order. Possibly the folders got moved around during editing the file.

I took your infile and deleted the existing detector and added in a fresh one from infile_one_layer_all_detectors.xml. I am able to edit the X and Y values in this file okay and obtain consistent output.

Please let me know if you still have problems.
Carole

mvandeg wrote Apr 1, 2013 at 3:19 AM

Hi Carole,

I was not aware that the arguments had to be in a certain order (since they are also named). I'll check with your version. That is probably a good thing to mention on the documentation page.

Thanks,

Martijn

mvandeg wrote Apr 1, 2013 at 3:24 AM

Yes indeed, with the arguments in the order you mention it works as expected.

Thanks,

Martijn

dcuccia wrote Apr 1, 2013 at 6:45 PM

Glad you were able to resolve the issue, thanks Carole.

Just as a note - this is due to the rather strict nature of the serializer that we're using (DataContractSerializer), which requires all elements of an XML node to be ordered alphabetically.

David

hayakawa wrote Apr 5, 2013 at 8:48 PM

Thanks for your comments Martijn and David. I have added a note that describes the alphabetical order requirement of the subfolders in the infile to our web page on how to edit the infiles.
Carole