]>
Commit | Line | Data |
---|---|---|
1b41ab20 | 1 | // $Id$ |
2 | ||
2374af72 | 3 | /************************************************************************** |
4 | * This file is property of and copyright by the ALICE HLT Project * | |
5 | * All rights reserved. * | |
6 | * * | |
7 | * Primary Authors: Oystein Djuvsland * | |
8 | * * | |
9 | * Permission to use, copy, modify and distribute this software and its * | |
10 | * documentation strictly for non-commercial purposes is hereby granted * | |
11 | * without fee, provided that the above copyright notice appears in all * | |
12 | * copies and that both the copyright notice and this permission notice * | |
13 | * appear in the supporting documentation. The authors make no claims * | |
14 | * about the suitability of this software for any purpose. It is * | |
15 | * provided "as is" without express or implied warranty. * | |
16 | **************************************************************************/ | |
209a4703 | 17 | |
18 | #include "AliHLTPHOSDigit.h" | |
19 | #include "AliHLTPHOSAltroConfig.h" | |
20 | ||
2374af72 | 21 | /** |
22 | * Digit class for PHOS HLT | |
23 | * | |
24 | * @file AliHLTPHOSDigit.cxx | |
25 | * @author Oystein Djuvsland | |
26 | * @date | |
27 | * @brief Digit class for PHOS HLT | |
28 | */ | |
29 | ||
30 | // see header file for class documentation | |
31 | // or | |
32 | // refer to README to build package | |
33 | // or | |
34 | // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt | |
35 | ||
209a4703 | 36 | ClassImp(AliHLTPHOSDigit); |
37 | ||
38 | AliHLTPHOSDigit::AliHLTPHOSDigit() : | |
39 | TObject(), | |
40 | AliHLTPHOSBase(), | |
41 | fX(-1), | |
42 | fZ(-1), | |
43 | fAmplitude(-1), | |
44 | fTime(-1), | |
45 | fEnergy(-1), | |
46 | fGain(-1), | |
47 | fSamples(55), | |
48 | fPreSamples(15), | |
49 | fTotalSamples(70), | |
25b7f84c | 50 | fDebugVar(-1), |
51 | fData(0), | |
52 | fCrazyness(0), | |
53 | fBaseline(0) | |
209a4703 | 54 | { |
2374af72 | 55 | //See header file for documentation |
209a4703 | 56 | //added by PT |
57 | fSamples = fNSamples; | |
58 | fPreSamples = fNPresamples; | |
59 | fTotalSamples = fNTotalSamples; | |
60 | // fData = new Int_t[fNTotalSamples]; | |
61 | fData = new Int_t[fNTotalSamples]; | |
62 | ||
63 | } | |
64 | ||
65 | AliHLTPHOSDigit::~AliHLTPHOSDigit() | |
66 | { | |
2374af72 | 67 | //See header file for documentation |
209a4703 | 68 | } |
69 | ||
70 | void | |
71 | AliHLTPHOSDigit::SetRawData(Int_t *dataPtr) | |
72 | { | |
2374af72 | 73 | // See header file for documentation |
209a4703 | 74 | //modified by PT |
75 | // for(Int_t i = 0; i < 70; i++) | |
76 | // { | |
77 | // fData[i] = dataPtr[i]; | |
78 | // } | |
79 | for(Int_t i = 0; i < fNTotalSamples; i++) | |
80 | { | |
81 | fData[i] = dataPtr[i]; | |
82 | } | |
83 | } | |
84 | ||
85 | ||
ab38011b | 86 | void |
87 | AliHLTPHOSDigit::ResetDigit() | |
88 | { | |
2374af72 | 89 | // See header file for documentation |
ab38011b | 90 | fZ = -1; |
91 | fX = -1; | |
92 | fAmplitude = -1; | |
93 | fTime = -1; | |
94 | fEnergy =-1; | |
95 | fGain = -1; | |
96 | fSamples = 55; | |
97 | fPreSamples =15; | |
98 | fTotalSamples =70; | |
99 | fDebugVar = -1; | |
100 | } |