]>
Commit | Line | Data |
---|---|---|
4c039060 | 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 | ||
88cb7938 | 16 | /* $Id$ */ |
4c039060 | 17 | |
99d5402e | 18 | /////////////////////////////////////////////////////////////////////////////// |
19 | // // | |
20 | // Contains the information for one TRD pixel // | |
21 | // // | |
22 | /////////////////////////////////////////////////////////////////////////////// | |
23 | ||
24 | #include "AliTRDpixel.h" | |
25 | ||
26 | ClassImp(AliTRDpixel) | |
27 | ||
793ff80c | 28 | //_____________________________________________________________________________ |
29 | ||
30 | // Maximal number of stored tracks | |
31 | const Int_t AliTRDpixel::fgkNTrackPixel = kNTrackPixel; | |
32 | ||
99d5402e | 33 | //_____________________________________________________________________________ |
34 | AliTRDpixel::AliTRDpixel():TObject() | |
35 | { | |
36 | // | |
37 | // Create a TRD pixel | |
38 | // | |
39 | ||
851d3db9 | 40 | fSignal = 0; |
41 | fTrack[0] = -1; | |
42 | fTrack[1] = -1; | |
43 | fTrack[2] = -1; | |
99d5402e | 44 | |
45 | } | |
8230f242 | 46 | |
47 | //_____________________________________________________________________________ | |
48 | AliTRDpixel::~AliTRDpixel() | |
49 | { | |
50 | // | |
51 | // AliTRDpixel destructor | |
52 | // | |
53 | ||
54 | } | |
55 | ||
56 | //_____________________________________________________________________________ | |
dd9a6ee3 | 57 | void AliTRDpixel::Copy(TObject &p) |
8230f242 | 58 | { |
59 | // | |
60 | // Copy function | |
61 | // | |
62 | ||
dd9a6ee3 | 63 | ((AliTRDpixel &) p).fSignal = fSignal; |
793ff80c | 64 | for (Int_t iTrackPixel = 0; iTrackPixel < kNTrackPixel; iTrackPixel++) { |
dd9a6ee3 | 65 | ((AliTRDpixel &) p).fTrack[iTrackPixel] = fTrack[iTrackPixel]; |
8230f242 | 66 | } |
67 | ||
68 | } |