Skip to content

Commit 8caea15

Browse files
committed
Remove debug details
1 parent aff560c commit 8caea15

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2659,11 +2659,8 @@ struct strangenessbuilderInitializer {
26592659
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
26602660
{
26612661
auto strangenessBuilderTask = adaptAnalysisTask<StrangenessBuilder>(cfgc);
2662-
26632662
bool isRun3 = true, hasRunInfo = false;
26642663
bool isMC = false, hasDataTypeInfo = false;
2665-
LOGF(info, "Bool: %i", cfgc.options().hasOption("aod-metadata-Run"));
2666-
26672664
if(cfgc.options().hasOption("aod-metadata-Run") == true){
26682665
hasRunInfo = true;
26692666
if(cfgc.options().get<std::string>("aod-metadata-Run") == "2"){
@@ -2678,7 +2675,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
26782675
}
26792676

26802677
int idxSwitches[8]; //8 switches (real / real r2 / MC / MC r2 + PID)
2681-
bool autoConfigureProcess = true;
2678+
bool autoConfigureProcessConfig = true;
26822679
bool withPID = false;
26832680

26842681
for(size_t ipar = 0; ipar<strangenessBuilderTask.options.size(); ipar++){
@@ -2708,18 +2705,21 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
27082705
idxSwitches[7] = ipar;
27092706
}
27102707
if(option.name == "autoConfigureProcess"){
2711-
autoConfigureProcess = option.defaultValue.get<bool>(); // check if autoconfig requested
2708+
autoConfigureProcessConfig = option.defaultValue.get<bool>(); // check if autoconfig requested
27122709
}
27132710
// use withPID in case preselection is requested
27142711
if(option.name == "preSelectOpts.preselectOnlyDesiredV0s" || option.name == "preSelectOpts.preselectOnlyDesiredCascades" ){
27152712
withPID = withPID || option.defaultValue.get<bool>();
27162713
}
27172714
}
2715+
// if((!hasRunInfo || !hasDataTypeInfo) && autoConfigureProcessConfig){
2716+
// throw std::runtime_error("Autoconfigure requested but no metadata information found! Please check if --aod-file <file> was used in the last workflow added in the execution and if the AO2D in question has metadata save.");
2717+
// }
27182718

27192719
// positions of switches are known. Next: flip if asked for
2720-
if(autoConfigureProcess){
2721-
int relevantProcess = static_cast<int>(isMC) + 2*static_cast<int>(!isRun3) + 4*static_cast<int>(withPID);
2722-
LOGF(info, "Automatic configuration of process switches requested! Present in metadata? Run %i DataType %i, Values: isRun3? %i, isMC? %i, withPID? %i (switch #%i)", hasRunInfo, hasDataTypeInfo, isRun3, isMC, withPID, relevantProcess);
2720+
if(autoConfigureProcessConfig){
2721+
int relevantProcess = static_cast<int>(!isRun3) + 2*static_cast<int>(isMC) + 4*static_cast<int>(withPID);
2722+
LOGF(info, "Automatic configuration of process switches requested! Autodetected settings: isRun3? %i, isMC? %i, withPID? %i (switch #%i)", hasRunInfo, hasDataTypeInfo, isRun3, isMC, withPID, relevantProcess);
27232723
for(size_t idx = 0; idx < 8; idx ++){
27242724
auto option = strangenessBuilderTask.options[idxSwitches[idx]];
27252725
option.defaultValue = false; // switch all off

0 commit comments

Comments
 (0)