Skip to content

Commit ee54091

Browse files
authored
[PWGDQ] Fix cpplint errors (#18098)
1 parent 64150b1 commit ee54091

6 files changed

Lines changed: 25 additions & 24 deletions

File tree

‎PWGDQ/Core/MCSignal.h‎

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -331,25 +331,26 @@ bool MCSignal::CheckProng(int i, bool checkSources, const T& track)
331331
break;
332332
}
333333
}
334-
} /*else { // check generation in time
335-
if (!currentMCParticle.has_daughters()) {
336-
return false;
337-
}
338-
const auto& daughtersSlice = currentMCParticle.template daughters_as<P>();
339-
for (auto& d : daughtersSlice) {
340-
if (!fProngs[i].fExcludePDGInHistory[k] && fProngs[i].ComparePDG(d.pdgCode(), fProngs[i].fPDGInHistory[k], true, fProngs[i].fExcludePDGInHistory[k])) {
341-
pdgInHistory.emplace_back(d.pdgCode());
342-
break;
343-
}
344-
if (fProngs[i].fExcludePDGInHistory[k] && !fProngs[i].ComparePDG(d.pdgCode(), fProngs[i].fPDGInHistory[k], true, fProngs[i].fExcludePDGInHistory[k])) {
345-
return false;
346-
}
347-
ith++;
348-
if (ith > 10) { // need error message. Given pdg code was not found within 10 generations of the particles decay chain.
349-
break;
350-
}
351-
}
352-
}*/
334+
}
335+
// else { // check generation in time
336+
// if (!currentMCParticle.has_daughters()) {
337+
// return false;
338+
// }
339+
// const auto& daughtersSlice = currentMCParticle.template daughters_as<P>();
340+
// for (auto& d : daughtersSlice) {
341+
// if (!fProngs[i].fExcludePDGInHistory[k] && fProngs[i].ComparePDG(d.pdgCode(), fProngs[i].fPDGInHistory[k], true, fProngs[i].fExcludePDGInHistory[k])) {
342+
// pdgInHistory.emplace_back(d.pdgCode());
343+
// break;
344+
// }
345+
// if (fProngs[i].fExcludePDGInHistory[k] && !fProngs[i].ComparePDG(d.pdgCode(), fProngs[i].fPDGInHistory[k], true, fProngs[i].fExcludePDGInHistory[k])) {
346+
// return false;
347+
// }
348+
// ith++;
349+
// if (ith > 10) { // need error message. Given pdg code was not found within 10 generations of the particles decay chain.
350+
// break;
351+
// }
352+
// }
353+
// }
353354
}
354355
if (pdgInHistory.size() != nIncludedPDG) { // vector has as many entries as mothers (daughters) defined for prong
355356
return false;

‎PWGDQ/Macros/fit_library/CB2Pdf.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class CB2Pdf : public RooAbsPdf
2626
{
2727
public:
28-
CB2Pdf(){};
28+
CB2Pdf() {}
2929
CB2Pdf(const char* name, const char* title,
3030
RooAbsReal& _x,
3131
RooAbsReal& _A,

‎PWGDQ/Macros/fit_library/ExpPdf.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class ExpPdf : public RooAbsPdf
2626
{
2727
public:
28-
ExpPdf(){};
28+
ExpPdf() {}
2929
ExpPdf(const char* name, const char* title,
3030
RooAbsReal& _x,
3131
RooAbsReal& _A,

‎PWGDQ/Macros/fit_library/GausPdf.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class GausPdf : public RooAbsPdf
2626
{
2727
public:
28-
GausPdf(){};
28+
GausPdf() {}
2929
GausPdf(const char* name, const char* title,
3030
RooAbsReal& _x,
3131
RooAbsReal& _A,

‎PWGDQ/Macros/fit_library/Pol4ExpPdf.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ TString nameParameters[] = {"p0", "p1", "p2", "p3", "p4", "p5", "N_bkg", "N_sig"
2828
class Pol4ExpPdf : public RooAbsPdf
2929
{
3030
public:
31-
Pol4ExpPdf(){};
31+
Pol4ExpPdf() {}
3232
Pol4ExpPdf(const char* name, const char* title,
3333
RooAbsReal& _x,
3434
RooAbsReal& _P0,

‎PWGDQ/Macros/fit_library/VWGPdf.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class VWGPdf : public RooAbsPdf
2626
{
2727
public:
28-
VWGPdf(){};
28+
VWGPdf() {}
2929
VWGPdf(const char* name, const char* title,
3030
RooAbsReal& _x,
3131
RooAbsReal& _A,

0 commit comments

Comments
 (0)