]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSCPVHit.cxx
removed unnecessary includes
[u/mrichter/AliRoot.git] / PHOS / AliPHOSCPVHit.cxx
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$
18   Revision 1.1  2000/11/03 16:49:53  schutz
19   New class AliPHOSCPVHit
20
21 */
22
23 ////////////////////////////////////////////////
24 //  Hit class CPV                             //
25 //                                            //
26 //  Author: Yuri Kharlov, IHEP, Protvino      //
27 //  e-mail: Yuri.Kharlov@cern.ch              //
28 //  Last modified: 28 September 2000          //
29 ////////////////////////////////////////////////
30  
31 // --- ROOT system ---
32
33 // --- Standard library ---
34 #include <stdio.h>
35
36 // --- galice header files ---
37 #include "AliPHOSCPVHit.h"
38
39
40 ClassImp(AliPHOSCPVHit)
41
42 //______________________________________________________________________________
43
44 AliPHOSCPVHit::AliPHOSCPVHit(Int_t shunt, Int_t track, TLorentzVector p, Float_t *xy, Int_t ipart)
45              : AliHit(shunt, track)
46 {
47   //
48   // Create a CPV hit object
49   //
50
51   fMomentum  = p;
52   fX         = xy[0];
53   fY         = xy[1];
54   fIpart     = ipart;
55 }
56
57 //______________________________________________________________________________
58 void AliPHOSCPVHit::Print()
59 {
60   //
61   // Print CPV hit
62   //
63
64   printf("CPV hit: p  = (% .4f, % .4f, % .4f, % .4f) GeV,\n",
65         fMomentum.Px(),fMomentum.Py(),fMomentum.Pz(),fMomentum.E());
66   printf("         xy = (%8.4f, %8.4f) cm, ipart = %d\n",
67          fX,fY,fIpart);
68 }