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:
21 * Revision 1.6 2005/05/28 14:19:04 schutz
22 * Compilation warnings fixed by T.P.
26 //_________________________________________________________________________
27 // Hit impact class for PHOS
28 // A hit impact in PHOS is a set of parameters of a track which
29 // enters the detector for the first time.
30 // Track parameters are:
32 // - primary particle number
33 // - type of a particle
34 // - impact coordinate
35 // - impact 4-momentum
37 //*-- Author: Yuri Kharlov (IHEP, Protvino/SUBATECH, Nantes)
39 // --- ROOT system ---
41 // --- Standard library ---
43 // --- AliRoot header files ---
44 #include "AliPHOSImpact.h"
46 ClassImp(AliPHOSImpact)
48 //____________________________________________________________________________
49 AliPHOSImpact::AliPHOSImpact() :
57 //____________________________________________________________________________
58 AliPHOSImpact::AliPHOSImpact(const AliPHOSImpact & hit) :
61 fPrimary(hit.fPrimary),
62 fMomentum(hit.fMomentum)
71 //____________________________________________________________________________
72 AliPHOSImpact::AliPHOSImpact(Int_t shunt, Int_t primary, Int_t track, Int_t pid, TLorentzVector p, Float_t *xyz):
79 // Create a PHOS hit impact object
81 fX = xyz[0]; //position of particle first entering cristall/pad
86 //____________________________________________________________________________
87 AliPHOSImpact & AliPHOSImpact::operator = (const AliPHOSImpact &)
89 Fatal("operator =", "not implemented");
93 //____________________________________________________________________________
94 void AliPHOSImpact::Print(const Option_t *)const
96 // Prints particle info
97 printf("Impact Pid=%4d, p=(%6.2f,%6.2f,%6.2f,%6.2f) GeV, x=(%6.1f,%6.1f,%6.1f) cm\n",
98 fPid,fMomentum.Px(),fMomentum.Py(),fMomentum.Pz(),fMomentum.E(),