Skip to content

Commit 6e89969

Browse files
committed
Please consider the following formatting changes
1 parent 0c5c191 commit 6e89969

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

PWGLF/TableProducer/Strangeness/strangenessbuilder.cxx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2659,68 +2659,68 @@ struct strangenessbuilderInitializer {
26592659
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
26602660
{
26612661
auto strangenessBuilderTask = adaptAnalysisTask<StrangenessBuilder>(cfgc);
2662-
bool isRun3 = true, hasRunInfo = false;
2662+
bool isRun3 = true, hasRunInfo = false;
26632663
bool isMC = false, hasDataTypeInfo = false;
2664-
if(cfgc.options().hasOption("aod-metadata-Run") == true){
2664+
if (cfgc.options().hasOption("aod-metadata-Run") == true) {
26652665
hasRunInfo = true;
2666-
if(cfgc.options().get<std::string>("aod-metadata-Run") == "2"){
2666+
if (cfgc.options().get<std::string>("aod-metadata-Run") == "2") {
26672667
isRun3 = false;
26682668
}
26692669
}
2670-
if(cfgc.options().hasOption("aod-metadata-DataType") == true){
2670+
if (cfgc.options().hasOption("aod-metadata-DataType") == true) {
26712671
hasDataTypeInfo = true;
2672-
if(cfgc.options().get<std::string>("aod-metadata-DataType") == "MC"){
2672+
if (cfgc.options().get<std::string>("aod-metadata-DataType") == "MC") {
26732673
isMC = true;
26742674
}
26752675
}
26762676

2677-
int idxSwitches[8]; //8 switches (real / real r2 / MC / MC r2 + PID)
2677+
int idxSwitches[8]; // 8 switches (real / real r2 / MC / MC r2 + PID)
26782678
bool autoConfigureProcessConfig = true;
26792679
bool withPID = false;
26802680

2681-
for(size_t ipar = 0; ipar<strangenessBuilderTask.options.size(); ipar++){
2681+
for (size_t ipar = 0; ipar < strangenessBuilderTask.options.size(); ipar++) {
26822682
auto option = strangenessBuilderTask.options[ipar];
2683-
if(option.name == "processRealData"){
2683+
if (option.name == "processRealData") {
26842684
idxSwitches[0] = ipar;
26852685
}
2686-
if(option.name == "processRealDataRun2"){
2686+
if (option.name == "processRealDataRun2") {
26872687
idxSwitches[1] = ipar;
26882688
}
2689-
if(option.name == "processMonteCarlo"){
2689+
if (option.name == "processMonteCarlo") {
26902690
idxSwitches[2] = ipar;
26912691
}
2692-
if(option.name == "processMonteCarloRun2"){
2692+
if (option.name == "processMonteCarloRun2") {
26932693
idxSwitches[3] = ipar;
26942694
}
2695-
if(option.name == "processRealDataWithPID"){
2695+
if (option.name == "processRealDataWithPID") {
26962696
idxSwitches[4] = ipar;
26972697
}
2698-
if(option.name == "processRealDataRun2WithPID"){
2698+
if (option.name == "processRealDataRun2WithPID") {
26992699
idxSwitches[5] = ipar;
27002700
}
2701-
if(option.name == "processMonteCarloWithPID"){
2701+
if (option.name == "processMonteCarloWithPID") {
27022702
idxSwitches[6] = ipar;
27032703
}
2704-
if(option.name == "processMonteCarloRun2WithPID"){
2704+
if (option.name == "processMonteCarloRun2WithPID") {
27052705
idxSwitches[7] = ipar;
27062706
}
2707-
if(option.name == "autoConfigureProcess"){
2707+
if (option.name == "autoConfigureProcess") {
27082708
autoConfigureProcessConfig = option.defaultValue.get<bool>(); // check if autoconfig requested
27092709
}
27102710
// use withPID in case preselection is requested
2711-
if(option.name == "preSelectOpts.preselectOnlyDesiredV0s" || option.name == "preSelectOpts.preselectOnlyDesiredCascades" ){
2711+
if (option.name == "preSelectOpts.preselectOnlyDesiredV0s" || option.name == "preSelectOpts.preselectOnlyDesiredCascades") {
27122712
withPID = withPID || option.defaultValue.get<bool>();
27132713
}
27142714
}
2715-
if((!hasRunInfo || !hasDataTypeInfo) && autoConfigureProcessConfig){
2715+
if ((!hasRunInfo || !hasDataTypeInfo) && autoConfigureProcessConfig) {
27162716
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 saved in it.");
27172717
}
27182718

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

0 commit comments

Comments
 (0)