Public Member Functions | |
def | __getattr__ (self, attr) |
def | __init__ (self, tree, index, shindex, prefix) |
def | simHit (self) |
Public Member Functions inherited from ntupleDataFormat._Object | |
def | __init__ (self, tree, index, prefix) |
def | index (self) |
def | isValid (self) |
Private Attributes | |
_shindex | |
Class representing a match to a SimHit. The point of this class is to provide, in addition to the matched SimHit, also other information about the match (e.g. fraction of charge from this SimHit).
Definition at line 548 of file ntupleDataFormat.py.
def ntupleDataFormat.SimHitMatchInfo.__init__ | ( | self, | |
tree, | |||
index, | |||
shindex, | |||
prefix | |||
) |
Constructor. Arguments: tree -- TTree object index -- Index of the hit matched to SimHit shindex -- Index of the SimHit match (second index in _simHitIdx branch) prefix -- String for prefix of the object (track/seed/hit) matched to TrackingParticle
Definition at line 555 of file ntupleDataFormat.py.
def ntupleDataFormat.SimHitMatchInfo.__getattr__ | ( | self, | |
attr | |||
) |
Custom __getattr__ because of the second index needed to access the branch.
Reimplemented from ntupleDataFormat._Object.
Definition at line 567 of file ntupleDataFormat.py.
References ntupleDataFormat.SimHitMatchInfo._shindex.
def ntupleDataFormat.SimHitMatchInfo.simHit | ( | self | ) |
Returns matched SimHit.
Definition at line 572 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, CommonAnalyzer._prefix, ntupleDataFormat._Object._prefix, html.PageSet._prefix, ntupleDataFormat.SimHitMatchInfo._shindex, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, and python.cmstools.EventTree._tree.
|
private |
Definition at line 565 of file ntupleDataFormat.py.
Referenced by ntupleDataFormat.SimHitMatchInfo.__getattr__(), and ntupleDataFormat.SimHitMatchInfo.simHit().