]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MFT/AliMFTDigit.cxx
3390cb17ac1601e0602892f8bb355acf69dc7408
[u/mrichter/AliRoot.git] / MFT / AliMFTDigit.cxx
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 const Double_t AliMFTDigit::fElossPerElectron = AliMFTConstants::fElossPerElectron;
29
30 ClassImp(AliMFTDigit)
31
32 //====================================================================================================================================================
33
34 AliMFTDigit::AliMFTDigit():
35   AliDigit(),
36   fNMCTracks(0),
37   fPixelX(-1),
38   fPixelY(-1),
39   fPixelZ(0),
40   fPixelCenterX(0),
41   fPixelCenterY(0),  
42   fPixelCenterZ(0),  
43   fPixelWidthX(0),
44   fPixelWidthY(0),  
45   fPixelWidthZ(0),  
46   fPlane(-1),
47   fDetElemID(-1),
48   fEloss(0),
49   fNElectrons(0)
50 {
51
52   // default cosntructor
53
54   for (Int_t iTrack=0; iTrack<fNMaxMCTracksPerDigit; iTrack++) fMCLabel[iTrack] = -1;
55
56 }
57
58 //====================================================================================================================================================
59
60 void  AliMFTDigit::AddMCLabel(Int_t label) { 
61
62   if (fNMCTracks<0 || fNMCTracks>=fNMaxMCTracksPerDigit) return; 
63   fMCLabel[fNMCTracks++] = label;
64
65 }
66
67 //====================================================================================================================================================
68