refactoring for taking into account the dependence of some processes on photon parameters