]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenHalo.cxx
track matching macros from Alberto
[u/mrichter/AliRoot.git] / EVGEN / AliGenHalo.cxx
index 9a900856df4aac78bdd32bbda50646570896a470..f69483c565866b4bdd0f094dba45dd0a72f594b8 100644 (file)
@@ -32,7 +32,9 @@
 ClassImp(AliGenHalo)
 
 AliGenHalo::AliGenHalo()
-    :AliGenerator(-1)
+    :AliGenerator(-1),
+     fp(0),
+     fFileName(0)
 {
 // Constructor
     fName="Halo";
@@ -40,11 +42,12 @@ AliGenHalo::AliGenHalo()
 //
 //  Read all particles
     fNpart=-1;
-    fp=0;
 }
 
 AliGenHalo::AliGenHalo(Int_t npart)
-    :AliGenerator(npart)
+    :AliGenerator(npart),
+     fp(0),
+     fFileName(0)
 {
 // Constructor
     fName="Halo";
@@ -52,11 +55,12 @@ AliGenHalo::AliGenHalo(Int_t npart)
 //
 //  Read all particles
     fNpart=-1;
-    fp=0;
 }
 
 AliGenHalo::AliGenHalo(const AliGenHalo & Halo)
-    :AliGenerator(Halo)
+    :AliGenerator(Halo),
+     fp(0),
+     fFileName(0)
 {
 // Copy constructor
     Halo.Copy(*this);
@@ -79,7 +83,7 @@ void AliGenHalo::Init()
 void AliGenHalo::Generate()
 {
 // Generate from input file
-    FILE *fp = fopen(fFileName,"r");
+    fp = fopen(fFileName,"r");
     if (fp) {
        printf("\n File %s opened for reading ! \n ", (char*) &fFileName);
     } else {
@@ -143,7 +147,7 @@ AliGenHalo& AliGenHalo::operator=(const  AliGenHalo& rhs)
 }
 
 
-void AliGenHalo::Copy(AliGenHalo&) const
+void AliGenHalo::Copy(TObject&) const
 {
     //
     // Copy