35 "Environment variable PYTHIA8 must contain path to pythia directory!");
46 "Environment variable PYTHIA8DATA must contain path to $PYTHIA8/xmldoc directory !");
51 #ifndef G__WIN32 // Pythia8 is a static library on Windows 61 TH1F* etaH =
new TH1F(
"etaH",
"Pseudorapidity", 120, -12., 12.);
62 TH1F* ptH =
new TH1F(
"ptH",
"pt", 50, 0., 10.);
79 for (
Int_t iev = 0; iev < nev; iev++) {
85 for (
Int_t ip = 0; ip < np; ip++) {
89 if (ist <= 0)
continue;
92 if (charge == 0.)
continue;
97 if (pt > 0.) ptH->
Fill(pt, 1./(2. * pt));
116 ptH->
SetYTitle(
"dN/dp_{t}^{2} [GeV/c]^{-2}");
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual void Scale(Double_t c1=1, Option_t *option="")
Multiply this histogram by a constant c1.
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual Int_t ImportParticles(TClonesArray *particles, Option_t *option="")
Import particles from Pythia stack.
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
Description of the dynamic properties of a particle.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
Bool_t Initialize(Int_t idAin, Int_t idBin, Double_t ecms)
Initialization.
void PrintStatistics() const
Print end of run statistics.
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.
tomato 1-D histogram with a float per channel (see TH1 documentation)}
virtual void SetYTitle(const char *title)
TObject * At(Int_t idx) const
Int_t GetStatusCode() const
static TDatabasePDG * Instance()
static function
virtual const char * Getenv(const char *env)
Get environment variable.
void Error(const char *location, const char *msgfmt,...)
virtual void Setenv(const char *name, const char *value)
Set environment variable.
R__EXTERN TSystem * gSystem
virtual void Draw(Option_t *option="")
Draw this histogram with options.
Int_t GetEntriesFast() const
void EventListing() const
Event listing.
void ReadString(const char *string) const
Configuration.
TPythia8 is an interface class to C++ version of Pythia 8.1 event generators, written by T...
TParticlePDG * GetParticle(Int_t pdgCode) const
Get a pointer to the particle object according to the MC code number.
An array of clone (identical) objects.
virtual void SetXTitle(const char *title)
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
virtual void GenerateEvent()
Generate the next event.
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.