Public Member Functions | |
def | __getattr__ (self, name) |
def | __getitem__ (self, attr) |
def | __init__ (self, tree, entry) |
def | eval (self, expr) |
Private Attributes | |
_entry | |
_tree | |
Class that allows seeing an entry of a PyROOT TTree as an Event
Definition at line 20 of file datamodel.py.
def datamodel.Event.__init__ | ( | self, | |
tree, | |||
entry | |||
) |
Definition at line 23 of file datamodel.py.
def datamodel.Event.__getattr__ | ( | self, | |
name | |||
) |
Definition at line 28 of file datamodel.py.
References datamodel.Event._tree, and treeReaderArrayTools.readBranch().
Referenced by datamodel.Event.__getitem__(), and datamodel.Object.__getitem__().
def datamodel.Event.__getitem__ | ( | self, | |
attr | |||
) |
Definition at line 33 of file datamodel.py.
References PileUpSummaryInfo.PileUpSummaryInfo.__getattr__(), ExternalGeneratorFilter.ExternalGeneratorFilter.__getattr__(), Types._Untracked.__getattr__(), PhysicsObject.PhysicsObject.__getattr__(), datamodel.Event.__getattr__(), eventsfwlite.Events.__getattr__(), XML2Python.DataNode.__getattr__(), Types._ProxyParameter.__getattr__(), chain.Chain.__getattr__(), Types._ProxyParameterFactory.__getattr__(), VarParsing.VarParsing.__getattr__(), Config.FilteredStream.__getattr__(), and Config.ProcessForProcessAccelerator.__getattr__().
def datamodel.Event.eval | ( | self, | |
expr | |||
) |
Evaluate an expression, as TTree::Draw would do. This is added for convenience, but it may perform poorly and the implementation is not bulletproof, so it's better to rely on reading values, collections or objects directly
Definition at line 36 of file datamodel.py.
References datamodel.Event._entry, and datamodel.Event._tree.
|
private |
Definition at line 25 of file datamodel.py.
Referenced by ntupleDataFormat.Event.entry(), and datamodel.Event.eval().
|
private |
Definition at line 24 of file datamodel.py.
Referenced by datamodel.Event.__getattr__(), ntupleDataFormat._Object.__getattr__(), ntupleDataFormat.BeamSpot.__getattr__(), ntupleDataFormat._Collection.__getitem__(), python.cmstools.EventTree.__getitem__(), ntupleDataFormat._Collection.__iter__(), python.cmstools.EventTree.__iter__(), ntupleDataFormat.TrackingNtuple.__iter__(), ntupleDataFormat.TrackingParticle._nMatchedSeeds(), ntupleDataFormat._SimHitMatchAdaptor._nMatchedSimHits(), ntupleDataFormat._TrackingParticleMatchAdaptor._nMatchedTrackingParticles(), ntupleDataFormat.TrackingParticle._nMatchedTracks(), ntupleDataFormat.Event.beamspot(), ntupleDataFormat.TrackingParticle.bestMatchingTrack(), ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticle(), ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticleFromFirstHit(), output.OutputTree.branch(), python.cmstools.EventTree.branch(), python.cmstools.EventTree.cppCode(), ntupleDataFormat.TrackingVertex.daughterTrackingParticles(), ntupleDataFormat.TrackingParticle.decayVertices(), ntupleDataFormat._DetIdStrAdaptor.detIdStr(), datamodel.Event.eval(), ntupleDataFormat.Event.event(), ntupleDataFormat.Event.eventId(), output.OutputTree.fill(), output.FullOutput.fill(), ntupleDataFormat.TrackingNtuple.getEvent(), ntupleDataFormat._RecoHitAdaptor.gluedHits(), ntupleDataFormat.Event.gluedHits(), ntupleDataFormat.TrackingNtuple.hasHits(), ntupleDataFormat.TrackingNtuple.hasSeeds(), ntupleDataFormat._RecoHitAdaptor.hits(), ntupleDataFormat.Seed.indexWithinAlgo(), ntupleDataFormat._RecoHitAdaptor.invalidHits(), ntupleDataFormat.TrackingParticle.isLooper(), ntupleDataFormat._DetIdStrAdaptor.layerStr(), ntupleDataFormat.InvalidHit.layerStr(), ntupleDataFormat.Event.lumi(), ntupleDataFormat.TrackingParticle.matchedSeedInfos(), ntupleDataFormat._SimHitMatchAdaptor.matchedSimHitInfos(), ntupleDataFormat.TrackingParticle.matchedTrackInfos(), ntupleDataFormat._TrackingParticleMatchAdaptor.matchedTrackingParticleInfos(), ntupleDataFormat.GluedHit.monoHit(), ntupleDataFormat.TrackingVertex.nDaughterTrackingParticles(), ntupleDataFormat.SimHit.nRecHits(), ntupleDataFormat._HitObject.nseeds(), ntupleDataFormat.GluedHit.nseeds(), ntupleDataFormat.Seeds.nSeedsForAlgo(), ntupleDataFormat.TrackingVertex.nSourceTrackingParticles(), ntupleDataFormat._HitObject.ntracks(), ntupleDataFormat.Vertex.nTracks(), ntupleDataFormat.TrackingParticle.parentVertex(), ntupleDataFormat._RecoHitAdaptor.phase2OTHits(), ntupleDataFormat.Event.phase2OTHits(), ntupleDataFormat._RecoHitAdaptor.pixelHits(), ntupleDataFormat.Event.pixelHits(), ntupleDataFormat.Event.run(), ntupleDataFormat.SeedMatchInfo.seed(), ntupleDataFormat.Track.seed(), ntupleDataFormat.Seeds.seedForAlgo(), ntupleDataFormat._HitObject.seeds(), ntupleDataFormat.Event.seeds(), ntupleDataFormat.GluedHit.seeds(), ntupleDataFormat.Seeds.seedsForAlgo(), ntupleDataFormat.SimHitMatchInfo.simHit(), ntupleDataFormat.TrackingParticle.simHits(), ntupleDataFormat._Collection.size(), ntupleDataFormat.TrackingVertex.sourceTrackingParticles(), ntupleDataFormat.GluedHit.stereoHit(), ntupleDataFormat._RecoHitAdaptor.stripHits(), ntupleDataFormat.Event.stripHits(), ntupleDataFormat.TrackMatchInfo.track(), ntupleDataFormat.Seed.track(), ntupleDataFormat.TrackingParticleMatchInfo.trackingParticle(), ntupleDataFormat.SimHit.trackingParticle(), ntupleDataFormat.Event.trackingParticles(), ntupleDataFormat.Event.trackingVertices(), ntupleDataFormat._HitObject.tracks(), ntupleDataFormat.Event.tracks(), ntupleDataFormat.Vertex.tracks(), output.OutputTree.tree(), python.cmstools.EventTree.tree(), ntupleDataFormat.TrackingNtuple.tree(), ntupleDataFormat.Track.vertex(), ntupleDataFormat.Event.vertices(), output.OutputTree.write(), and output.FullOutput.write().