]>
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 | // AliTOFPad class (class used in TOF Reconstruction) | |
19 | // | |
20 | // | |
21 | // Authors: Bologna-ITEP-Salerno Group | |
22 | // | |
23 | // Description: Physical description of the elementary TOF sensitive | |
24 | // volume (PAD) containing timing and charge induced data. | |
25 | // | |
26 | // Member variable summary description: | |
27 | // - location of the pad according to the current pad numbering scheme | |
28 | // - simulated time of flight and GEANT time of flight if the pad | |
29 | // has fired | |
30 | // - matching flags with the tracks that have fired the pad | |
31 | // | |
32 | //////////////////////////////////////////////////////////////////////// | |
33 | ||
34 | #include "AliTOFPad.h" | |
35 | ||
36 | ClassImp(AliTOFPad) | |
37 | ||
38 | AliTOFPad::AliTOFPad() | |
39 | { | |
40 | // | |
41 | // Default ctor | |
42 | // | |
43 | fSector = 0; | |
44 | fPlate = 0; | |
45 | fStrip = 0; | |
46 | fPixel = 0; | |
47 | fTrack =-1; | |
48 | fTrackMatched =-1; | |
49 | fState = 0; | |
50 | fRealTime = 0; | |
51 | fGeantTime = 0; | |
52 | fCharge = 1; | |
53 | fAverageTime = 0; | |
54 | fHit =-1; | |
55 | } | |
56 | ||
57 | //___________________________________________ | |
58 | AliTOFPad::AliTOFPad(Int_t sector, Int_t plate, Int_t strip ,Int_t pixel) | |
59 | { | |
60 | // | |
61 | // Par ctor | |
62 | // | |
63 | fSector = sector; | |
64 | fPlate = plate; | |
65 | fStrip = strip; | |
66 | fPixel = pixel; | |
67 | fTrack =-1; | |
68 | fTrackMatched =-1; | |
69 | fState = 0; | |
70 | fRealTime = 0; | |
71 | fGeantTime = 0; | |
72 | fCharge = 1; | |
73 | fAverageTime = 0; | |
74 | fHit =-1; | |
75 | } | |
76 | //___________________________________________ | |
77 | void AliTOFPad::SetGeom(Int_t sector, Int_t plate, Int_t strip, Int_t pixel) | |
78 | { | |
79 | // | |
80 | // Set the pad location in TOF detector as | |
81 | // sector plate strip pixel | |
82 | // | |
83 | fSector = sector; | |
84 | fPlate = plate; | |
85 | fStrip = strip; | |
86 | fPixel = pixel; | |
87 | } | |
88 | ||
89 | //___________________________________________ | |
90 | void AliTOFPad::SetTofChargeHit(Float_t realTime, Float_t charge, Float_t geantTime, Int_t hitnum) | |
91 | { | |
92 | // | |
93 | // Set the realTime given by the PAD (if activated), the charge, | |
94 | // the true time given by GEANT and the hit number | |
95 | ||
96 | fRealTime = realTime; | |
97 | fGeantTime = geantTime; | |
98 | fCharge = charge; | |
99 | fHit = hitnum; | |
100 | } |