Size of root-tuple for given cut

Hi,

Is it possible to determine what fraction of the root-file size corresponds to a given cut? I can’t do a simple event count, because I have stored variable-length arrays in the root-tuple, and the distribution of the “N” (variable length) depends on this cut. So, I’m trying to see how much I gain in file size (and NOT number of events) if I throw away a certain class of events.

Does this make sense? If not, I can send a small macro.

Cheers,

–Christos

Hi Christos,

If you have a loop that does the cutting you can simply accumulate the return value of GetEntry for the entry you will keep.

Cheers,
Philippe.