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