poulsond / Muon-Monitor

Geant4 Simulation of a muon decay detector
1 stars 0 forks source link

Detectors #1

Open poulsond opened 12 years ago

poulsond commented 12 years ago

I've gone ahead and gone through and changed the Scintillation Yield by commenting it out, changing it to 0 and leaving it at 50. Also messed around with the Birks Constant and found no change in the efficiency of the detector. As far as I can tell they have no impact at all so I just commented out the lines. One thing I have found out about the detectors is that the bum detector is always the first to be created. I have changed the starting position of the detector construction and it is always the first detector. I have also gone ahead and built a second detector on top of the first and it works as well as the others. I'm still looking for a better solution because I don't know the implications of building two detectors on top of one another.

WMGoBuffs commented 12 years ago

I'm glad to hear about the scintillation effects. The code will be more straightforward once we've eliminated the things that aren't doing anything. Interesting discovery about the bum PMT. I wonder if it has something to do with the for loop starting at 1 instead of 0. C++ arrays begin counting at 0. What if you make the array for(i=0;i<5;i++) instead?

poulsond commented 12 years ago

I have messed with the array starting from 0 up to 5 in order to move the starting position. Unfortunately the result is always the same. I'm not sure why but it is always the first constructed detector that fails.

poulsond commented 12 years ago

So I haven't done much lately but I started messing with the detectors again. I have added a few more just to see what would happen. The first detector constructed was always the issue. I found that part of the constructor was missing an i in the argument and just had 0. I thought this might be the reason but it didn't resolve anything. I then went through commenting out different parts of the detector construction and found that the third part (I think it is the phys_disk construction) when commented out removes the detector issue. I think that it is the glass cap but I'm not sure. I plan on figuring out what it is and why it was only being constructed on the first detector.

WMGoBuffs commented 12 years ago

This is some good debugging. Feel free to drop by if you get stuck (or just want to show me something in person). Today I'm out at the lab, but I'll be in my office tomorrow.