I am working with an AOD-file (in ARA) that has e.g. an ElectronContainer. Can I make my own ElectronContainer in ROOT? That is, I want to create a new container that includes only a subset of the original ElectronContainer. How should I do this, and where can I find information about it?
I tried to do in python something like this:
def GetElectrons(El): els=ROOT.ElectronContainer for el in El: if ( el.author()==1 or el.author==3 and \ (el.isem() & ROOT.egammaPID.ElectronMedium) == 0): els.Add(el)
where El is already an ElectronContainer from the AOD.
This is obviously wrong since I get: