virtual TObjArray* ImportParticles(const Option_t* option="prim");
// this function makes available the PDG info in our database
virtual DatabasePDG* PDGInfo() const {return fInitialState->PDGInfo();}
-
+ virtual void GetCentrality(Double_t& b, Double_t & npart, Double_t & nbin)
+ {fInitialState->GetCentrality(b, npart, nbin);}
// Setters
// set reasonable default parameters suited for central Au+Au collisions at RHIC(200GeV)
void SetAllParametersRHIC();
// gluons (0: small-angular, 1: wide-angular, 2:collinear) (default: 0).
- void SetPDGParticleFile(const Char_t *name) {strcpy(fParticleFilename, name);} // Set the filename containing the particle PDG info
- void SetPDGDecayFile(const Char_t *name) {strcpy(fDecayFilename, name);} // Set the filename containing the PDG decay channels info
+ void SetPDGParticleFile(const Char_t *name) {strncpy(fParticleFilename, name, 255);} // Set the filename containing the particle PDG info
+ void SetPDGDecayFile(const Char_t *name) {strncpy(fDecayFilename, name, 255);} // Set the filename containing the PDG decay channels info
void SetPDGParticleStable(Int_t pdg, Bool_t value) { // Turn on/off the decay flag for a PDG particle
fStableFlagPDG[fStableFlagged] = pdg;
fStableFlagStatus[fStableFlagged++] = value;