7878#include " DetectorsRaw/RDHUtils.h"
7979#include " ITStracking/TrackingInterface.h"
8080#include " GPUWorkflowInternal.h"
81- #include " TPCCalibration/NeuralNetworkClusterizer.h"
8281// #include "Framework/ThreadPool.h"
8382
8483#include < TStopwatch.h>
@@ -804,15 +803,13 @@ void GPURecoWorkflowSpec::run(ProcessingContext& pc)
804803 size_t size = DataRefUtils::getPayloadSize (m);
805804 if (nnClusterizerSettings.nnCCDBDumpToFile == 1 ) {
806805 dumpOnnxToFile (buffer, size, " net_classification_c1.onnx" );
807- LOG (info) << " (NN CLUS) Dumped nn_classification_c1 from CCDB to net_classification_c1.onnx" ;
808806 }
809807 } else if (evalMode[0 ] == " c2" ) {
810808 m = pc.inputs ().get (" nn_classification_c2" );
811809 const char * buffer = const_cast <char *>(m.payload );
812810 size_t size = DataRefUtils::getPayloadSize (m);
813811 if (nnClusterizerSettings.nnCCDBDumpToFile == 1 ) {
814812 dumpOnnxToFile (buffer, size, " net_classification_c2.onnx" );
815- LOG (info) << " (NN CLUS) Dumped nn_classification_c2 from CCDB to net_classification_c2.onnx" ;
816813 }
817814 }
818815
@@ -821,15 +818,13 @@ void GPURecoWorkflowSpec::run(ProcessingContext& pc)
821818 size_t size = DataRefUtils::getPayloadSize (m);
822819 if (nnClusterizerSettings.nnCCDBDumpToFile == 1 ) {
823820 dumpOnnxToFile (buffer, size, " net_regression_c1.onnx" );
824- LOG (info) << " (NN CLUS) Dumped nn_regression_c1 from CCDB to net_regression_c1.onnx" ;
825821 }
826822 if (evalMode[1 ] == " r2" ) {
827823 m = pc.inputs ().get (" nn_regression_c2" );
828824 const char * buffer = const_cast <char *>(m.payload );
829825 size_t size = DataRefUtils::getPayloadSize (m);
830826 if (nnClusterizerSettings.nnCCDBDumpToFile == 1 ) {
831827 dumpOnnxToFile (buffer, size, " net_regression_c2.onnx" );
832- LOG (info) << " (NN CLUS) Dumped nn_regression_c2 from CCDB to net_regression_c2.onnx" ;
833828 }
834829 }
835830 }
@@ -1292,9 +1287,9 @@ Inputs GPURecoWorkflowSpec::inputs()
12921287 std::map<std::string, std::string> metadata;
12931288 metadata[" inputDType" ] = nnClusterizerSettings.nnInferenceInputDType ; // FP16 or FP32
12941289 metadata[" outputDType" ] = nnClusterizerSettings.nnInferenceOutputDType ; // FP16 or FP32
1295- metadata[" nnCCDBWithMomentum" ] = nnClusterizerSettings.nnCCDBWithMomentum ; // 0, 1 -> Only for regression model
1290+ metadata[" nnCCDBWithMomentum" ] = nnClusterizerSettings.nnCCDBWithMomentum ; // 0, 1 -> Only for regression model
12961291 metadata[" nnCCDBLayerType" ] = nnClusterizerSettings.nnCCDBClassificationLayerType ; // FC, CNN
1297- metadata[" nnCCDBInteractionRate" ] = nnClusterizerSettings.nnCCDBInteractionRate ; // in kHz
1292+ metadata[" nnCCDBInteractionRate" ] = nnClusterizerSettings.nnCCDBInteractionRate ; // in kHz
12981293 metadata[" nnCCDBBeamType" ] = nnClusterizerSettings.nnCCDBBeamType ; // pp, pPb, PbPb
12991294
13001295 auto convert_map_to_metadata = [](const std::map<std::string, std::string>& inputMap, std::vector<o2::framework::CCDBMetadata>& outputMetadata) {
@@ -1308,13 +1303,15 @@ Inputs GPURecoWorkflowSpec::inputs()
13081303 std::vector<std::string> evalMode = o2::utils::Str::tokenize (nnClusterizerSettings.nnEvalMode , ' :' );
13091304 std::vector<o2::framework::CCDBMetadata> ccdb_metadata;
13101305
1311- auto printSettings = [](const std::map<std::string, std::string>& settings) {
1312- LOG (info) << " (NN CLUS) NN Clusterizer CCDB settings:" ;
1313- for (const auto & [key, value] : settings) {
1314- LOG (info) << " " << key << " : " << value;
1315- }
1316- };
1317- printSettings (metadata);
1306+ if (mConfParam ->printSettings ) {
1307+ auto printSettings = [](const std::map<std::string, std::string>& settings) {
1308+ LOG (info) << " (NN CLUS) NN Clusterizer CCDB settings:" ;
1309+ for (const auto & [key, value] : settings) {
1310+ LOG (info) << " " << key << " : " << value;
1311+ }
1312+ };
1313+ printSettings (metadata);
1314+ }
13181315
13191316 if (evalMode[0 ] == " c1" ) {
13201317 metadata[" nnCCDBEvalType" ] = " classification_c1" ;
0 commit comments