Skip to content

Handle PFRICH in `npsim.py`

In npsim.py, we have settings unique for the DRICH, but these also need to be applied for the PFRICH. Relevant snippet:

  # Some detectors are only sensitive to optical photons
  SIM.filter.filters['opticalphotons'] = dict(
    name='ParticleSelectFilter/OpticalPhotonSelector',
    parameter={"particle": "opticalphoton"},
  )
  SIM.filter.mapDetFilter['DRICH'] = 'opticalphotons'

  # Use the optical tracker for the DRICH
  SIM.action.mapActions['DRICH'] = 'Geant4OpticalTrackerAction'