Dear Software Help,
I suspect Richard should take a look at this. Before I get to my issue/question, I need to give a little background.
As a reminder, we have moved the microscope to cover the coherent peak at 6 GeV (instead of 9 GeV). At this position, we will often have degraded electrons hitting both the microscope and the hodoscope planes (in this region the hodoscope is sparse
so not every electron should have hits in both counters). See below for details of the simulation, but they are not too important for the issue I am raising.
With the default hdgeant4, only microscope hits are recorded in the output (in the overlap region). I have tracked this down to code in
GlueXPseudoDetectorTag.cc (line 137). If a hit is found in the microscope, it does not search the hodoscope. (See relevant code below) If I change the ‘else if’ statement to ‘if’, both microscope and hodoscope
hits appear in the output. A screenshot of the output with both microscope and hodoscope hits is also given below.
ISSUE: In the screenshot below you will see that both the truth information and regular hit info are exactly the same for the microscope and the hodoscope. The TRUTH info should be the same, but the smeared hit should be slightly different between
microscope and hodoscope. This is where my questions/comment comes in. I believe the problem is that the code uses the single variable ‘E’ for both the microscope and hodoscope. However, they should be different based on the geometrical sizes of microscope
and hodoscope counters. I could, of course, simply define two variables ‘Em’ and ‘Eh’. However, this code is complicated by the fact that the simulation is combining multiple MC energies into a single microscope of hodoscope hit. It would be best for an ‘expert’
to take a look at this and update the code for dual hits in the two detectors.
Additional note: In the hd_dump output, we only get a single DBeamPhoton, as it should be. It always takes the hit from the microscope (based on viewing a dozen events), which is probably also the desired output. Nevertheless, we also check the
analysis code that computes the DBeamPhoton and combines the microscope and hodoscope hits correctly.
Thanks, Elton.
—————————————
Additional notes for interested parties:
I have simulated events based on the BH muons that were generated/processed by Richard and Andrew. The simulations were produced running MCWrapper interactively (1000 events produced). If anyone is interested in the details, all files can be found
on the work disk at
ifarm1802:gen_BH>pwd
/w/halld-scshelf2101/halld2/home/elton/gen_BH
The output files are located in
ifarm1801:hddm>pwd
/w/halld-scshelf2101/home/elton/gen_BH_mar2022/hddm
------------------------------------
Elton Smith
Jefferson Lab MS 12H3
12000 Jefferson Ave STE 4
Newport News, VA 23606