AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMFTHit.cxx
Go to the documentation of this file.
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 //
18 // Hit description for the ALICE Muon Forward Tracker
19 //
20 // Contact author: antonio.uras@cern.ch
21 //
22 //====================================================================================================================================================
23 
24 #include "TLorentzVector.h"
25 #include "TParticle.h"
26 #include "AliHit.h"
27 #include "AliRun.h"
28 #include "AliMC.h"
29 
30 #include "AliMFTHit.h"
31 
33 
34 //====================================================================================================================================================
35 
37  AliHit(),
38  fStatus(0),
39  fPlane(-1),
40  fDetElemID(-1),
41  fPx(0),
42  fPy(0),
43  fPz(0),
44  fEloss(0),
45  fTOF(0)
46 {
47 
48  // default constructor
49 
50 }
51 
52 //====================================================================================================================================================
53 
54 TParticle* AliMFTHit::GetParticle() const {
55 
56  // The TParticle of the track that created this hit.
57 
58  return gAlice->GetMCApp()->Particle(GetTrack());
59 
60 }
61 
62 //====================================================================================================================================================
ClassImp(AliMFTHit) AliMFTHit
Definition: AliMFTHit.cxx:32
AliRun * gAlice
TParticle * GetParticle() const
Definition: AliMFTHit.cxx:54