Open brettviren opened 6 years ago
I found this bit lurking:
if(wires[iwire]->channel()<4800){ conv_spectrum[ind] = charge_spectrum[ind]*timeTruth[ind]*indTruth[iwire]; } else{ conv_spectrum[ind] = charge_spectrum[ind]*timeTruth[ind]*colTruth[iwire]; }
This can be fixed by relying on the ordering of the planes w/in the face or by getting the WirePlaneId from one of the wires. The IWirePlane should provide a helper method to return a wpid.
WirePlaneId
IWirePlane
I found this bit lurking: