Bugfix for possibly rare cases with EPOCH counter
(cherry picked from commit 03f2140aadbec1097a5ffff23f9120873e6a53bc)

Signed-off-by: Andreas Neiser <neiser@kph.uni-mainz.de>
First step to TDC in CTS (and external Trigger)
(cherry picked from commit 36f28c3b48164757c4c9e815d0e89284824f1698)

Signed-off-by: Andreas Neiser <neiser@kph.uni-mainz.de>
Unpacking TDC in CTS seems to work
(cherry picked from commit 4b154c9d54fedc505b35381311c7ef049506009e)

Signed-off-by: Andreas Neiser <neiser@kph.uni-mainz.de>
Tell what file is unpacked
(cherry picked from commit 71ce079e83514d963a8f01bf513c4d222c99006b)

Signed-off-by: Andreas Neiser <neiser@kph.uni-mainz.de>
External Trigger ID from CTS now extracted and in ROOT Tree
(cherry picked from commit 11ed5ea32e210f251f150e92d4c32b079069cd43)

Signed-off-by: Andreas Neiser <neiser@kph.uni-mainz.de>
Now the calibrated Tree is also correctly built
Forgot to copy the new nCTS* fields
(cherry picked from commit 063a9d605e4133020bd2b21ded0df26cbb7fe158)

Signed-off-by: Andreas Neiser <neiser@kph.uni-mainz.de>
Fixed last event empty bug

Unpacker was crashing if last decoded event was empty and previous
events had entries. This caused the THldEvent destructor to try and
destroy THldSubevent object that wasn't there anymore!
(cherry picked from commit 7700335f082219ece0fbff674a3ac54a77a57af5)

Signed-off-by: Andreas Neiser <neiser@kph.uni-mainz.de>