]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Type of fFileName changed to TString, fp has been !-ed.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Jun 2000 12:19:07 +0000 (12:19 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Jun 2000 12:19:07 +0000 (12:19 +0000)
EVGEN/AliGenHalo.cxx
EVGEN/AliGenHalo.h

index 44eba2023aa0672a8359de5da3cfd6b66b75465d..9960ced03bc0b7a562344dfe26a7ad5b220096aa 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.6  2000/06/09 20:36:01  morsch
+All coding rule violations except RS3 corrected
+
 Revision 1.5  1999/11/03 17:43:20  fca
 New version from G.Martinez & A.Morsch
 
@@ -38,7 +41,7 @@ Introduction of the Copyright and cvs Log
     fName="Halo";
     fTitle="Halo from LHC Tunnel";
     // Set the default file 
-    fFileName="~/marsip/marsip5.mu";
+    fFileName=TString("~/marsip/marsip5.mu");
 //
 //  Read all particles
     fNpart=-1;
@@ -52,7 +55,7 @@ AliGenHalo::AliGenHalo(Int_t npart)
     fName="Halo";
     fTitle="Halo from LHC Tunnel";
     // Set the default file 
-    fFileName="~/marsip/marsip5.mu";
+    fFileName=TString("~/marsip/marsip5.mu");
 //
 //  Read all particles
     fNpart=-1;
@@ -83,9 +86,9 @@ void AliGenHalo::Generate()
 // Generate from input file
     FILE *fp = fopen(fFileName,"r");
     if (fp) {
-       printf("\n File %s opened for reading ! \n ", fFileName);
+       printf("\n File %s opened for reading ! \n ", (char*) &fFileName);
     } else {
-       printf("\n Opening of file %s failed ! \n ", fFileName);
+       printf("\n Opening of file %s failed ! \n ",  (char*) &fFileName);
     }
 //
 // MARS particle codes
index abd376fceedfec7f96af49c64dcd492ec86d2b8c..1811dfdb2b0bd8b1e920e66aafb18d8e82756151 100644 (file)
@@ -7,7 +7,7 @@
 
 
 #include "AliGenerator.h"
-
+#include <TString.h>
 // Read background particles from a FLUKA boundary source file
 
 class AliGenHalo : public AliGenerator
@@ -18,12 +18,12 @@ public:
     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
+  FILE *fp;                             // ! Pointer to file
+  TString  fFileName;                   //   Choose the file
   ClassDef(AliGenHalo,1) // LHC background boundary source (MARS input)
 };
 #endif