JeffersonLab / HDGeant4

Geant4 simulation for the GlueX experiment
4 stars 4 forks source link

unknown particle type 50 being generated through interactions #187

Closed rjones30 closed 2 years ago

rjones30 commented 3 years ago

The following error shows up in simulations of events containing certain types of primary particles. This message is going to stderr in hdgeant4. ParticleMass: Error: Unknown particle type 50, returning HUGE_VAL... It happens in bursts of order 10 at a time, as if the particle were being generated in bunches. In Geant3, this is the particle type for optical photons, eg. Cerenkov photons or scintillation. I am not aware of any explicit simulation of scintillation light in hdgeant4, so it is probably some residue of G3 code that made it into G4 for the dirc.

rjones30 commented 3 years ago

The only possible place this could happen is in GlueXSensitiveDetectorFCAL.cc: int pmass = track->GetDynamicParticle()->GetMass(); This raises the question, how does a Cerenkov photon get inside the FCAL? This is a Cerenkov detector, but AFAIK there is no explicit Cerenkov generation implemented for the FCAL in this simulation. The run number is 71000 so there is a DIRC in the geometry, but it should not leak like this unless there is an overlap problem somewhere. Also, why does it only happen for certain kinds of particles in the particle gun sim samples?

but not

jrstevenjlab commented 3 years ago

I suppose one possibility if you see this in the FCAL is the Plexiglas material. At one point for the DIRC we were considering a plexiglass window instead of fused silica and added optical properties to it. I see now that they are still in the material definition which is used for the LED monitoring panels in front of the FCAL but not used anywhere in the DIRC

https://github.com/JeffersonLab/hdds/blob/de899d6a375b3ef696eaecb5c2f5b119b757b54b/Material_HDDS.xml#L679

If you remove the optical properties, it you shouldn't get Cherenkov photons even if the CKOV option is on, right? Why it's different for certain kinds of particles... I have no idea.

rjones30 commented 3 years ago

Justin,

Ok, that is helpful. My guess is that the plexiglass is in the light guide at the back of the FCAL blocks. Those are sensitive volumes. I will have a look at that.

-Richard

On Sun, Mar 21, 2021 at 6:06 PM Justin Stevens @.***> wrote:

I suppose one possibility if you see this in the FCAL is the Plexiglas material. At one point for the DIRC we were considering a plexiglass window instead of fused silica and added optical properties to it. I see now that they are still in the material definition which is used for the panels in from of the FCAL but not used anywhere in the DIRC

https://github.com/JeffersonLab/hdds/blob/de899d6a375b3ef696eaecb5c2f5b119b757b54b/Material_HDDS.xml#L679

If you remove the optical properties, it you shouldn't get Cherenkov photons even if the CKOV option is on, right? Why it's different for certain kinds of particles... I have no idea.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JeffersonLab/HDGeant4/issues/187#issuecomment-803667852, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3YKWAG73KJ7R4PQOJHSSDTEZUVTANCNFSM4ZRPFFGA .

markdalton commented 3 years ago

The FCAL LED monitoring system is directly upstream of the FCAL blocks. The are 4 large sheets which each cover a single quadrant of the detector. The LEDs themselves are at the edge of these sheets and the sheets act to transport the light from the edge to all of the blocks.

rjones30 commented 2 years ago

Cerenkov light can be produced in the light guides at the back of the fcal. This is normal, but explicit following of CKOV photons should be suppressed in the light guides. I have not seen this warning in a while, closing this issue until it pops up again. -Richard