Skip to content

Commit

Permalink
Adding number of JPsi per event as parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jackal1-66 authored and sawenzel committed Jan 20, 2025
1 parent 0806612 commit 52f7c9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MC/config/PWGDQ/external/generator/GeneratorPromptCharmonia.C
Original file line number Diff line number Diff line change
Expand Up @@ -739,11 +739,11 @@ FairGenerator*
return genCocktailEvtGen;
}

FairGenerator*
GeneratorParamPromptJpsiToElectronEvtGen_pp13TeV(TString pdgs = "443")
FairGenerator *
GeneratorParamPromptJpsiToElectronEvtGen_pp13TeV(TString pdgs = "443", int nSignalPerEvent = 1)
{
auto gen = new o2::eventgen::GeneratorEvtGen<o2::eventgen::O2_GeneratorParamJpsiMidY>();
gen->SetNSignalPerEvent(1); // number of jpsis per event
gen->SetNSignalPerEvent(nSignalPerEvent); // number of jpsis per event

std::string spdg;
TObjArray* obj = pdgs.Tokenize(";");
Expand Down

0 comments on commit 52f7c9a

Please sign in to comment.