97 Fatal(
"TPythia8",
"There's already an instance of TPythia8");
112 fNumberOfParticles(0)
115 Fatal(
"TPythia8",
"There's already an instance of TPythia8");
154 fPythia->settings.mode(
"Beams:frameType", 1);
172 fPythia->settings.mode(
"Beams:frameType", 2);
203 if (
fPythia->event[0].id() == 90) {
209 if (
fPythia->event[i].id() == 90)
continue;
210 if (
fPythia->event[i].isFinal()) {
231 if (
fPythia->event[i].id() == 90)
continue;
262 if (
fPythia->event[0].id() == 90) {
294 return (
fPythia->event.size() - 1);
326 fPythia->settings.listChanged();
334 fPythia->particleData.list(
id);
342 fPythia->particleData.listAll();
350 fPythia->particleData.listChanged();
375 pdgDB->AddParticle(
"string",
"string", 0,
kTRUE,
376 0, 0,
"QCD string", 90);
377 pdgDB->AddParticle(
"rho_diff0",
"rho_diff0", 0,
kTRUE,
378 0, 0,
"QCD diffr. state", 9900110);
379 pdgDB->AddParticle(
"pi_diffr+",
"pi_diffr+", 0,
kTRUE,
380 0, 1,
"QCD diffr. state", 9900210);
381 pdgDB->AddParticle(
"omega_di",
"omega_di", 0,
kTRUE,
382 0, 0,
"QCD diffr. state", 9900220);
383 pdgDB->AddParticle(
"phi_diff",
"phi_diff", 0,
kTRUE,
384 0, 0,
"QCD diffr. state", 9900330);
385 pdgDB->AddParticle(
"J/psi_di",
"J/psi_di", 0,
kTRUE,
386 0, 0,
"QCD diffr. state", 9900440);
387 pdgDB->AddParticle(
"n_diffr0",
"n_diffr0",0,
kTRUE,
388 0, 0,
"QCD diffr. state", 9902110);
389 pdgDB->AddParticle(
"p_diffr+",
"p_diffr+", 0,
kTRUE,
390 0, 1,
"QCD diffr. state", 9902210);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
An array of clone (identical) objects.
Particle database manager class.
static TDatabasePDG * Instance()
static function
The interface to various event generators.
TObjArray * fParticles
display neutrons if true
void Clear(Option_t *option="") override
Remove all objects from the array.
void Delete(Option_t *option="") override
Remove all objects from the array AND delete all heap based objects.
friend class TClonesArray
virtual void Fatal(const char *method, const char *msgfmt,...) const
Issue fatal error message.
Description of the dynamic properties of a particle.
TPythia8 is an interface class to C++ version of Pythia 8.1 event generators, written by T....
void Plist(Int_t id) const
Event listing.
void PlistChanged() const
Event listing.
Int_t ImportParticles(TClonesArray *particles, Option_t *option="") override
Import particles from Pythia stack.
void ListAll() const
Event listing.
void ReadString(const char *string) const
Configuration.
Bool_t Initialize(Int_t idAin, Int_t idBin, Double_t ecms)
Initialization.
void EventListing() const
Event listing.
void GenerateEvent() override
Generate the next event.
void ListChanged() const
Event listing.
Int_t fNumberOfParticles
The pythia8 instance.
void PrintStatistics() const
Print end of run statistics.
Int_t GetN() const
Initialization.
void PlistAll() const
Event listing.
static TPythia8 * Instance()
Return an instance of TPythia8.
TPythia8(bool printBanner=true)
Number of particles.
static TPythia8 * fgInstance
void ReadConfigFile(const char *string) const
Configuration.
void AddParticlesToPdgDataBase()
Add some pythia specific particle code to the data base.
Pythia8::Pythia * fPythia
singleton instance
~TPythia8() override
Destructor.