WireCell / wire-cell-gen

Wire Cell packages that can generate things like wires, cells, depositions, diffusions, slices, frames, ...
0 stars 1 forks source link

The `Truth` ductor is microboone specific #15

Open brettviren opened 6 years ago

brettviren commented 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];
        }
brettviren commented 6 years ago

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.