]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliESDHLTtrack.cxx
Adding HLT tracks to ESD
[u/mrichter/AliRoot.git] / STEER / AliESDHLTtrack.cxx
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 //           Implementation of the ESD HLT track class
18 //   ESD = Event Summary Data
19 //   HLT = High Level Trigger
20 //   This is the class to deal with during the phisical analysis of data
21 //-----------------------------------------------------------------
22
23 #include "TMath.h"
24 #include "AliESDHLTtrack.h"
25
26 ClassImp(AliESDHLTtrack)
27
28 AliESDHLTtrack::AliESDHLTtrack() : TObject()
29 {
30   fNHits = 0;
31   fMCid = 0;
32   fWeight = 0;
33   fFromMainVertex = kFALSE;
34   fRowRange[0] = fRowRange[1] = 0;
35   fSector = 0;
36   fFirstPoint[0] = fFirstPoint[1] = fFirstPoint[2] = 0;
37   fLastPoint[0] = fLastPoint[1] = fLastPoint[2] = 0;
38   fQ = 0;
39   fTanl = 0;
40   fPsi = 0;
41   fPt = 0;
42   fPterr = 0;
43   fPsierr = 0;
44   fTanlerr = 0;
45   fBinX = 0;
46   fBinY = 0;
47   fSizeX = 0;
48   fSizeY = 0;
49   fPID =0;
50 }
51
52 Double_t AliESDHLTtrack::GetP() const
53 {
54   // Returns total momentum.  
55   return TMath::Abs(GetPt())*sqrt(1. + GetTgl()*GetTgl());
56 }
57
58 Double_t AliESDHLTtrack::GetPseudoRapidity() const
59 {
60   return 0.5 * TMath::Log((GetP() + GetPz()) / (GetP() - GetPz()));
61 }