820b4d9e |
1 | /************************************************************************** |
2 | * Copyright(c) 2004-2006, 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 | // Digit description for the ALICE Muon Forward Tracker |
19 | // |
20 | // Contact author: antonio.uras@cern.ch |
21 | // |
22 | //==================================================================================================================================================== |
23 | |
24 | #include "AliDigit.h" |
d4643a10 |
25 | #include "AliMFTConstants.h" |
820b4d9e |
26 | #include "AliMFTDigit.h" |
27 | |
d4643a10 |
28 | const Double_t AliMFTDigit::fElossPerElectron = AliMFTConstants::fElossPerElectron; |
29 | |
820b4d9e |
30 | ClassImp(AliMFTDigit) |
31 | |
ebc5ad8c |
32 | |
820b4d9e |
33 | //==================================================================================================================================================== |
34 | |
35 | AliMFTDigit::AliMFTDigit(): |
36 | AliDigit(), |
37 | fNMCTracks(0), |
38 | fPixelX(-1), |
39 | fPixelY(-1), |
40 | fPixelZ(0), |
41 | fPixelCenterX(0), |
42 | fPixelCenterY(0), |
43 | fPixelCenterZ(0), |
44 | fPixelWidthX(0), |
45 | fPixelWidthY(0), |
46 | fPixelWidthZ(0), |
47 | fPlane(-1), |
48 | fDetElemID(-1), |
49 | fEloss(0), |
50 | fNElectrons(0) |
51 | { |
52 | |
53 | // default cosntructor |
54 | |
d4643a10 |
55 | for (Int_t iTrack=0; iTrack<fNMaxMCTracksPerDigit; iTrack++) fMCLabel[iTrack] = -1; |
56 | |
57 | } |
58 | |
59 | //==================================================================================================================================================== |
60 | |
61 | void AliMFTDigit::AddMCLabel(Int_t label) { |
62 | |
63 | if (fNMCTracks<0 || fNMCTracks>=fNMaxMCTracksPerDigit) return; |
64 | fMCLabel[fNMCTracks++] = label; |
820b4d9e |
65 | |
66 | } |
67 | |
68 | //==================================================================================================================================================== |
d4643a10 |
69 | |