]>
Commit | Line | Data |
---|---|---|
a625e653 | 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 | // AliTOFTrack class | |
19 | // | |
20 | // Authors: Bologna-ITEP-Salerno Group | |
21 | // | |
22 | // Description: class for TPC data about extracted tracks for TPC-TOF | |
23 | // matching (cfr. TDR Section 4.4). | |
24 | // TRD tracking capabilities have been foreseen by including the member | |
25 | // variables fRxTRD and fRyTRD. | |
26 | // It is the candidate class to be written in TreeR for each event. | |
27 | // | |
28 | // Member variable summary description: | |
29 | // - track momentum and position in the last TPC padrow | |
30 | // - track length as given by the geometrical propagation | |
31 | // - reconstructed mass from time of flight | |
32 | // | |
33 | //////////////////////////////////////////////////////////////////////// | |
34 | ||
35 | #include "AliTOFTrack.h" | |
36 | ||
37 | ClassImp(AliTOFTrack) | |
38 | ||
39 | AliTOFTrack::AliTOFTrack() | |
40 | { | |
41 | // | |
42 | // Default ctor | |
43 | // | |
44 | fTrack=0; | |
45 | fP=0.; | |
46 | fPdgCode=0; | |
47 | flTPC=0.; | |
48 | fRxTPC=0.; | |
49 | fRyTPC=0.; | |
50 | fRzTPC=0.; | |
51 | fPxTPC=0.; | |
52 | fPyTPC=0.; | |
53 | fPzTPC=0.; | |
54 | fRxTRD=0.; | |
55 | fRyTRD=0.; | |
56 | fPad=0; | |
57 | fMatching=0; | |
58 | fLength=-1; | |
59 | fTof=-1; | |
60 | fMassTOF=-1; | |
61 | } | |
62 | ||
63 | //_____________________________________________________________________________ | |
64 | AliTOFTrack::AliTOFTrack(Int_t track, Float_t vtxMom, Int_t pdgcode, Float_t tpcTrackLen, Float_t* tpcpos, Float_t* tpcmom, Float_t* trdpos, Int_t pad, Int_t matchflag, Float_t length, Float_t tof, Float_t massTof) | |
65 | { | |
66 | // | |
67 | // par ctor | |
68 | // | |
69 | fTrack = track; | |
70 | fP = vtxMom; | |
71 | fPdgCode= pdgcode; | |
72 | flTPC = tpcTrackLen; | |
73 | fRxTPC = tpcpos[0]; | |
74 | fRyTPC = tpcpos[1]; | |
75 | fRzTPC = tpcpos[2]; | |
76 | fPxTPC = tpcmom[0]; | |
77 | fPyTPC = tpcmom[1]; | |
78 | fPzTPC = tpcmom[2]; | |
79 | fRxTRD = trdpos[0]; | |
80 | fRyTRD = trdpos[1]; | |
81 | fPad = pad; | |
82 | fMatching= matchflag; | |
83 | fLength = length; | |
84 | fTof = tof; | |
85 | fMassTOF= massTof; | |
86 | } | |
87 | ||
88 | //_____________________________________________________________________________ | |
89 | void AliTOFTrack::SetTrack(Int_t track, Float_t vtxMom, Int_t pdgcode, Float_t tpcTrackLen, Float_t* tpcpos, Float_t* tpcmom, Float_t* trdpos) | |
90 | { | |
91 | // | |
92 | // setter | |
93 | // | |
94 | fTrack = track; | |
95 | fP = vtxMom; | |
96 | fPdgCode= pdgcode; | |
97 | flTPC = tpcTrackLen; | |
98 | fRxTPC = tpcpos[0]; | |
99 | fRyTPC = tpcpos[1]; | |
100 | fRzTPC = tpcpos[2]; | |
101 | fPxTPC = tpcmom[0]; | |
102 | fPyTPC = tpcmom[1]; | |
103 | fPzTPC = tpcmom[2]; | |
104 | fRxTRD = trdpos[0]; | |
105 | fRyTRD = trdpos[1]; | |
106 | } |