]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFTrackV2.cxx
Fixed bub in BuildGeometry
[u/mrichter/AliRoot.git] / TOF / AliTOFTrackV2.cxx
CommitLineData
bf6bf84c 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// AliTOFTrackV2 class
19//
20// Author: F. Pierella | pierella@bo.infn.it
21//
22// Description: output of AliTOFReconstructionerV2
23// TRD tracking capabilities have been foreseen by including the member
24// variables fxTRD, fyTRD, fzTRD and momentum components fPxTRD, fPyTRD, fPzTRD.
25// Class to be written in TreeR for each event.
26//
27// Member variable summary description:
28// - track momentum and position in the last TPC padrow
29// - track length as given by the geometrical propagation
30// - reconstructed mass from time of flight and time of flight itself
31////////////////////////////////////////////////////////////////////////
32
33#include "AliTOFTrackV2.h"
34
35ClassImp(AliTOFTrackV2)
36
37AliTOFTrackV2::AliTOFTrackV2()
38{
39 //
40 // Default ctor
41 //
42 fTrackLabel=-1;
43 fTOFDigitTrackLabel=-1;
44 fPTPC=-1;
45 fPdgCode=-1;
46 fdEdX=-1;
47 fxTPC=-1;
48 fyTPC=-1;
49 fzTPC=-1;
50 fPtTPC=-1;
51 fPzTPC=-1;
52 fxTRD=-1;
53 fyTRD=-1;
54 fzTRD=-1;
55 fPxTRD=-1;
56 fPyTRD=-1;
57 fPzTRD=-1;
58 fMatchingStatus=-1;
59 fLength=-1;
60 fTof=-1;
61 fMassTOF=-1;
62}
63
64//_____________________________________________________________________________
65AliTOFTrackV2::AliTOFTrackV2(Int_t trackLabel, Int_t matchingStatus, Float_t tpcMom, Float_t dEdX, Float_t* tpcXYZ, Float_t* tpcPtPz, Float_t* trdXYZ, Float_t* trdPxPyPz)
66{
67 //
68 // par ctor
69 //
70
71 fTrackLabel=trackLabel;
72 fTOFDigitTrackLabel=-1;
73 fPTPC=tpcMom;
74 fPdgCode=-1;
75
76 fdEdX=dEdX;
77 fxTPC=tpcXYZ[0];
78 fyTPC=tpcXYZ[1];
79 fzTPC=tpcXYZ[2];
80 fPtTPC=tpcPtPz[0];
81 fPzTPC=tpcPtPz[1];
82
83 fxTRD=-1;
84 fyTRD=-1;
85 fzTRD=-1;
86 fPxTRD=-1;
87 fPyTRD=-1;
88 fPzTRD=-1;
89
90 fMatchingStatus=matchingStatus;
91 fLength=-1;
92 fTof=-1;
93 fMassTOF=-1;
94}
95
96//_____________________________________________________________________________
97void AliTOFTrackV2::UpdateTrack(Int_t tofDigitTrackLabel, Int_t matching, Float_t tof)
98{
99 //
100 // update the track after the TOF digit assignment
101 //
102 fTOFDigitTrackLabel=tofDigitTrackLabel;
103 fMatchingStatus=matching;
104 fTof=tof;
105}
106
107//_____________________________________________________________________________
108void AliTOFTrackV2::UpdateTrack(Int_t pdgCode, Float_t trackLength)
109{
110 //
111 // update the track
112 //
113 fPdgCode=pdgCode;
114 fLength=trackLength;
115}