Re: [ROOT] TPythia6 and Draw() method

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Feb 06 2003 - 23:16:45 MET


Hi Joao,

Your observation is correct. TPythia6 derives from TGenerator
that implements a Draw function. However, this function calls
the Draw function of the particles. In your example, the particles
generated by TPythia6 are TMCParticles. TMCParticle::Draw
is not implemented (so, you get the default & dummy behaviour
of TObject::Draw). It should not be too difficult to implement a simple
TMCparticle drawing a line or THelix in case of a field.
Any volunteer?

Rene Brun



On Thu, 
6 Feb 
2003, Joćo Batista wrote:

> Hi,
> 
> 
> The TPythia6 class seems to have a Draw() method. I do
> 
> Root> gSystem->Load("$PYTHIA6/libPythia6.so")
> Root> gSystem->Load("libEG.so")
> Root> gSystem->Load("libEGPythia6.so")
> Root> TPythia6 *pythia = new TPythia6()
> Root> pythia->Initialize("cms","p+","p+",14000.0)
> Root> pythia->GenerateEvent()
> Root> pythia->GetNumberOfParticles()
> Root> pythia->Draw()	// here it is!
> 
> So, this shows a canvas that would (supposedly) show the particle tracks.
> It tells me that it has the number of particles reported by
> GetNumberOfParticles(), and also some others listed -- so, I trust it has
> read the event list correctly. But no tracks show up. Am I doing something
> wrong here?
> 
> Thanks in advance,
> -- J. Batista
> 
> 
> =============================================
> "Before I came here I was confused about this
>  subject. Having listened to your lecture, I
>  am still confused. But on a higher level."
>                               -- Enrico Fermi
> ---------------------------------------------
> Joćo Batista [ mailto:joao.batista@desy.de ]
> WWW: http://kdataserv.fis.fc.ul.pt/~jbatista
> =============================================
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET