hi ,
can anyone help me with this problem,
To develop an algorithm to generate a D0 meson of mass 1864.84±0.17 MeV assuming an exponential pT distribution and flat pseudo-rapidity distribution between -1 to 1. Allow the particle to decay to pi+ pi-. Generate 10^7 events, with each event containing D0 distributed with poison distribution of mean 4.
to make it simple: generate random events with 4D^o on an avg decaying into pi+pi- following poison distribution .
I’ve uploaded my code ,it doesn’t work properly.
Hi
The code seems not doing what you describe.
You need for each event generate a Poisson number with mean 4, using gRandom->Poisson(4), loop on this number and generate a D0 vector using:
pT from an exponential distribution : pt = gRandom->Exp(mean). What is the mean value ?
You will have to deal with the charge separately. TGenPhaseSpace is only kinematics and it does not deal with charges of mother and daughter particles.
(a) can we find Experimental mass resolution with this?
(b) If the momentum resolution of electrons is 3%, find out the invariant mass distribution of D0?
Hi,
Sorry for my late answer. Your question is not clear and I don’t see the relation with TGenPhaseSpace. This seems to me not a ROOT question but a physics analysis question that you should ask your supervisor or your colleagues.