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 // [0] = module number 1-60 (1==>(0-0), 60 (5-9)
20 // [1] = Plastic number: 0 (down) to 1 (up)
29 // [10] = trak length in plastic
31 #include "AliACORDEhit.h"
37 ClassImp(AliACORDEhit)
39 //____________________________________________________________________________
40 AliACORDEhit::AliACORDEhit()
54 // default ctor for AliACORDEhit object
58 //_____________________________________________________________________________
59 AliACORDEhit::AliACORDEhit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits)
60 : AliHit(shunt, track),
63 fTrackId((Int_t) hits[0]),
73 // Constructor of hit object
81 //_____________________________________________________________________________
82 AliACORDEhit::~AliACORDEhit()
85 // Default destructor.
90 //_____________________________________________________________________________
91 Float_t AliACORDEhit::PolarAngle() const
96 // return kRaddeg*TMath::ACos(-fPy/this->Energy());
97 return kRaddeg*TMath::ACos(fPz/this->Energy());
100 //_____________________________________________________________________________
101 Float_t AliACORDEhit::AzimuthAngle() const
106 // return kRaddeg*TMath::ATan2(-fPx, -fPz);
107 return kRaddeg*TMath::ATan2(fPx, fPz);