Skip to content

Commit a942332

Browse files
committed
performance-unnecessary-value-param
1 parent 953cdc1 commit a942332

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

PWGDQ/TableProducer/tableMakerMC_withAssoc.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ struct TableMakerMC {
15041504
} // end loop over labels
15051505
}
15061506

1507-
void DefineHistograms(TString histClasses)
1507+
void DefineHistograms(const TString& histClasses)
15081508
{
15091509
std::unique_ptr<TObjArray> objArray(histClasses.Tokenize(";"));
15101510
for (Int_t iclass = 0; iclass < objArray->GetEntries(); ++iclass) {

PWGDQ/TableProducer/tableMaker_withAssoc.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ struct TableMaker {
604604
VarManager::SetUseVars(AnalysisCut::fgUsedVars); // provide the list of required variables so that VarManager knows what to fill
605605
}
606606

607-
void DefineHistograms(TString histClasses)
607+
void DefineHistograms(const TString& histClasses)
608608
{
609609
// Create histograms via HistogramManager
610610
std::unique_ptr<TObjArray> objArray(histClasses.Tokenize(";"));
@@ -2075,7 +2075,7 @@ struct TableMaker {
20752075
PROCESS_SWITCH(TableMaker, processOnlyBCs, "Analyze the BCs to store sampled lumi", false);
20762076
};
20772077

2078-
void DefineHistograms(HistogramManager* histMan, TString histClasses, Configurable<std::string> configVar)
2078+
void DefineHistograms(HistogramManager* histMan, const TString& histClasses, const Configurable<std::string>& configVar)
20792079
{
20802080
//
20812081
// Define here the histograms for all the classes required in analysis.

0 commit comments

Comments
 (0)