GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Fast Simulations » [OK] J/psi->ee and J/psi->mumu
[OK] J/psi->ee and J/psi->mumu [message #16297] Mon, 14 April 2014 10:40 Go to next message
Elisa Fioravanti is currently offline  Elisa Fioravanti
Messages: 84
Registered: January 2008
continuous participant
From: *fe.infn.it
Dear all,

I would like to ask you if there is a way to reconstruct the J/psi in both
the electronic and muonic decay modes.
I set both the decay modes into my decay file and then in my macro I do:
jpsiee.Combine(eminus,eplus);
jpsimm.SetType(443);
for(j=0;j<jpsiee.GetLength();++j){
invmassee->Fill(jpsiee[j]->M());
}

jpsimm.Combine(muminus,muplus);
jpsimm.SetType(443);
for(j=0;j<jpsimm.GetLength();++j){
invmassmm->Fill(jpsimm[j]->M());
}
Now, is there the possibility to have a single RhoCandList where the J/psi
is formed by both jpsiee and jpsimmm?
I would like to have a single RhoCandList
there the J/psi is formed by both the electronic and muonic decay modes.

Thanks in advance,
Elisa

[Updated on: Fri, 12 September 2014 10:37] by Moderator

Report message to a moderator

Re: J/psi->ee and J/psi->mumu [message #16298 is a reply to message #16297] Mon, 14 April 2014 11:53 Go to previous messageGo to next message
Klaus Götzen is currently offline  Klaus Götzen
Messages: 293
Registered: June 2006
Location: GSI
first-grade participant
From: *adsl.alicedsl.de
Hi Elisa,


yes, you can use the RhoCandList::CombineAndAppend() method like

RhoCandList jpsi, ep, em, mup, mum;
...
jpsi.Combine(ep,em);
jpsi.CombineAndAppend(mup,mum);
jpsi.SetType(443);

or the Append method

RhoCandList jpsi, jpsi2, ep, em, mup, mum;
...
jpsi.Combine(ep,em);
jpsi2.Combine(mup,mum);
jpsi.Append(jpsi2);
jpsi.SetType(443);


Best,
Klaus
Re: J/psi->ee and J/psi->mumu [message #16299 is a reply to message #16298] Mon, 14 April 2014 12:34 Go to previous messageGo to next message
Elisa Fioravanti is currently offline  Elisa Fioravanti
Messages: 84
Registered: January 2008
continuous participant
From: *fe.infn.it
Thank you very much Klaus! Smile
Elisa
Re: J/psi->ee and J/psi->mumu [message #16300 is a reply to message #16299] Mon, 14 April 2014 13:37 Go to previous messageGo to next message
MartinJGaluska is currently offline  MartinJGaluska
Messages: 203
Registered: March 2010
Location: Germany
first-grade participant
From: *physik.uni-giessen.de
Hi Elisa,

I noticed a typo in the code you posted:

jpsiee.Combine(eminus,eplus);
jpsimm.SetType(443);


should be

jpsiee.Combine(eminus,eplus);
jpsiee.SetType(443);


(I have just realized that with Ralf's modification the typo should not have any effect anymore.)

[Updated on: Mon, 14 April 2014 13:39]

Report message to a moderator

Re: J/psi->ee and J/psi->mumu [message #16301 is a reply to message #16297] Mon, 14 April 2014 13:39 Go to previous message
Elisa Fioravanti is currently offline  Elisa Fioravanti
Messages: 84
Registered: January 2008
continuous participant
From: *fe.infn.it
Hi Martin,

I have already corrected it.

Thanks
Elisa
Previous Topic: [FIXED] Covariances in FastSim
Next Topic: Fast vs Full comparison
Goto Forum:
  


Current Time: Tue Apr 16 23:20:50 CEST 2024

Total time taken to generate the page: 0.00904 seconds