]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSImpact.cxx
Fix compiler problems
[u/mrichter/AliRoot.git] / PHOS / AliPHOSImpact.cxx
CommitLineData
473062df 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/* $Id$ */
17
702ab87e 18/* History of cvs commits:
19 *
20 * $Log$
21 */
22
473062df 23//_________________________________________________________________________
24// Hit impact class for PHOS
25// A hit impact in PHOS is a set of parameters of a track which
26// enters the detector for the first time.
27// Track parameters are:
28// - track number
29// - primary particle number
30// - type of a particle
31// - impact coordinate
32// - impact 4-momentum
33//
34//*-- Author: Yuri Kharlov (IHEP, Protvino/SUBATECH, Nantes)
35
36// --- ROOT system ---
37
38// --- Standard library ---
39
40// --- AliRoot header files ---
41#include "AliPHOSImpact.h"
42
43ClassImp(AliPHOSImpact)
44
45//____________________________________________________________________________
46AliPHOSImpact::AliPHOSImpact(const AliPHOSImpact & hit)
a8c47ab6 47 : AliHit(hit)
473062df 48{
49 // copy ctor
50
51 fTrack = hit.fTrack ;
52 fPrimary = hit.fPrimary ;
53 fPid = hit.fPid ;
54 fMomentum= hit.fMomentum ;
55 fX = hit.fX ;
56 fY = hit.fY ;
57 fZ = hit.fZ ;
58
59}
60
61//____________________________________________________________________________
62AliPHOSImpact::AliPHOSImpact(Int_t shunt, Int_t primary, Int_t track, Int_t pid, TLorentzVector p, Float_t *xyz)
63 : AliHit(shunt, track)
64{
65 //
66 // Create a PHOS hit impact object
67 //
68
69 fPrimary = primary ;
70 fPid = pid ;
71 fMomentum = p;
72 fX = xyz[0]; //position of particle first entering cristall/pad
73 fY = xyz[1];
74 fZ = xyz[2];
75}
76
77//____________________________________________________________________________
702ab87e 78void AliPHOSImpact::Print(const Option_t *)const
473062df 79{
e957fea8 80 // Prints particle info
473062df 81 printf("Impact Pid=%4d, p=(%6.2f,%6.2f,%6.2f,%6.2f) GeV, x=(%6.1f,%6.1f,%6.1f) cm\n",
82 fPid,fMomentum.Px(),fMomentum.Py(),fMomentum.Pz(),fMomentum.E(),
83 fX,fY,fZ);
84}