#ifndef ALIGENUHKM_H
#define ALIGENUHKM_H
+#include <string>
+
+//#include <TString.h>
+//#include <TParticle.h>
+
#include "AliGenMC.h"
-#include <TString.h>
#include "TUHKMgen.h"
-#ifndef INITIALSTATEHYDJET_INCLUDED
+#ifndef INITIALSTATEHYDJET_H
#include "InitialStateHydjet.h"
#endif
-#include "TParticle.h"
-#include <string>
using namespace std;
-//class TUHKMgen;
-//class TParticle;
-//class InitialStateHydjet;
class AliGenUHKM : public AliGenMC
{
- protected:
- Int_t fTrials; // Number of trials
- TUHKMgen *fUHKMgen; // UHKM
-
- InitialParamsHydjet_t fHydjetParams; // list of parameters for the initial state
- // details for the PDG database
- Char_t fParticleFilename[256]; // particle list filename
- Char_t fDecayFilename[256]; // decay table filename
- Int_t fStableFlagPDG[500]; // array of PDG codes flagged
- Bool_t fStableFlagStatus[500]; // array of decay flag status
- Int_t fStableFlagged; // number of toggled decay flags
-
- void SetAllParameters();
- void CheckPDGTable();
-
- private:
- void Copy(TObject &rhs) const;
- AliGenUHKM(const AliGenUHKM&);
- AliGenUHKM & operator = (const AliGenUHKM &);
-
+
public:
AliGenUHKM();
AliGenUHKM(Int_t npart);
//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;
const Char_t* GetPDGParticleFile() const {return fParticleFilename;}
const Char_t* GetPDGDecayFile() const {return fDecayFilename;}
+ protected:
+ Int_t fTrials; // Number of trials
+ TUHKMgen *fUHKMgen; // UHKM
+
+ InitialParamsHydjet_t fHydjetParams; // list of parameters for the initial state
+ // details for the PDG database
+ Char_t fParticleFilename[256]; // particle list filename
+ Char_t fDecayFilename[256]; // decay table filename
+ Int_t fStableFlagPDG[500]; // array of PDG codes flagged
+ Bool_t fStableFlagStatus[500]; // array of decay flag status
+ Int_t fStableFlagged; // number of toggled decay flags
+
+ void SetAllParameters();
+ void CheckPDGTable();
+
+ private:
+ void Copy(TObject &rhs) const;
+ AliGenUHKM(const AliGenUHKM&);
+ AliGenUHKM & operator = (const AliGenUHKM &);
+
ClassDef(AliGenUHKM, 6) // AliGenerator interface to UHKM
};
#endif