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 Revision 1.2 2000/11/20 09:50:03 schutz
19 AliPHOSCPVHit inherits from AliHit
21 Revision 1.1 2000/11/03 16:49:53 schutz
22 New class AliPHOSCPVHit
26 ////////////////////////////////////////////////
29 // Author: Yuri Kharlov, IHEP, Protvino //
30 // e-mail: Yuri.Kharlov@cern.ch //
31 // Last modified: 28 September 2000 //
32 ////////////////////////////////////////////////
34 // --- ROOT system ---
36 // --- Standard library ---
39 // --- galice header files ---
40 #include "AliPHOSCPVHit.h"
43 ClassImp(AliPHOSCPVHit)
45 //______________________________________________________________________________
47 AliPHOSCPVHit::AliPHOSCPVHit(Int_t shunt, Int_t track, TLorentzVector p, Float_t *xy, Int_t ipart)
48 : AliHit(shunt, track)
51 // Create a CPV hit object
57 fZ = 9999.; //Fake Z to avoid FPE
61 //______________________________________________________________________________
62 void AliPHOSCPVHit::Print()
68 printf("CPV hit: p = (% .4f, % .4f, % .4f, % .4f) GeV,\n",
69 fMomentum.Px(),fMomentum.Py(),fMomentum.Pz(),fMomentum.E());
70 printf(" xy = (%8.4f, %8.4f) cm, ipart = %d\n",