67 """Collects event data about TOP Cherenkov photons."""
69 mcp = sorted(mcps, key=
lambda x: x.getEnergy(), reverse=
True)[0]
70 mcp_pdg = abs(mcp.getPDG())
71 track = mcp.getRelated(
'Tracks')
73 print(
'no related track')
75 logl = track.getRelated(
'TOPLikelihoods')
77 print(
'no related loglihoods')
79 pixlogl = track.getRelated(
'TOPPixelLikelihoods')
81 print(
'no related pixel loglihoods')
89 photon_detections = []
92 moduleID = d.getModuleID()
93 simhit = d.getRelated(
"TOPSimHits")
96 photon = simhit.getRelated(
"TOPSimPhotons")
100 chanID = d.getPixelID() - 1
101 time = photon.getDetectionTime()
102 point = photon.getEmissionPoint()
103 emitTime = photon.getEmissionTime()
104 photon_detections.append([
106 point.X(), point.Y(), point.Z(), emitTime
111 np.array(pixlogl.getPixelLogL_e()),
112 np.array(pixlogl.getPixelLogL_mu()),
113 np.array(pixlogl.getPixelLogL_pi()),
114 np.array(pixlogl.getPixelLogL_K()),
115 np.array(pixlogl.getPixelLogL_p()),
116 np.array(pixlogl.getPixelSigPhot_e()),
117 np.array(pixlogl.getPixelSigPhot_mu()),
118 np.array(pixlogl.getPixelSigPhot_pi()),
119 np.array(pixlogl.getPixelSigPhot_K()),
120 np.array(pixlogl.getPixelSigPhot_p()),
A (simplified) python wrapper for StoreArray.