Definition at line 743 of file ntuplePrintersDiff.py.
def ntuplePrintersDiff._RecHitPrinter.__init__ |
( |
|
self, |
|
|
|
indent = 0 |
|
) |
| |
def ntuplePrintersDiff._RecHitPrinter._printHits |
( |
|
self, |
|
|
|
hits |
|
) |
| |
|
private |
Definition at line 747 of file ntuplePrintersDiff.py.
References CommonAnalyzer._prefix, ntupleDataFormat._Object._prefix, html.PageSet._prefix, ntupleDataFormat.BeamSpot._prefix, ntuplePrintersDiff._IndentPrinter._prefix, join(), hit.x, hit.y, and hit.z.
Referenced by ntuplePrintersDiff.SeedPrinter.printHits(), and ntuplePrintersDiff.TrackPrinter.printHits().
754 if hasattr(hit,
"matchedSimHitInfos"):
755 matched =
" from %s " % HitSimType.toString(hit.simType())
757 hasChargeFraction =
False 758 for shInfo
in hit.matchedSimHitInfos():
759 m =
"%d:%d" % (shInfo.simHit().trackingParticle().
index(), shInfo.simHit().
index())
760 if hasattr(shInfo,
"chargeFraction"):
761 m +=
"(%.1f)"%(shInfo.chargeFraction()*100)
762 hasChargeFraction =
True 764 if len(matches) == 0:
765 matched +=
"not matched to any TP/SimHit" 767 matched +=
"matched to TP:SimHit" 768 if hasChargeFraction:
770 matched +=
" "+
",".
join(matches)
773 if isinstance(hit, GluedHit):
774 glued =
"monoHit %d stereoHit %d " % (hit.monoHit().
index(), hit.stereoHit().
index())
776 lst.append(self.
_prefix+
"{layer} {hit} detid {detid} {detidStr} {glued}{coord}{matched}".
format(layer=hit.layerStr(), hit=hit.index(),
777 detid=hit.detId(), detidStr=hit.detIdStr(),
778 glued=glued, coord=coord, matched=matched))
static std::string join(char **cmd)
def _printHits(self, hits)