Public Member Functions | |
def | __getattr__ (self, attr) |
def | __init__ (self, tree, index, trkindex, prefix) |
def | track (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 | |
_trkindex | |
Class representing a match to a Track. The point of this class is to provide, in addition to the matched Track, also other information about the match (e.g. shared hit fraction.
Definition at line 612 of file ntupleDataFormat.py.
def ntupleDataFormat.TrackMatchInfo.__init__ | ( | self, | |
tree, | |||
index, | |||
trkindex, | |||
prefix | |||
) |
Constructor. Arguments: tree -- TTree object index -- Index of the object (TrackingParticle) matched to track trkindex -- Index of the track match (second index in _trkIdx branch) prefix -- String for prefix of the object (TrackingParticle) matched to track
Definition at line 618 of file ntupleDataFormat.py.
def ntupleDataFormat.TrackMatchInfo.__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 'trk' is prepended and the first letter of 'attr' is turned to upper case.
Definition at line 630 of file ntupleDataFormat.py.
References ntupleDataFormat.TrackMatchInfo._trkindex, and pileupCalc.upper.
def ntupleDataFormat.TrackMatchInfo.track | ( | self | ) |
Returns matched Track.
Definition at line 640 of file ntupleDataFormat.py.
References ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, ME0SegmentAlgorithmBase::HitAndPosition.idx, TriggerOutputBranches::NamedBranchPtr.idx, MuonAssociatorByHitsHelper::IndexMatch.idx, reco::VertexCompositeCandidate.idx(), RPCLinkSynchroStat::ShortLinkInfo.idx, HcalLogicalMapGenerator.idx, reco::VertexCompositePtrCandidate.idx(), reco::Vertex.idx(), npstat::Element1D< Container, Result >.idx, and npstat::Element1DAt< Container, Result >.idx.
|
private |
Definition at line 628 of file ntupleDataFormat.py.
Referenced by ntupleDataFormat.TrackMatchInfo.__getattr__().