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 **************************************************************************/
19 #include "AliMUONHit.h"
23 //___________________________________________
24 AliMUONHit::AliMUONHit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits):
37 fPHfirst = (Int_t) hits[8];
38 fPHlast = (Int_t) hits[9];
48 //___________________________________________
49 AliMUONHit::AliMUONHit(Int_t shunt, Int_t track, Int_t iChamber, Int_t idpart,
50 Float_t X, Float_t Y, Float_t Z, Float_t tof, Float_t momentum,
51 Float_t theta, Float_t phi, Float_t length, Float_t destep):
67 fPx = momentum * TMath::Sin(theta) * TMath::Cos(phi);
68 fPy = momentum * TMath::Sin(theta) * TMath::Sin(phi);
69 fPx = momentum * TMath::Cos(theta) ;
75 //-----------------------------------------------------------------------------------------------
76 AliMUONHit::AliMUONHit(Int_t shunt, Int_t track, Int_t iChamber, Int_t idpart,
77 Float_t X, Float_t Y, Float_t Z, Float_t tof, Float_t momentum,
78 Float_t theta, Float_t phi, Float_t length, Float_t destep,
79 Float_t Xref,Float_t Yref,Float_t Zref):
95 fPx = momentum * TMath::Sin(theta) * TMath::Cos(phi);
96 fPy = momentum * TMath::Sin(theta) * TMath::Sin(phi);
97 fPx = momentum * TMath::Cos(theta) ;
103 //-----------------------------------------------------------------------------------------------