13 atexit.register( ROOT.xAOD.ClearTransientTrees )
20 for i
in range( self.size() ):
32 print(
"generateDVIterators INFO Attaching iterators to all known DV "
34 print(
"generateDVIterators INFO This may take a moment..." )
39 for name
in [
'TruthParticleContainer',
41 'CaloClusterContainer',
42 'TrackParticleContainer',
48 'TrigElectronContainer',
49 'L2CombinedMuonContainer',
50 'ParticleContainer' ]:
51 getattr( ROOT.xAOD, name,
None )
55 for typ
in ROOT.gROOT.GetListOfClasses():
57 if not typ.IsLoaded():
60 if typ.GetName().
find(
"DataVector<" ) != 0:
63 ptyp = getattr( ROOT, typ.GetName(),
None )
65 print(
"generateDVIterators ERROR Couldn't get python type for " \
66 "\"%s\"" % typ.GetName() )
69 ptyp.__iter__ = DataVectorIterator