]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSDigit.cxx
completely re-worked TPC CA tracking code (Sergey/Ivan)
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSDigit.cxx
CommitLineData
2374af72 1/**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * All rights reserved. *
4 * *
5 * Primary Authors: Oystein Djuvsland *
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 **************************************************************************/
209a4703 15
16#include "AliHLTPHOSDigit.h"
17#include "AliHLTPHOSAltroConfig.h"
18
2374af72 19/**
20 * Digit class for PHOS HLT
21 *
22 * @file AliHLTPHOSDigit.cxx
23 * @author Oystein Djuvsland
24 * @date
25 * @brief Digit class for PHOS HLT
26 */
27
28// see header file for class documentation
29// or
30// refer to README to build package
31// or
32// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
33
209a4703 34ClassImp(AliHLTPHOSDigit);
35
36AliHLTPHOSDigit::AliHLTPHOSDigit() :
37 TObject(),
38 AliHLTPHOSBase(),
39 fX(-1),
40 fZ(-1),
41 fAmplitude(-1),
42 fTime(-1),
43 fEnergy(-1),
44 fGain(-1),
45 fSamples(55),
46 fPreSamples(15),
47 fTotalSamples(70),
48 fDebugVar(-1)
49{
2374af72 50 //See header file for documentation
209a4703 51 //added by PT
52 fSamples = fNSamples;
53 fPreSamples = fNPresamples;
54 fTotalSamples = fNTotalSamples;
55 // fData = new Int_t[fNTotalSamples];
56 fData = new Int_t[fNTotalSamples];
57
58}
59
60AliHLTPHOSDigit::~AliHLTPHOSDigit()
61{
2374af72 62 //See header file for documentation
209a4703 63}
64
65void
66AliHLTPHOSDigit::SetRawData(Int_t *dataPtr)
67{
2374af72 68 // See header file for documentation
209a4703 69 //modified by PT
70 // for(Int_t i = 0; i < 70; i++)
71 // {
72 // fData[i] = dataPtr[i];
73 // }
74 for(Int_t i = 0; i < fNTotalSamples; i++)
75 {
76 fData[i] = dataPtr[i];
77 }
78}
79
80
ab38011b 81void
82AliHLTPHOSDigit::ResetDigit()
83 {
2374af72 84 // See header file for documentation
ab38011b 85 fZ = -1;
86 fX = -1;
87 fAmplitude = -1;
88 fTime = -1;
89 fEnergy =-1;
90 fGain = -1;
91 fSamples = 55;
92 fPreSamples =15;
93 fTotalSamples =70;
94 fDebugVar = -1;
95 }