Line data Source code
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"
25 : #include "AliMFTConstants.h"
26 : #include "AliMFTDigit.h"
27 :
28 14 : const Double_t AliMFTDigit::fElossPerElectron = AliMFTConstants::fElossPerElectron;
29 :
30 14 : ClassImp(AliMFTDigit)
31 :
32 :
33 : //====================================================================================================================================================
34 :
35 : AliMFTDigit::AliMFTDigit():
36 0 : AliDigit(),
37 0 : fNMCTracks(0),
38 0 : fPixelX(-1),
39 0 : fPixelY(-1),
40 0 : fPixelZ(0),
41 0 : fPixelCenterX(0),
42 0 : fPixelCenterY(0),
43 0 : fPixelCenterZ(0),
44 0 : fPixelWidthX(0),
45 0 : fPixelWidthY(0),
46 0 : fPixelWidthZ(0),
47 0 : fPlane(-1),
48 0 : fDetElemID(-1),
49 0 : fEloss(0),
50 0 : fNElectrons(0)
51 0 : {
52 :
53 : // default cosntructor
54 :
55 0 : for (Int_t iTrack=0; iTrack<fNMaxMCTracksPerDigit; iTrack++) fMCLabel[iTrack] = -1;
56 :
57 0 : }
58 :
59 : //====================================================================================================================================================
60 :
61 : void AliMFTDigit::AddMCLabel(Int_t label) {
62 :
63 0 : if (fNMCTracks<0 || fNMCTracks>=fNMaxMCTracksPerDigit) return;
64 0 : fMCLabel[fNMCTracks++] = label;
65 :
66 0 : }
67 :
68 : //====================================================================================================================================================
69 :
|