[OK] J/psi->ee and J/psi->mumu [message #16297] |
Mon, 14 April 2014 10:40 |
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 |
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 #16300 is a reply to message #16299] |
Mon, 14 April 2014 13:37 |
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
|
|
|
|