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