-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify parameterized single mu generator #1898
base: master
Are you sure you want to change the base?
Conversation
REQUEST FOR PRODUCTION RELEASES:
This will add The following labels are available |
Hi @nburmaso , I comment here as I am not sure you will see the comments otherwise. I am note sure the part related to the pdg is still correct. As you generate two muons per event that could be either positive or negative. I think you should pass a string like this: TString pdgs = "13;-13"; : (see example https://github.com/AliceO2Group/O2DPG/blob/247bd31c3444a1b4e375b314a7763d133e1a58ac/MC/config/PWGDQ/external/generator/GeneratorCocktailPromptCharmoniaToMuonEvtGen_pp13TeV.C) |
Hi @lmassacr, From what I understand by looking at the GeneratorEvtGen.C code, in particular L109, this string of PDG codes is only used for filtering. The filtering is done by comparison of absolute value (L250). We don't need to perform decays, so I will also remove dependence on |
Hi @nburmaso, |
Hi @lmassacr, |
I actually found an error in my local tests causing a segfault. In GeneratorParam.cxx, L251, particle mass is set from random distribution depending on width. For muons for some reason TDatabasePDG returns
which leads to |
Hi @lmassacr, I have done some reworking on the generator, so it does not depend on GeneratorParam anymore. I have also added possibility to generate muons with a given charge via Cheers, |
Hi @nburmaso,
|
Hi @lmassacr,
In the MC particles table, phi calculated as dynamic column from px and py so there should be no issues with it. (Also judging by other generators, e.g. GeneratorBoxFwd.C). Edit: just checked AnalysisDataModel.h -- for MC particles, phi is in [0, 2PI].
In this case we deal with tracks coming from the primary vertex. At least in my understanding, |
Hi @nburmaso, Thanks for checking. I guess for the phi the variable is then transformed later on, when filling the AO2Ds. It would be interesting to check the reconstructed muon phi distribution. I see indeed that what you have done is what is done in other DQ generators so far. For the vertex, thanks for checking, I assume the track will be indeed smeared at extrapolation as I assume the reco code will take the reconstructed ITS vertex. So there should be a smearing of the track according to the vertex resolution. Cheers, ps: I am not in the list of DQ reviewers, so I think you should ping Ionut or Luca to review and approve. |
Hi @iarsene, @lucamicheletti93, |
Hi @lmassacr,
In this PR are the changes you have suggested.
Cheers,
Nazar