void evegen_000_pythia8(
Int_t nev = 100,
Int_t ndeb = 1)
{
TH1F* etaH =
new TH1F(
"etaH",
"Pseudorapidity", 120, -12., 12.);
TH1F* ptH =
new TH1F(
"ptH",
"pt", 50, 0., 10.);
#if PYTHIA_VERSION_INTEGER == 8235
printf("ABORTING PYTHIA8 TUTORIAL!\n");
printf("The version of Pythia you use is known to case crashes due to memory errors.\n");
printf("They have been reported to the authors; the Pythia versions 8.1... are known to work.\n");
return;
#endif
for (
Int_t iev = 0; iev < nev; iev++) {
for (
Int_t ip = 0; ip < np; ip++) {
if (ist <= 0) continue;
if (charge == 0.) continue;
}
}
ptH->
SetYTitle(
"dN/dp_{t}^{2} [GeV/c]^{-2}");
}
int Int_t
Signed integer 4 bytes (int).
float Float_t
Float 4 bytes (float).
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.
void Draw(Option_t *option="") override
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 override
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....
Int_t ImportParticles(TClonesArray *particles, Option_t *option="") override
Import particles from Pythia stack.
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 PrintStatistics() const
Print end of run statistics.