Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 20 additions & 19 deletions PWGDQ/Core/MCSignal.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,25 +331,26 @@ bool MCSignal::CheckProng(int i, bool checkSources, const T& track)
break;
}
}
} /*else { // check generation in time
if (!currentMCParticle.has_daughters()) {
return false;
}
const auto& daughtersSlice = currentMCParticle.template daughters_as<P>();
for (auto& d : daughtersSlice) {
if (!fProngs[i].fExcludePDGInHistory[k] && fProngs[i].ComparePDG(d.pdgCode(), fProngs[i].fPDGInHistory[k], true, fProngs[i].fExcludePDGInHistory[k])) {
pdgInHistory.emplace_back(d.pdgCode());
break;
}
if (fProngs[i].fExcludePDGInHistory[k] && !fProngs[i].ComparePDG(d.pdgCode(), fProngs[i].fPDGInHistory[k], true, fProngs[i].fExcludePDGInHistory[k])) {
return false;
}
ith++;
if (ith > 10) { // need error message. Given pdg code was not found within 10 generations of the particles decay chain.
break;
}
}
}*/
}
// else { // check generation in time
// if (!currentMCParticle.has_daughters()) {
// return false;
// }
// const auto& daughtersSlice = currentMCParticle.template daughters_as<P>();
// for (auto& d : daughtersSlice) {
// if (!fProngs[i].fExcludePDGInHistory[k] && fProngs[i].ComparePDG(d.pdgCode(), fProngs[i].fPDGInHistory[k], true, fProngs[i].fExcludePDGInHistory[k])) {
// pdgInHistory.emplace_back(d.pdgCode());
// break;
// }
// if (fProngs[i].fExcludePDGInHistory[k] && !fProngs[i].ComparePDG(d.pdgCode(), fProngs[i].fPDGInHistory[k], true, fProngs[i].fExcludePDGInHistory[k])) {
// return false;
// }
// ith++;
// if (ith > 10) { // need error message. Given pdg code was not found within 10 generations of the particles decay chain.
// break;
// }
// }
// }
}
if (pdgInHistory.size() != nIncludedPDG) { // vector has as many entries as mothers (daughters) defined for prong
return false;
Expand Down
2 changes: 1 addition & 1 deletion PWGDQ/Macros/fit_library/CB2Pdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class CB2Pdf : public RooAbsPdf
{
public:
CB2Pdf(){};
CB2Pdf() {}
CB2Pdf(const char* name, const char* title,
RooAbsReal& _x,
RooAbsReal& _A,
Expand Down
2 changes: 1 addition & 1 deletion PWGDQ/Macros/fit_library/ExpPdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class ExpPdf : public RooAbsPdf
{
public:
ExpPdf(){};
ExpPdf() {}
ExpPdf(const char* name, const char* title,
RooAbsReal& _x,
RooAbsReal& _A,
Expand Down
2 changes: 1 addition & 1 deletion PWGDQ/Macros/fit_library/GausPdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class GausPdf : public RooAbsPdf
{
public:
GausPdf(){};
GausPdf() {}
GausPdf(const char* name, const char* title,
RooAbsReal& _x,
RooAbsReal& _A,
Expand Down
2 changes: 1 addition & 1 deletion PWGDQ/Macros/fit_library/Pol4ExpPdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ TString nameParameters[] = {"p0", "p1", "p2", "p3", "p4", "p5", "N_bkg", "N_sig"
class Pol4ExpPdf : public RooAbsPdf
{
public:
Pol4ExpPdf(){};
Pol4ExpPdf() {}
Pol4ExpPdf(const char* name, const char* title,
RooAbsReal& _x,
RooAbsReal& _P0,
Expand Down
2 changes: 1 addition & 1 deletion PWGDQ/Macros/fit_library/VWGPdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class VWGPdf : public RooAbsPdf
{
public:
VWGPdf(){};
VWGPdf() {}
VWGPdf(const char* name, const char* title,
RooAbsReal& _x,
RooAbsReal& _A,
Expand Down
Loading