X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EVGEN%2FAliGenHalo.cxx;h=8fb4b372aa9cada1233382067c3f82def2d9a6b7;hb=519030b8050049dec33aa267e9f0e42aee237796;hp=352ce7819ebcc0283c0b427d50d5f353e76694f7;hpb=642f15cfce9ebda2ff71a55c5edb8d9bc0c729c4;p=u%2Fmrichter%2FAliRoot.git diff --git a/EVGEN/AliGenHalo.cxx b/EVGEN/AliGenHalo.cxx index 352ce7819eb..8fb4b372aa9 100644 --- a/EVGEN/AliGenHalo.cxx +++ b/EVGEN/AliGenHalo.cxx @@ -29,9 +29,12 @@ #include "AliGenHalo.h" #include "AliRun.h" - ClassImp(AliGenHalo) - AliGenHalo::AliGenHalo() - :AliGenerator(-1) +ClassImp(AliGenHalo) + +AliGenHalo::AliGenHalo() + :AliGenerator(-1), + fp(0), + fFileName(0) { // Constructor fName="Halo"; @@ -39,11 +42,12 @@ // // Read all particles fNpart=-1; - fp=0; } AliGenHalo::AliGenHalo(Int_t npart) - :AliGenerator(npart) + :AliGenerator(npart), + fp(0), + fFileName(0) { // Constructor fName="Halo"; @@ -51,15 +55,8 @@ AliGenHalo::AliGenHalo(Int_t npart) // // Read all particles fNpart=-1; - fp=0; } -AliGenHalo::AliGenHalo(const AliGenHalo & Halo) -{ -// copy constructor -} - - //____________________________________________________________ AliGenHalo::~AliGenHalo() { @@ -76,7 +73,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 { @@ -132,13 +129,6 @@ void AliGenHalo::Generate() } -AliGenHalo& AliGenHalo::operator=(const AliGenHalo& rhs) -{ -// Assignment operator - return *this; -} - -