@@ -219,6 +219,7 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to
219219 // *) misc
220220 Configurable<double > sigmaInel{" sigmaInel" , 7.71 , " inelastic cross section in mb" };
221221 Configurable<bool > qualityAssuranceSwitch{" qualityAssuranceSwitch" , false , " quality assurance switch" };
222+ Configurable<bool > runMessageSwitch{" runMessageSwitch" , false , " run message switch" };
222223
223224 // *) Define and initialize all data members to be called in the main process* functions:
224225 // **) Task configuration:
@@ -811,7 +812,9 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to
811812 return ;
812813 }
813814 const int thisRunNumber = collision.bc ().runNumber ();
814- LOGF (info, " Successfully running, run number is %d" , thisRunNumber);
815+ if (runMessageSwitch) {
816+ LOGF (info, " Successfully running, run number is %d" , thisRunNumber);
817+ }
815818
816819 if (isFirstCollision) {
817820 // Get run number
@@ -859,10 +862,10 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to
859862
860863 // eWeightsHistograms_N
861864 if (cfExternalFileSwitch) {
862- for (int i = 0 ; i < eWeightsHistograms_N; ++i ) {
865+ for (int k = 0 ; k < eWeightsHistograms_N; ++k ) {
863866 for (int j = 0 ; j < eCuts_N; ++j) {
864- if (ex.fWeights [i ][j]) {
865- thisWeights[i ][j] = ex.fWeights [i ][j]->GetBinContent (ex.fWeights [i ][j]->FindBin (thisPhiAndPt[i ]));
867+ if (ex.fWeights [k ][j]) {
868+ thisWeights[k ][j] = ex.fWeights [k ][j]->GetBinContent (ex.fWeights [k ][j]->FindBin (thisPhiAndPt[k ]));
866869 }
867870 }
868871 }
0 commit comments