Wednesday, December 8, 2010

Linux: how to remove ^M at each line end

I got an acsii file from a Window's user. If it is a regular windows text file, then I can use a command 'dos2unix' to convert it in unix format. However, it doesn't work. I use 'less' to have a look at it, it looks like:

line1^M line2^M

. If I use emacs to view it, it looks okay like a regular file. In order to convert it to unix format, I use 'gedit' to do the conversion. A user will be reminded that you save as which format...

Friday, December 3, 2010

about profile of tunnel

I just figured it out why my mnt_polar depth code failed to calculate tunnel profile directionally. The reason is the given tunnel profile. The walls are absolutely vertical and in my code, when I check if a point is in a triangle, I just check z direction. If the wall is vertical, the function will fail to tell the point is in triangle. The solution is simple, just implement more planes, ie., projections on x and y. Thus the problem is solved.

Wednesday, December 1, 2010

Study uncertainty of length propagated from statistics

When we talked about propagated density errors from mass length errors, you mentioned that it will be much simpler if mass lengths obey a Gaussian distribution and it is symmetric. What we were sure is statistics of muon intensity obeys Gaussian, but not so sure about the mass length which is propagated from muon intensity. A check is done now to evaluate the shape of the mass-length distribution from a Gaussian muon intensity distribution. I set the width of the muon intensity Gaussian distribution as 10% (relative uncertainty, which is corresponding 100 muons). For length=200 m, I propagate the mu-intensity distribution (left histogram) to the mass length distribution (right histogram). As you can see, the mass length distribution is close to a Gaussian although it is a bit unsymmetrical. The narrower the width, the closer to a Gaussian. So I think it is safe for you to treat mass lengths obeying Gaussian in calculating density errors. Of course, this is just a check on statistical uncertainty and assume it is our dominating uncertainty.

Study binning effect on length prediction

test

Monday, November 29, 2010

To-do in one week

High priority:

  • Generate more datasets
  • software package to do verification
  • Prediction models study
  • Send Mark a new dataset on the best agreeable

Low priority

  • do modifications of technical reports.

Monday, November 22, 2010

done list

  • upload bugets of cript to the web site
  • make a to-do list for Mark

Thursday, November 18, 2010

done today

  • add a limit condition in a code that adds detector locations to a model file. If detector location is out of the mesh range, then skip it
  • looked into Mark's files
  • look for muon flux in terms of elevation, not successful
  • generate distance distribution for other detector locations requested by James. Done
  • Did modify the assembly report