Public Member Functions | |
def | __init__ (self, tree, index) |
def | bestMatchingTrack (self) |
def | decayVertices (self) |
def | isLooper (self) |
def | matchedSeedInfos (self) |
def | matchedTrackInfos (self) |
def | nMatchedSeeds (self) |
def | nMatchedTracks (self) |
def | nSimHits (self) |
def | parentVertex (self) |
def | simHits (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 Member Functions | |
def | _nMatchedSeeds (self) |
def | _nMatchedTracks (self) |
Class representing a TrackingParticle.
Definition at line 972 of file ntupleDataFormat.py.
def ntupleDataFormat.TrackingParticle.__init__ | ( | self, | |
tree, | |||
index | |||
) |
Constructor. Arguments: tree -- TTree object index -- Index of the TrackingParticle
Definition at line 974 of file ntupleDataFormat.py.
|
private |
Internal function to get the number of matched seeds.
Definition at line 1030 of file ntupleDataFormat.py.
References SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, and findQualityFiles.size.
Referenced by ntupleDataFormat.TrackingParticle.matchedSeedInfos(), and ntupleDataFormat.TrackingParticle.nMatchedSeeds().
|
private |
Internal function to get the number of matched tracks.
Definition at line 983 of file ntupleDataFormat.py.
References SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, and findQualityFiles.size.
Referenced by ntupleDataFormat.TrackingParticle.bestMatchingTrack(), ntupleDataFormat.TrackingParticle.matchedTrackInfos(), and ntupleDataFormat.TrackingParticle.nMatchedTracks().
def ntupleDataFormat.TrackingParticle.bestMatchingTrack | ( | self | ) |
Returns best-matching track, even for non-reconstructed TrackingParticles, or None, if there is no best-matching track. Best-matching is defined as the one with largest number of hits matched to the hits of a TrackingParticle (>= 3). If there are many fulfilling the same number of hits, the one inducing the innermost hit of the TrackingParticle is chosen.
Definition at line 1001 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), ntupleDataFormat.TrackingParticle._nMatchedTracks(), ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, ntupleDataFormat.TrackingParticle.matchedTrackInfos(), GetRecoTauVFromDQM_MC_cff.next, MuonTruth.simHits(), MuonSimHitMatcher.simHits(), PHcalTB06Info.simHits(), EdgeProperty.simHits, ntupleDataFormat.TrackingParticle.simHits(), and HiIsolationCommonParameters_cff.track.
def ntupleDataFormat.TrackingParticle.decayVertices | ( | self | ) |
Returns a generator for decay vertices. The generator returns TrackingVertex objects.
Definition at line 1063 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, and python.cmstools.EventTree._tree.
def ntupleDataFormat.TrackingParticle.isLooper | ( | self | ) |
Returns True if this TrackingParticle is a looper. Note that the check involves looping over the SimHits, so it is not too cheap.
Definition at line 1072 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, TrackingNtuple::TPHitIndex.simHitIdx, hit.x, and hit.y.
def ntupleDataFormat.TrackingParticle.matchedSeedInfos | ( | self | ) |
Returns a generator for matched tracks. The generator returns SeedMatchInfo objects.
Definition at line 1039 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, ntupleDataFormat.TrackingParticle._nMatchedSeeds(), CommonAnalyzer._prefix, ntupleDataFormat._Object._prefix, html.PageSet._prefix, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, and python.cmstools.EventTree._tree.
def ntupleDataFormat.TrackingParticle.matchedTrackInfos | ( | self | ) |
Returns a generator for matched tracks. The generator returns TrackMatchInfo objects.
Definition at line 992 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, ntupleDataFormat.TrackingParticle._nMatchedTracks(), CommonAnalyzer._prefix, ntupleDataFormat._Object._prefix, html.PageSet._prefix, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, and python.cmstools.EventTree._tree.
Referenced by ntupleDataFormat.TrackingParticle.bestMatchingTrack().
def ntupleDataFormat.TrackingParticle.nMatchedSeeds | ( | self | ) |
Returns the number of matched seeds.
Definition at line 1034 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), and ntupleDataFormat.TrackingParticle._nMatchedSeeds().
def ntupleDataFormat.TrackingParticle.nMatchedTracks | ( | self | ) |
Returns the number of matched tracks.
Definition at line 987 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), and ntupleDataFormat.TrackingParticle._nMatchedTracks().
def ntupleDataFormat.TrackingParticle.nSimHits | ( | self | ) |
Definition at line 1048 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), TrackingNtuple::TPHitIndex.simHitIdx, and findQualityFiles.size.
def ntupleDataFormat.TrackingParticle.parentVertex | ( | self | ) |
Returns the parent TrackingVertex.
Definition at line 1058 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, Vispa.Share.FindAlgorithm.FindAlgorithm._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, and python.cmstools.EventTree._tree.
def ntupleDataFormat.TrackingParticle.simHits | ( | self | ) |
Returns generator for SimHits.
Definition at line 1052 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, python.cmstools.EventTree._tree, and TrackingNtuple::TPHitIndex.simHitIdx.
Referenced by ntupleDataFormat.TrackingParticle.bestMatchingTrack().