@@ -2650,68 +2650,68 @@ struct StrangenessBuilder {
26502650WorkflowSpec defineDataProcessing (ConfigContext const & cfgc)
26512651{
26522652 auto strangenessBuilderTask = adaptAnalysisTask<StrangenessBuilder>(cfgc);
2653- bool isRun3 = true , hasRunInfo = false ;
2653+ bool isRun3 = true , hasRunInfo = false ;
26542654 bool isMC = false , hasDataTypeInfo = false ;
2655- if (cfgc.options ().hasOption (" aod-metadata-Run" ) == true ){
2655+ if (cfgc.options ().hasOption (" aod-metadata-Run" ) == true ) {
26562656 hasRunInfo = true ;
2657- if (cfgc.options ().get <std::string>(" aod-metadata-Run" ) == " 2" ){
2657+ if (cfgc.options ().get <std::string>(" aod-metadata-Run" ) == " 2" ) {
26582658 isRun3 = false ;
26592659 }
26602660 }
2661- if (cfgc.options ().hasOption (" aod-metadata-DataType" ) == true ){
2661+ if (cfgc.options ().hasOption (" aod-metadata-DataType" ) == true ) {
26622662 hasDataTypeInfo = true ;
2663- if (cfgc.options ().get <std::string>(" aod-metadata-DataType" ) == " MC" ){
2663+ if (cfgc.options ().get <std::string>(" aod-metadata-DataType" ) == " MC" ) {
26642664 isMC = true ;
26652665 }
26662666 }
26672667
2668- int idxSwitches[8 ]; // 8 switches (real / real r2 / MC / MC r2 + PID)
2668+ int idxSwitches[8 ]; // 8 switches (real / real r2 / MC / MC r2 + PID)
26692669 bool autoConfigureProcessConfig = true ;
26702670 bool withPID = false ;
26712671
2672- for (size_t ipar = 0 ; ipar< strangenessBuilderTask.options .size (); ipar++){
2672+ for (size_t ipar = 0 ; ipar < strangenessBuilderTask.options .size (); ipar++) {
26732673 auto option = strangenessBuilderTask.options [ipar];
2674- if (option.name == " processRealData" ){
2674+ if (option.name == " processRealData" ) {
26752675 idxSwitches[0 ] = ipar;
26762676 }
2677- if (option.name == " processRealDataRun2" ){
2677+ if (option.name == " processRealDataRun2" ) {
26782678 idxSwitches[1 ] = ipar;
26792679 }
2680- if (option.name == " processMonteCarlo" ){
2680+ if (option.name == " processMonteCarlo" ) {
26812681 idxSwitches[2 ] = ipar;
26822682 }
2683- if (option.name == " processMonteCarloRun2" ){
2683+ if (option.name == " processMonteCarloRun2" ) {
26842684 idxSwitches[3 ] = ipar;
26852685 }
2686- if (option.name == " processRealDataWithPID" ){
2686+ if (option.name == " processRealDataWithPID" ) {
26872687 idxSwitches[4 ] = ipar;
26882688 }
2689- if (option.name == " processRealDataRun2WithPID" ){
2689+ if (option.name == " processRealDataRun2WithPID" ) {
26902690 idxSwitches[5 ] = ipar;
26912691 }
2692- if (option.name == " processMonteCarloWithPID" ){
2692+ if (option.name == " processMonteCarloWithPID" ) {
26932693 idxSwitches[6 ] = ipar;
26942694 }
2695- if (option.name == " processMonteCarloRun2WithPID" ){
2695+ if (option.name == " processMonteCarloRun2WithPID" ) {
26962696 idxSwitches[7 ] = ipar;
26972697 }
2698- if (option.name == " autoConfigureProcess" ){
2698+ if (option.name == " autoConfigureProcess" ) {
26992699 autoConfigureProcessConfig = option.defaultValue .get <bool >(); // check if autoconfig requested
27002700 }
27012701 // use withPID in case preselection is requested
2702- if (option.name == " preSelectOpts.preselectOnlyDesiredV0s" || option.name == " preSelectOpts.preselectOnlyDesiredCascades" ){
2702+ if (option.name == " preSelectOpts.preselectOnlyDesiredV0s" || option.name == " preSelectOpts.preselectOnlyDesiredCascades" ) {
27032703 withPID = withPID || option.defaultValue .get <bool >();
27042704 }
27052705 }
2706- if ((!hasRunInfo || !hasDataTypeInfo) && autoConfigureProcessConfig){
2706+ if ((!hasRunInfo || !hasDataTypeInfo) && autoConfigureProcessConfig) {
27072707 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." );
27082708 }
27092709
2710- // positions of switches are known. Next: flip if asked for
2711- if (autoConfigureProcessConfig){
2712- int relevantProcess = static_cast <int >(!isRun3) + 2 * static_cast <int >(isMC) + 4 * static_cast <int >(withPID);
2710+ // positions of switches are known. Next: flip if asked for
2711+ if (autoConfigureProcessConfig) {
2712+ int relevantProcess = static_cast <int >(!isRun3) + 2 * static_cast <int >(isMC) + 4 * static_cast <int >(withPID);
27132713 LOGF (info, " Automatic configuration of process switches requested! Autodetected settings: isRun3? %i, isMC? %i, withPID? %i (switch #%i)" , hasRunInfo, hasDataTypeInfo, isRun3, isMC, withPID, relevantProcess);
2714- for (size_t idx = 0 ; idx < 8 ; idx ++){
2714+ for (size_t idx = 0 ; idx < 8 ; idx++) {
27152715 auto option = strangenessBuilderTask.options [idxSwitches[idx]];
27162716 option.defaultValue = false ; // switch all off
27172717 }
0 commit comments