]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenHalo.h
Coding Rule violations corrected.
[u/mrichter/AliRoot.git] / EVGEN / AliGenHalo.h
index 05632c9b81138d72492b7cf4e5c4087c8422ff19..4b9a3a056f225b3aece8b73017f8f04f4fdde754 100644 (file)
@@ -7,24 +7,29 @@
 
 
 #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