I am trying to write a csv file from a root file. However, for variables like the energy of leptons, root produce a vector for such events, which of course, might differ in size depending on the number of leptons produced by my process. My goal is to write something like a dataframe (rows x columns) to implement another code i have in python. However, I must specify the columns. In my case I decided to write only 4 columns for the energy of the leptons. And save only the 4 biggest values that appear in the root file. My question is, what happens with those columns when an event has only 1 lepton? Should I fill the entries of the other three columns with NaN values, 0s, or set -9999 ?
I’m a little bit confuse with this cause if I put -9999 or something similar, it migjt affect some of my statistical variables (?), if I put zero I will have a large number of events with 0 energy for the subleptons for example, and if I put NaN some functions might crash.