34 TH1F* etaH =
new TH1F(
"etaH",
"Pseudorapidity", 120, -12., 12.);
35 TH1F* ptH =
new TH1F(
"ptH",
"pt", 50, 0., 10.);
43#if PYTHIA_VERSION_INTEGER == 8235
45 printf(
"ABORTING PYTHIA8 TUTORIAL!\n");
46 printf(
"The version of Pythia you use is known to case crashes due to memory errors.\n");
47 printf(
"They have been reported to the authors; the Pythia versions 8.1... are known to work.\n");
63 for (
Int_t iev = 0; iev < nev; iev++) {
69 for (
Int_t ip = 0; ip < np; ip++) {
73 if (ist <= 0)
continue;
76 if (charge == 0.)
continue;
100 ptH->
SetYTitle(
"dN/dp_{t}^{2} [GeV/c]^{-2}");
R__EXTERN TSystem * gSystem
An array of clone (identical) objects.
static TDatabasePDG * Instance()
static function
TParticlePDG * GetParticle(Int_t pdgCode) const
Get a pointer to the particle object according to the MC code number.
1-D histogram with a float per channel (see TH1 documentation)}
virtual void SetXTitle(const char *title)
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetYTitle(const char *title)
virtual void Scale(Double_t c1=1, Option_t *option="")
Multiply this histogram by a constant c1.
Int_t GetEntriesFast() const
TObject * At(Int_t idx) const
Description of the dynamic properties of a particle.
Int_t GetStatusCode() const
TPythia8 is an interface class to C++ version of Pythia 8.1 event generators, written by T....
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 PrintStatistics() const
Print end of run statistics.
virtual void GenerateEvent()
Generate the next event.
virtual Int_t ImportParticles(TClonesArray *particles, Option_t *option="")
Import particles from Pythia stack.
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.