Skip to content
Snippets Groups Projects
Commit 394b7e37 authored by Sergei Zharko's avatar Sergei Zharko
Browse files

online: remove temporary debugging output

parent a8616985
No related branches found
No related tags found
1 merge request!2000Lambda-selector in cbmreco (first iteration)
......@@ -227,7 +227,7 @@ target_link_libraries(Algo
external::fles_monitoring
cppzmq
poolstl
CbmKFParticleOnlineInterface
PRIVATE CbmKFParticleOnlineInterface
)
target_compile_definitions(Algo PUBLIC NO_ROOT)
xpu_attach(Algo ${DEVICE_SRCS})
......@@ -301,7 +301,7 @@ if (NOT CBM_ONLINE_STANDALONE)
external::fles_monitoring
cppzmq
poolstl
CbmKFParticleOfflineInterface
PRIVATE CbmKFParticleOnlineInterface
)
xpu_attach(AlgoOffline ${DEVICE_SRCS})
......
......@@ -12,9 +12,6 @@
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <fmt/format.h>
namespace cbm::algo::tof
{
......@@ -52,8 +49,6 @@ namespace cbm::algo::tof
//Iterator-based version. Faster than index-based version.
Clusterizer::resultType Clusterizer::buildClusters(std::vector<inputType>& input)
{
size_t nInputDigis{
std::accumulate(input.begin(), input.end(), 0, [](size_t s, const auto& v) { return s + v.size(); })};
// Hit variables
Hit cluster;
......@@ -77,10 +72,6 @@ namespace cbm::algo::tof
lastChanPos.push_back(input[chan].begin());
}
size_t nInputDigisUsed{0};
if (nInputDigis > 0) {
//std::cout << "------------- call: buildClusters: number of digis: " << nInputDigis << '\n';
}
for (int32_t chan = 0; (size_t) chan < numChan; chan++) {
// Set partition vectors
......@@ -92,17 +83,9 @@ namespace cbm::algo::tof
chanSizes.back() = 0;
continue;
}
nInputDigisUsed += input[chan].size();
inputType& storDigi = input[chan];
auto digiIt = storDigi.begin();
if (std::distance(storDigi.begin(), storDigi.end())) {
//std::cout << "DISTANCE: " << std::distance(storDigi.begin(), storDigi.end()) << '\n';
for (const auto& digi : storDigi) {
std::string sAddress = fmt::format("{:#08x}", digi.first->GetAddress());
//std::cout << " " << digi.first->GetTime() << "ns, address: " << sAddress << '\n';
}
}
while (1 < std::distance(digiIt, storDigi.end())) {
while (digiIt->first->GetSide() == std::next(digiIt)->first->GetSide()) { // Not one Digi of each end!
digiIt++;
......@@ -197,10 +180,6 @@ namespace cbm::algo::tof
storDigi.clear();
} // for( int32_t chan = 0; chan < iNbCh; chan++ )
//if (nInputDigis> 0) {
// std::cout << ">>>>>> " << nInputDigisUsed << "/" << nInputDigis << '\n';
//}
// Now check if another hit/cluster is started
// and save it if it's the case.
if (0 < cluster.numChan()) {
......
# The script creates two libraries:
# 1) CbmKFParticleOnlineInterface -- a specific KFParticle library interface for the CBM online reconstruction;
# 2) CbmKFParticleOfflineInterface -- a specific interface for the offline reconstruction in CBM.
# The both libraries contain only the KFParticle core and do not include KFParticleTest or KFParticlePerformance.
if(NOT CBM_ONLINE_STANDALONE)
### CbmKFParticleOnlineInterface
add_library(CbmKFParticleOnlineInterface INTERFACE)
......@@ -12,17 +5,19 @@ if(NOT CBM_ONLINE_STANDALONE)
target_compile_definitions(CbmKFParticleOnlineInterface
INTERFACE DO_TPCCATRACKER_EFF_PERFORMANCE NonhomogeneousField CBM USE_TIMERS)
target_link_libraries(CbmKFParticleOnlineInterface
INTERFACE ROOT::Core ROOT::Hist ROOT::MathCore KFParticle)
INTERFACE KFParticle
ROOT::Core
ROOT::Hist
ROOT::MathCore
ROOT::Gpad
ROOT::Graf
ROOT::Physics
ROOT::EG
ROOT::RIO
ROOT::Tree
ROOT::MathCore
)
install(TARGETS CbmKFParticleOnlineInterface DESTINATION lib)
### CbmKFParticleOfflineInterface
add_library(CbmKFParticleOfflineInterface INTERFACE)
target_include_directories(CbmKFParticleOfflineInterface INTERFACE)
target_compile_definitions(CbmKFParticleOfflineInterface
INTERFACE DO_TPCCATRACKER_EFF_PERFORMANCE NonhomogeneousField CBM USE_TIMERS)
target_link_libraries(CbmKFParticleOfflineInterface
INTERFACE ROOT::Core ROOT::Hist ROOT::MathCore KFParticle)
install(TARGETS CbmKFParticleOfflineInterface DESTINATION lib)
else()
# Creating a replacement of the CbmKFParticleOnlineInterface library for a standalone mode
set(KFP_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../external/KFParticle/KFParticle)
......@@ -48,6 +43,7 @@ else()
target_compile_definitions(CbmKFParticleOnlineInterface PUBLIC NonhomogeneousField CBM CBM_ONLINE)
target_link_libraries(CbmKFParticleOnlineInterface
PUBLIC Vc::Vc
ROOT::Core)
ROOT::Core
)
install(TARGETS CbmKFParticleOnlineInterface DESTINATION lib)
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment