@@ -500,7 +500,7 @@ struct QaEfficiency {
500500 subList->SetName (partName);
501501 listEfficiencyMC->Add (subList);
502502
503- auto makeEfficiency = [&](const TString effname, auto h) { // 1D efficiencies
503+ auto makeEfficiency = [&](const TString& effname, const auto & h) { // 1D efficiencies
504504 LOG (debug) << " Making 1D TEfficiency " << effname << " from " << h->GetName ();
505505 const TAxis* axis = h->GetXaxis ();
506506 TString efftitle = h->GetTitle ();
@@ -563,7 +563,7 @@ struct QaEfficiency {
563563 makeEfficiency (" ITS-TPC_vsPhi_Prm_Trk" , hPhiTrkItsTpcPrm[histogramIndex]);
564564 makeEfficiency (" ITS-TPC-TOF_vsPhi_Prm" , hPhiItsTpcTofPrm[histogramIndex]);
565565
566- auto makeEfficiency2D = [&](const TString effname, auto h) { // 2D efficiencies
566+ auto makeEfficiency2D = [&](const TString& effname, const auto & h) { // 2D efficiencies
567567 LOG (debug) << " Making 2D TEfficiency " << effname << " from " << h->GetName ();
568568 const TAxis* axisX = h->GetXaxis ();
569569 const TAxis* axisY = h->GetYaxis ();
@@ -898,7 +898,7 @@ struct QaEfficiency {
898898 listEfficiencyData.setObject (new THashList);
899899 if (makeEff) {
900900 LOG (debug) << " Making TEfficiency for Data" ;
901- auto makeEfficiency = [&](TString effname, TString efftitle, auto templateHisto, TEfficiency*& eff) {
901+ auto makeEfficiency = [&](const TString& effname, const TString& efftitle, auto templateHisto, TEfficiency*& eff) {
902902 TAxis* axis = histos.get <TH1 >(templateHisto)->GetXaxis ();
903903 if (axis->IsVariableBinSize ()) {
904904 eff = new TEfficiency (effname, efftitle, axis->GetNbins (), axis->GetXbins ()->GetArray ());
@@ -927,7 +927,7 @@ struct QaEfficiency {
927927 " TPC-TOF M.E. in data " + tagPhi + " ;#it{#varphi} (rad);Efficiency" , HIST (" Data/pos/phi/its_tpc_tof" ),
928928 effTPCTOFMatchingVsPhi);
929929
930- auto makeEfficiency2D = [&](TString effname, TString efftitle, auto templateHistoX, auto templateHistoY, TEfficiency*& eff) {
930+ auto makeEfficiency2D = [&](const TString& effname, const TString& efftitle, auto templateHistoX, auto templateHistoY, TEfficiency*& eff) {
931931 TAxis* axisX = histos.get <TH1 >(templateHistoX)->GetXaxis ();
932932 TAxis* axisY = histos.get <TH1 >(templateHistoY)->GetYaxis ();
933933 if (axisX->IsVariableBinSize () || axisY->IsVariableBinSize ()) {
@@ -1366,7 +1366,7 @@ struct QaEfficiency {
13661366 }
13671367
13681368 // Filling 1D efficiencies
1369- auto doFillEfficiency = [&](const TString effname, auto num, auto den) {
1369+ auto doFillEfficiency = [&](const TString& effname, const auto & num, const auto & den) {
13701370 TEfficiency* eff = static_cast <TEfficiency*>(subList->FindObject (effname));
13711371 if (!eff) {
13721372 LOG (warning) << " Cannot find TEfficiency " << effname;
@@ -1436,7 +1436,7 @@ struct QaEfficiency {
14361436 }
14371437
14381438 // Filling 2D efficiencies
1439- auto fillEfficiency2D = [&](const TString effname, auto num, auto den) {
1439+ auto fillEfficiency2D = [&](const TString& effname, const auto & num, const auto & den) {
14401440 TEfficiency* eff = static_cast <TEfficiency*>(subList->FindObject (effname));
14411441 if (!eff) {
14421442 LOG (warning) << " Cannot find TEfficiency " << effname;
0 commit comments