/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /* $Id$ */ /* History of cvs commits: * * $Log$ */ //_________________________________________________________________________ // Hit impact class for PHOS // A hit impact in PHOS is a set of parameters of a track which // enters the detector for the first time. // Track parameters are: // - track number // - primary particle number // - type of a particle // - impact coordinate // - impact 4-momentum // //*-- Author: Yuri Kharlov (IHEP, Protvino/SUBATECH, Nantes) // --- ROOT system --- // --- Standard library --- // --- AliRoot header files --- #include "AliPHOSImpact.h" ClassImp(AliPHOSImpact) //____________________________________________________________________________ AliPHOSImpact::AliPHOSImpact(const AliPHOSImpact & hit) : AliHit(hit) { // 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) { // // 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(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); }