Optimise material checks in GaussCherenkov.
Follows up the discussion in !646 (merged) (on using material index to compare materials, instead of strings).
See the comment !646 (comment 3827395) and the reply from Sajan:
Actually, there is a materiaIndex and we are using it in another Rich physics process in a similar situation for improving speed. The index needs to be first stored locally in the class, before using it at this location. I can send some technical info to @bmalecki regarding this. In general we were considering these type of small improvements as part of global transition to dd4hep, gaussino etc. But I am OK with having this done, on this occasion also, if it helps.
-
use material indices for material comparison in Sim/GaussCherenkov/src/srcG4Ckv/CkvG4OpBoundaryProcess.cc