X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EVGEN%2FAliGenBeamGas.cxx;h=a5eea6cce49390448f5e6f6ef1cfc95d40037dc6;hb=559d0c87ae779c3681ae7486db74297306ad8138;hp=8ce4cebfe979bb2890965756c4eb4924ea2891a5;hpb=88cb7938ca21d4a80991d4e7aa564008c29340f7;p=u%2Fmrichter%2FAliRoot.git diff --git a/EVGEN/AliGenBeamGas.cxx b/EVGEN/AliGenBeamGas.cxx index 8ce4cebfe97..a5eea6cce49 100644 --- a/EVGEN/AliGenBeamGas.cxx +++ b/EVGEN/AliGenBeamGas.cxx @@ -19,20 +19,18 @@ // Generator to simulate beam gas interactions. // At present single interactions are read from an external file. // Several interactions are combined in one event. - +// By default the vertex is smeared between +/- 20 m +// Author: andreas.morsch@cern.ch #include "AliGenBeamGas.h" -#include "AliRun.h" #include -#include -#include - ClassImp(AliGenBeamGas) +ClassImp(AliGenBeamGas) AliGenBeamGas::AliGenBeamGas() - :AliGenExtFile() + :AliGenExtFile() { // Constructor // @@ -42,9 +40,11 @@ AliGenBeamGas::AliGenBeamGas() fOsigma[2] = 2000.; } -AliGenBeamGas::AliGenBeamGas(const AliGenBeamGas & ExtFile) +AliGenBeamGas::AliGenBeamGas(const AliGenBeamGas & beamgas): + AliGenExtFile(beamgas) { -// copy constructor +// Copy constructor + beamgas.Copy(*this); } //____________________________________________________________ @@ -108,7 +108,7 @@ void AliGenBeamGas::Generate() Int_t idpart = iparticle->GetPdgCode(); Int_t decayed = iparticle->GetFirstDaughter(); Int_t doTracking = fTrackIt && (decayed < 0) && (TMath::Abs(idpart) > 10); - SetTrack(doTracking,-1,idpart,p,origin,polar,0,kPPrimary,nt); + PushTrack(doTracking,-1,idpart,p,origin,polar,0,kPPrimary,nt); KeepTrack(nt); } // track loop nInt++; @@ -120,13 +120,14 @@ void AliGenBeamGas::Generate() } -//AliGenBeamGas& AliGenBeamGas::operator=(const AliGenBeamGas& rhs) -//{ -// Assignment operator -// return *this; -//} - +void AliGenBeamGas::Copy(TObject&) const +{ + // + // Copy + // + Fatal("Copy","Not implemented!\n"); +}