Solve seg fault by initializing variables and vectors both at the start and the end of the loop over events. Switch 3D histos to (Y-axis = event's met) instead of (Y-axis = met cut). Add min dphi 3D Histograms depending on the number of parsed leading jets.