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 /* History of cvs commits:
23 //_________________________________________________________________________
24 // Hit impact class for PHOS
25 // A hit impact in PHOS is a set of parameters of a track which
26 // enters the detector for the first time.
27 // Track parameters are:
29 // - primary particle number
30 // - type of a particle
31 // - impact coordinate
32 // - impact 4-momentum
34 //*-- Author: Yuri Kharlov (IHEP, Protvino/SUBATECH, Nantes)
36 // --- ROOT system ---
38 // --- Standard library ---
40 // --- AliRoot header files ---
41 #include "AliPHOSImpact.h"
43 ClassImp(AliPHOSImpact)
45 //____________________________________________________________________________
46 AliPHOSImpact::AliPHOSImpact(const AliPHOSImpact & hit)
52 fPrimary = hit.fPrimary ;
54 fMomentum= hit.fMomentum ;
61 //____________________________________________________________________________
62 AliPHOSImpact::AliPHOSImpact(Int_t shunt, Int_t primary, Int_t track, Int_t pid, TLorentzVector p, Float_t *xyz)
63 : AliHit(shunt, track)
66 // Create a PHOS hit impact object
72 fX = xyz[0]; //position of particle first entering cristall/pad
77 //____________________________________________________________________________
78 void AliPHOSImpact::Print(const Option_t *)const
80 // Prints particle info
81 printf("Impact Pid=%4d, p=(%6.2f,%6.2f,%6.2f,%6.2f) GeV, x=(%6.1f,%6.1f,%6.1f) cm\n",
82 fPid,fMomentum.Px(),fMomentum.Py(),fMomentum.Pz(),fMomentum.E(),