X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSImpact.cxx;h=af99bc14c5e88dc62af158eccaac0824f61ef4ed;hb=909cb5665089ced36a9d844757e456482aecd005;hp=e8a7d60257bb9d28205844b920fb3f910b8e1314;hpb=702ab87e845509d9379dca12e47c7e8a37eba7f6;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSImpact.cxx b/PHOS/AliPHOSImpact.cxx index e8a7d60257b..af99bc14c5e 100644 --- a/PHOS/AliPHOSImpact.cxx +++ b/PHOS/AliPHOSImpact.cxx @@ -18,6 +18,9 @@ /* History of cvs commits: * * $Log$ + * Revision 1.6 2005/05/28 14:19:04 schutz + * Compilation warnings fixed by T.P. + * */ //_________________________________________________________________________ @@ -43,37 +46,50 @@ ClassImp(AliPHOSImpact) //____________________________________________________________________________ -AliPHOSImpact::AliPHOSImpact(const AliPHOSImpact & hit) - : AliHit(hit) +AliPHOSImpact::AliPHOSImpact() : + fPid(0), + fPrimary(0), + fMomentum() +{ + //Def ctor. +} + +//____________________________________________________________________________ +AliPHOSImpact::AliPHOSImpact(const AliPHOSImpact & hit) : + AliHit(hit), + fPid(hit.fPid), + fPrimary(hit.fPrimary), + fMomentum(hit.fMomentum) { - // copy ctor - + // copy ctor fTrack = hit.fTrack ; - fPrimary = hit.fPrimary ; - fPid = hit.fPid ; - fMomentum= hit.fMomentum ; fX = hit.fX ; fY = hit.fY ; fZ = hit.fZ ; - } //____________________________________________________________________________ -AliPHOSImpact::AliPHOSImpact(Int_t shunt, Int_t primary, Int_t track, Int_t pid, TLorentzVector p, Float_t *xyz) - : AliHit(shunt, track) +AliPHOSImpact::AliPHOSImpact(Int_t shunt, Int_t primary, Int_t track, Int_t pid, TLorentzVector p, Float_t *xyz): + AliHit(shunt, track), + fPid(pid), + fPrimary(primary), + fMomentum(p) { // // Create a PHOS hit impact object // - - fPrimary = primary ; - fPid = pid ; - fMomentum = p; fX = xyz[0]; //position of particle first entering cristall/pad fY = xyz[1]; fZ = xyz[2]; } +//____________________________________________________________________________ +AliPHOSImpact & AliPHOSImpact::operator = (const AliPHOSImpact &) +{ + Fatal("operator =", "not implemented"); + return *this; +} + //____________________________________________________________________________ void AliPHOSImpact::Print(const Option_t *)const {