Commit fd9d4b2f authored by David Blyth's avatar David Blyth

trackeff: now should work if Observation source is Particle

parent 12f53238
...@@ -120,11 +120,14 @@ func makeTrackEffPlotters(filename string, pTMin, pTMax, fracCut, etaLimit float ...@@ -120,11 +120,14 @@ func makeTrackEffPlotters(filename string, pTMin, pTMax, fracCut, etaLimit float
for _, sourceID := range eDep.Source { for _, sourceID := range eDep.Source {
simHit, ok := event.GetEntry(sourceID).(*eic.SimHit) simHit, ok := event.GetEntry(sourceID).(*eic.SimHit)
if !ok { if ok {
continue partCandID[simHit.Particle]++
} }
partCandID[simHit.Particle]++ _, ok = event.GetEntry(sourceID).(*eic.Particle)
if ok {
partCandID[sourceID]++
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment