Skip to content
Snippets Groups Projects
Commit 68c04e80 authored by Axel Naumann's avatar Axel Naumann
Browse files

[pythia8] Allow hiding of banner (ROOT-10230).

parent 183fc338
No related branches found
No related tags found
No related merge requests found
...@@ -82,8 +82,8 @@ protected: ...@@ -82,8 +82,8 @@ protected:
Pythia8::Pythia *fPythia; //! The pythia8 instance Pythia8::Pythia *fPythia; //! The pythia8 instance
Int_t fNumberOfParticles; //! Number of particles Int_t fNumberOfParticles; //! Number of particles
public: public:
TPythia8(); TPythia8(bool printBanner = true);
TPythia8(const char *xmlDir); TPythia8(const char *xmlDir, bool printBanner = true);
virtual ~TPythia8(); virtual ~TPythia8();
static TPythia8 *Instance(); static TPythia8 *Instance();
Pythia8::Pythia *Pythia8() {return fPythia;} Pythia8::Pythia *Pythia8() {return fPythia;}
......
...@@ -88,7 +88,7 @@ TPythia8* TPythia8::fgInstance = 0; ...@@ -88,7 +88,7 @@ TPythia8* TPythia8::fgInstance = 0;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// Constructor /// Constructor
TPythia8::TPythia8(): TPythia8::TPythia8(bool printBanner /*= true*/):
TGenerator("TPythia8", "TPythia8"), TGenerator("TPythia8", "TPythia8"),
fPythia(0), fPythia(0),
fNumberOfParticles(0) fNumberOfParticles(0)
...@@ -99,13 +99,14 @@ TPythia8::TPythia8(): ...@@ -99,13 +99,14 @@ TPythia8::TPythia8():
delete fParticles; // was allocated as TObjArray in TGenerator delete fParticles; // was allocated as TObjArray in TGenerator
fParticles = new TClonesArray("TParticle",50); fParticles = new TClonesArray("TParticle",50);
fPythia = new Pythia8::Pythia(); // If only we could skip stating the default of the first parameter...:
fPythia = new Pythia8::Pythia("../share/Pythia8/xmldoc", printBanner);
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// Constructor with an xmlDir (eg "../xmldoc" /// Constructor with an xmlDir (eg "../xmldoc"
TPythia8::TPythia8(const char *xmlDir): TPythia8::TPythia8(const char *xmlDir, bool printBanner /*= true*/):
TGenerator("TPythia8", "TPythia8"), TGenerator("TPythia8", "TPythia8"),
fPythia(0), fPythia(0),
fNumberOfParticles(0) fNumberOfParticles(0)
...@@ -116,7 +117,7 @@ TPythia8::TPythia8(const char *xmlDir): ...@@ -116,7 +117,7 @@ TPythia8::TPythia8(const char *xmlDir):
delete fParticles; // was allocated as TObjArray in TGenerator delete fParticles; // was allocated as TObjArray in TGenerator
fParticles = new TClonesArray("TParticle",50); fParticles = new TClonesArray("TParticle",50);
fPythia = new Pythia8::Pythia(xmlDir); fPythia = new Pythia8::Pythia(xmlDir, printBanner);
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment