know where photon comes from in madgraph

Read the gen particle information to see where photon in MG sample comes from. Either signal (unlikely, from proton, t,b or W), from a lepton in the event that decayed from the W (BG) or fake (from another source.