From f80d058c505706a4792358883adae8fbe52e982d Mon Sep 17 00:00:00 2001 From: Wenqiang Gu Date: Thu, 20 Apr 2023 10:56:31 -0500 Subject: [PATCH] get any apa with -1 --- .../hd/RawDecoding/PDHDDataInterfaceWIB3_tool.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/duneprototypes/Protodune/hd/RawDecoding/PDHDDataInterfaceWIB3_tool.cc b/duneprototypes/Protodune/hd/RawDecoding/PDHDDataInterfaceWIB3_tool.cc index b48fb2d5..a4b51130 100644 --- a/duneprototypes/Protodune/hd/RawDecoding/PDHDDataInterfaceWIB3_tool.cc +++ b/duneprototypes/Protodune/hd/RawDecoding/PDHDDataInterfaceWIB3_tool.cc @@ -127,6 +127,17 @@ void PDHDDataInterface::getFragmentsForEvent(dunedaq::hdf5libs::HDF5RawDataFile: { std::cout << "crate from geo: " << crate_from_geo << std::endl; } + + if (-1 == apano) + { + has_desired_apa = true; + if (fDebugLevel > 1) + { + std::cout << "assume desired APA, please use with caution" << std::endl; + } + break; + } + if (crate_from_geo == apano) { has_desired_apa = true;