Test derivative function with a set of MC photons. This works with either LCPrimitive or LCTemplate objects.