#include "AliGenerator.h"
+#include <TString.h>
-// Read background particles from a FLUKA boundary source file
+// Read background particles from a boundary source
+// Very specialized generator to simulate background from beam halo.
+// Author: andreas.morsch@cern.ch
class AliGenHalo : public AliGenerator
{
-public:
+ public:
AliGenHalo();
AliGenHalo(Int_t npart);
AliGenHalo(const AliGenHalo &Halo);
virtual ~AliGenHalo();
virtual void Init();
- virtual void SetFileName(const Text_t *filname) {fFileName=filname;}
+ virtual void SetFileName(TString filename) {fFileName=TString(filename);}
virtual void Generate();
AliGenHalo & operator=(const AliGenHalo & rhs);
-protected:
- FILE *fp; // Pointer to file
- const Text_t *fFileName; // Choose the file
- ClassDef(AliGenHalo,1) // LHC background boundary source (MARS input)
+ private:
+ void Copy(AliGenHalo &Halo) const;
+ protected:
+ FILE *fp; // ! Pointer to file
+ TString fFileName; // Choose the file
+ ClassDef(AliGenHalo,1) // LHC background boundary source (MARS input)
};
#endif