X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSImpact.cxx;h=af99bc14c5e88dc62af158eccaac0824f61ef4ed;hb=cc380d0d8d9743ba0d743d14c54a1fcbdbbd6b46;hp=dd66ec79b29e0bf5d9650a7bcc24257b19598ac0;hpb=88cb7938ca21d4a80991d4e7aa564008c29340f7;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSImpact.cxx b/PHOS/AliPHOSImpact.cxx index dd66ec79b29..af99bc14c5e 100644 --- a/PHOS/AliPHOSImpact.cxx +++ b/PHOS/AliPHOSImpact.cxx @@ -15,6 +15,14 @@ /* $Id$ */ +/* History of cvs commits: + * + * $Log$ + * Revision 1.6 2005/05/28 14:19:04 schutz + * Compilation warnings fixed by T.P. + * + */ + //_________________________________________________________________________ // Hit impact class for PHOS // A hit impact in PHOS is a set of parameters of a track which @@ -38,39 +46,54 @@ ClassImp(AliPHOSImpact) //____________________________________________________________________________ -AliPHOSImpact::AliPHOSImpact(const AliPHOSImpact & 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]; } //____________________________________________________________________________ -void AliPHOSImpact::Print() +AliPHOSImpact & AliPHOSImpact::operator = (const AliPHOSImpact &) +{ + Fatal("operator =", "not implemented"); + return *this; +} + +//____________________________________________________________________________ +void AliPHOSImpact::Print(const Option_t *)const { + // Prints particle info printf("Impact Pid=%4d, p=(%6.2f,%6.2f,%6.2f,%6.2f) GeV, x=(%6.1f,%6.1f,%6.1f) cm\n", fPid,fMomentum.Px(),fMomentum.Py(),fMomentum.Pz(),fMomentum.E(), fX,fY,fZ);