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 971 of file ntupleDataFormat.py.
def ntupleDataFormat.TrackingParticle.__init__ | ( | self, | |
tree, | |||
index | |||
) |
Constructor. Arguments: tree -- TTree object index -- Index of the TrackingParticle
Definition at line 973 of file ntupleDataFormat.py.
|
private |
Internal function to get the number of matched seeds.
Definition at line 1029 of file ntupleDataFormat.py.
References SeedingNode< DATA >._index, lhef::H5Handler._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, datamodel.Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, output.OutputTree._tree, python.cmstools.EventTree._tree, and output.FullOutput._tree.
Referenced by ntupleDataFormat.TrackingParticle.matchedSeedInfos(), and ntupleDataFormat.TrackingParticle.nMatchedSeeds().
|
private |
Internal function to get the number of matched tracks.
Definition at line 982 of file ntupleDataFormat.py.
References SeedingNode< DATA >._index, lhef::H5Handler._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, datamodel.Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, output.OutputTree._tree, python.cmstools.EventTree._tree, and output.FullOutput._tree.
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 1000 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), ntupleDataFormat.TrackingParticle._nMatchedTracks(), datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, output.OutputTree._tree, python.cmstools.EventTree._tree, output.FullOutput._tree, ntupleDataFormat.TrackingParticle.matchedTrackInfos(), GetRecoTauVFromDQM_MC_cff.next, MuonTruth.simHits(), MuonSimHitMatcher.simHits(), EdgeProperty.simHits, PHcalTB06Info.simHits(), Phase2TrackerValidateDigi.simHits, ntupleDataFormat.TrackingParticle.simHits(), and HLT_2023v12_cff.track.
def ntupleDataFormat.TrackingParticle.decayVertices | ( | self | ) |
Returns a generator for decay vertices. The generator returns TrackingVertex objects.
Definition at line 1062 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, datamodel.Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, output.OutputTree._tree, python.cmstools.EventTree._tree, and output.FullOutput._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 1071 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, output.OutputTree._tree, python.cmstools.EventTree._tree, output.FullOutput._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 1038 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, datamodel.Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, ntupleDataFormat.TrackingParticle._nMatchedSeeds(), CommonAnalyzer._prefix, ntupleDataFormat._Object._prefix, datamodel.Object._prefix, datamodel.Collection._prefix, html.PageSet._prefix, datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, output.OutputTree._tree, python.cmstools.EventTree._tree, output.FullOutput._tree, and FastTimerService_cff.range.
def ntupleDataFormat.TrackingParticle.matchedTrackInfos | ( | self | ) |
Returns a generator for matched tracks. The generator returns TrackMatchInfo objects.
Definition at line 991 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, datamodel.Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, ntupleDataFormat.TrackingParticle._nMatchedTracks(), CommonAnalyzer._prefix, ntupleDataFormat._Object._prefix, datamodel.Object._prefix, datamodel.Collection._prefix, html.PageSet._prefix, datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, output.OutputTree._tree, python.cmstools.EventTree._tree, output.FullOutput._tree, and FastTimerService_cff.range.
Referenced by ntupleDataFormat.TrackingParticle.bestMatchingTrack().
def ntupleDataFormat.TrackingParticle.nMatchedSeeds | ( | self | ) |
Returns the number of matched seeds.
Definition at line 1033 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 986 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), and ntupleDataFormat.TrackingParticle._nMatchedTracks().
def ntupleDataFormat.TrackingParticle.nSimHits | ( | self | ) |
Definition at line 1047 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), and TrackingNtuple::TPHitIndex.simHitIdx.
def ntupleDataFormat.TrackingParticle.parentVertex | ( | self | ) |
Returns the parent TrackingVertex.
Definition at line 1057 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), SeedingNode< DATA >._index, lhef::H5Handler._index, RPCMuonExtraStruct._index, ntupleDataFormat._Object._index, datamodel.Object._index, python.cmstools.EventTree._index, python.cmstools.EventBranch._index, html.HtmlReport._index, datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, output.OutputTree._tree, python.cmstools.EventTree._tree, and output.FullOutput._tree.
def ntupleDataFormat.TrackingParticle.simHits | ( | self | ) |
Returns generator for SimHits.
Definition at line 1051 of file ntupleDataFormat.py.
References ntupleDataFormat._Object._checkIsValid(), datamodel.Event._tree, ntupleDataFormat._Collection._tree, ntupleDataFormat._Object._tree, output.OutputTree._tree, python.cmstools.EventTree._tree, output.FullOutput._tree, and TrackingNtuple::TPHitIndex.simHitIdx.
Referenced by ntupleDataFormat.TrackingParticle.bestMatchingTrack().