]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSCPVHit.cxx
position of the particle initiating the hit in PHOS
[u/mrichter/AliRoot.git] / PHOS / AliPHOSCPVHit.cxx
CommitLineData
3f7668d5 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16/*
17 $Log$
1aa17254 18 Revision 1.2 2000/11/20 09:50:03 schutz
19 AliPHOSCPVHit inherits from AliHit
20
d1b50469 21 Revision 1.1 2000/11/03 16:49:53 schutz
22 New class AliPHOSCPVHit
23
3f7668d5 24*/
25
26////////////////////////////////////////////////
27// Hit class CPV //
28// //
29// Author: Yuri Kharlov, IHEP, Protvino //
30// e-mail: Yuri.Kharlov@cern.ch //
31// Last modified: 28 September 2000 //
32////////////////////////////////////////////////
33
34// --- ROOT system ---
35
36// --- Standard library ---
37#include <stdio.h>
38
39// --- galice header files ---
40#include "AliPHOSCPVHit.h"
41
42
43ClassImp(AliPHOSCPVHit)
44
45//______________________________________________________________________________
46
d1b50469 47AliPHOSCPVHit::AliPHOSCPVHit(Int_t shunt, Int_t track, TLorentzVector p, Float_t *xy, Int_t ipart)
48 : AliHit(shunt, track)
3f7668d5 49{
50 //
51 // Create a CPV hit object
52 //
53
54 fMomentum = p;
d1b50469 55 fX = xy[0];
56 fY = xy[1];
1aa17254 57 fZ = 9999.; //Fake Z to avoid FPE
3f7668d5 58 fIpart = ipart;
59}
60
61//______________________________________________________________________________
62void AliPHOSCPVHit::Print()
63{
64 //
65 // Print CPV hit
66 //
67
68 printf("CPV hit: p = (% .4f, % .4f, % .4f, % .4f) GeV,\n",
d1b50469 69 fMomentum.Px(),fMomentum.Py(),fMomentum.Pz(),fMomentum.E());
3f7668d5 70 printf(" xy = (%8.4f, %8.4f) cm, ipart = %d\n",
d1b50469 71 fX,fY,fIpart);
3f7668d5 72}