Definition at line 744 of file ntuplePrintersDiff.py.
def ntuplePrintersDiff._RecHitPrinter.__init__ |
( |
|
self, |
|
|
|
indent = 0 |
|
) |
| |
def ntuplePrintersDiff._RecHitPrinter._printHits |
( |
|
self, |
|
|
|
hits |
|
) |
| |
|
private |
Definition at line 748 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().
755 if hasattr(hit,
"matchedSimHitInfos"):
756 matched =
" from %s " % HitSimType.toString(hit.simType())
758 hasChargeFraction =
False 759 for shInfo
in hit.matchedSimHitInfos():
760 m =
"%d:%d" % (shInfo.simHit().trackingParticle().
index(), shInfo.simHit().
index())
761 if hasattr(shInfo,
"chargeFraction"):
762 m +=
"(%.1f)"%(shInfo.chargeFraction()*100)
763 hasChargeFraction =
True 765 if len(matches) == 0:
766 matched +=
"not matched to any TP/SimHit" 768 matched +=
"matched to TP:SimHit" 769 if hasChargeFraction:
771 matched +=
" "+
",".
join(matches)
774 if isinstance(hit, GluedHit):
775 glued =
"monoHit %d stereoHit %d " % (hit.monoHit().
index(), hit.stereoHit().
index())
777 lst.append(self.
_prefix+
"{layer} {hit} detid {detid} {detidStr} {glued}{coord}{matched}".
format(layer=hit.layerStr(), hit=hit.index(),
778 detid=hit.detId(), detidStr=hit.detIdStr(),
779 glued=glued, coord=coord, matched=matched))
static std::string join(char **cmd)
def _printHits(self, hits)