]>
Commit | Line | Data |
---|---|---|
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 | |
da3d3acd | 31 | // - fMatchingStatus |
32 | // -2 backpropagation goes out of the z acceptance of the TOF | |
33 | // -1 failed backpropagation on TOF inner radius | |
34 | // 0 for fake tracks | |
35 | // 1 for tracks matched with no signal on TOF (failed DigitFinder) | |
36 | // 3 for tracks matched with the actual digit | |
37 | // 4 for tracks matched with a wrong (not its own) TOF digit | |
bf6bf84c | 38 | //////////////////////////////////////////////////////////////////////// |
39 | ||
40 | #include "AliTOFTrackV2.h" | |
41 | ||
42 | ClassImp(AliTOFTrackV2) | |
43 | ||
44 | AliTOFTrackV2::AliTOFTrackV2() | |
45 | { | |
46 | // | |
47 | // Default ctor | |
48 | // | |
49 | fTrackLabel=-1; | |
50 | fTOFDigitTrackLabel=-1; | |
51 | fPTPC=-1; | |
52 | fPdgCode=-1; | |
53 | fdEdX=-1; | |
54 | fxTPC=-1; | |
55 | fyTPC=-1; | |
56 | fzTPC=-1; | |
57 | fPtTPC=-1; | |
58 | fPzTPC=-1; | |
59 | fxTRD=-1; | |
60 | fyTRD=-1; | |
61 | fzTRD=-1; | |
62 | fPxTRD=-1; | |
63 | fPyTRD=-1; | |
64 | fPzTRD=-1; | |
65 | fMatchingStatus=-1; | |
66 | fLength=-1; | |
67 | fTof=-1; | |
68 | fMassTOF=-1; | |
da3d3acd | 69 | // vertex variables from reconstruction |
70 | fXRecVtx=-1; | |
71 | fYRecVtx=-1; | |
72 | fZRecVtx=-1; | |
73 | fPxRecVtx=-1; | |
74 | fPyRecVtx=-1; | |
75 | fPzRecVtx=-1; | |
76 | fRecTrackLength=-1; | |
bf6bf84c | 77 | } |
78 | ||
79 | //_____________________________________________________________________________ | |
da3d3acd | 80 | AliTOFTrackV2::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) |
bf6bf84c | 81 | { |
82 | // | |
83 | // par ctor | |
84 | // | |
85 | ||
86 | fTrackLabel=trackLabel; | |
87 | fTOFDigitTrackLabel=-1; | |
88 | fPTPC=tpcMom; | |
89 | fPdgCode=-1; | |
90 | ||
91 | fdEdX=dEdX; | |
92 | fxTPC=tpcXYZ[0]; | |
93 | fyTPC=tpcXYZ[1]; | |
94 | fzTPC=tpcXYZ[2]; | |
95 | fPtTPC=tpcPtPz[0]; | |
96 | fPzTPC=tpcPtPz[1]; | |
97 | ||
98 | fxTRD=-1; | |
99 | fyTRD=-1; | |
100 | fzTRD=-1; | |
101 | fPxTRD=-1; | |
102 | fPyTRD=-1; | |
103 | fPzTRD=-1; | |
104 | ||
105 | fMatchingStatus=matchingStatus; | |
106 | fLength=-1; | |
107 | fTof=-1; | |
108 | fMassTOF=-1; | |
da3d3acd | 109 | |
110 | // vertex variables from reconstruction | |
111 | fXRecVtx=-1; | |
112 | fYRecVtx=-1; | |
113 | fZRecVtx=-1; | |
114 | fPxRecVtx=-1; | |
115 | fPyRecVtx=-1; | |
116 | fPzRecVtx=-1; | |
117 | fRecTrackLength=-1; | |
bf6bf84c | 118 | } |
119 | ||
120 | //_____________________________________________________________________________ | |
121 | void AliTOFTrackV2::UpdateTrack(Int_t tofDigitTrackLabel, Int_t matching, Float_t tof) | |
122 | { | |
123 | // | |
124 | // update the track after the TOF digit assignment | |
125 | // | |
126 | fTOFDigitTrackLabel=tofDigitTrackLabel; | |
127 | fMatchingStatus=matching; | |
128 | fTof=tof; | |
129 | } | |
130 | ||
131 | //_____________________________________________________________________________ | |
132 | void AliTOFTrackV2::UpdateTrack(Int_t pdgCode, Float_t trackLength) | |
133 | { | |
134 | // | |
135 | // update the track | |
136 | // | |
137 | fPdgCode=pdgCode; | |
138 | fLength=trackLength; | |
139 | } |