1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 //_________________________________________________________________________
19 // Hit impact class for PHOS
20 // A hit impact in PHOS is a set of parameters of a track which
21 // enters the detector for the first time.
22 // Track parameters are:
24 // - primary particle number
25 // - type of a particle
26 // - impact coordinate
27 // - impact 4-momentum
29 //*-- Author: Yuri Kharlov (IHEP, Protvino/SUBATECH, Nantes)
31 // --- ROOT system ---
33 // --- Standard library ---
35 // --- AliRoot header files ---
36 #include "AliPHOSImpact.h"
38 ClassImp(AliPHOSImpact)
40 //____________________________________________________________________________
41 AliPHOSImpact::AliPHOSImpact(const AliPHOSImpact & hit)
46 fPrimary = hit.fPrimary ;
48 fMomentum= hit.fMomentum ;
55 //____________________________________________________________________________
56 AliPHOSImpact::AliPHOSImpact(Int_t shunt, Int_t primary, Int_t track, Int_t pid, TLorentzVector p, Float_t *xyz)
57 : AliHit(shunt, track)
60 // Create a PHOS hit impact object
66 fX = xyz[0]; //position of particle first entering cristall/pad
71 //____________________________________________________________________________
72 void AliPHOSImpact::Print()
74 printf("Impact Pid=%4d, p=(%6.2f,%6.2f,%6.2f,%6.2f) GeV, x=(%6.1f,%6.1f,%6.1f) cm\n",
75 fPid,fMomentum.Px(),fMomentum.Py(),fMomentum.Pz(),fMomentum.E(),