Public Member Functions | |
def | __getattr__ (self, attr) |
def | __init__ (self, tree, index, tpindex, prefix) |
def | trackingParticle (self) |
Public Member Functions inherited from ntupleDataFormat._Object | |
def | __getattr__ (self, attr) |
def | __init__ (self, tree, index, prefix) |
def | index (self) |
def | isValid (self) |
Private Attributes | |
_tpindex | |
Class representing a match to a TrackingParticle. The point of this class is to provide, in addition to the matched TrackingParticle, also other information about the match (e.g. shared hit fraction for tracks/seeds).
Definition at line 577 of file ntupleDataFormat.py.
def ntupleDataFormat.TrackingParticleMatchInfo.__init__ | ( | self, | |
tree, | |||
index, | |||
tpindex, | |||
prefix | |||
) |
Constructor. Arguments: tree -- TTree object index -- Index of the object (track/seed) matched to TrackingParticle tpindex -- Index of the TrackingParticle match (second index in _simTrkIdx branch) prefix -- String for prefix of the object (track/seed) matched to TrackingParticle
Definition at line 585 of file ntupleDataFormat.py.
def ntupleDataFormat.TrackingParticleMatchInfo.__getattr__ | ( | self, | |
attr | |||
) |
Custom __getattr__ because of the second index needed to access the branch. Note that when mapping the 'attr' to a branch, a 'simTrk' is prepended and the first letter of 'attr' is turned to upper case.
Definition at line 597 of file ntupleDataFormat.py.
References ntupleDataFormat.TrackingParticleMatchInfo._tpindex.
def ntupleDataFormat.TrackingParticleMatchInfo.trackingParticle | ( | self | ) |
Returns matched TrackingParticle.
Definition at line 607 of file ntupleDataFormat.py.
References ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, SingularMode.idx, ME0SegmentAlgorithmBase::HitAndPosition.idx, TriggerOutputBranches::NamedBranchPtr.idx, GE0SegAlgoRU::HitAndPosition.idx, l1t::RegionalOutput< T >::iterator.idx(), MuonAssociatorByHitsHelper::IndexMatch.idx, reco::VertexCompositeCandidate.idx(), RPCLinkSynchroStat::ShortLinkInfo.idx, HcalLogicalMapGenerator.idx, reco::VertexCompositePtrCandidate.idx(), npstat::Element1D< Container, Result >.idx, npstat::Element1DAt< Container, Result >.idx, and reco::Vertex.idx().
|
private |
Definition at line 595 of file ntupleDataFormat.py.
Referenced by ntupleDataFormat.TrackingParticleMatchInfo.__getattr__().