I am trying a way to analyze the MhTDC of the FRS scintillators. The idea is to make all the possible differences between hits in both scintillators and take the first combination that gives a reasonable ToF.
I implemented this in a processor called TofSystemMhTDCSc un the UTILS plugin.
I use it like
processor MhTof/TofSystemMhTDC UTILS.TofSystemMhTDCSc
input_array[0] <- LyccaTargetTofCrate.mhtdc0[16] #Sc21L
input_array[1] <- LyccaTargetTofCrate.mhtdc0[18] #Sc21r
input_array[2] <- LyccaTargetTofCrate.mhtdc0[20] #Sc41l
input_array[3] <- LyccaTargetTofCrate.mhtdc0[22] #Sc41r
reference[0] <- LyccaTargetTofCrate.mhtdc0[31] #Trigger
display hit_mult 100,0,100 in TofSystemMhTDC/Multiplicity
display diff_visu_Tof_Left | time_gate_Tof_Left in TofSystemMhTDC/TofLeft
display SelectedTime_Tof_Left in TofSystemMhTDC/TofLeft
display diff_visu_Tof_Right | time_gate_Tof_Right in TofSystemMhTDC/TofRight
display SelectedTime_Tof_Right in TofSystemMhTDC/TofRight
end
After that I can take the Selected Time for left and right PMT and use the TofSystemTacCal processor.
It is still at testing stage, but maybe someone finds it useful.