]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSDigit.cxx
blabalbal
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSDigit.cxx
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  **************************************************************************/
15
16 #include "AliHLTPHOSDigit.h"
17 #include "AliHLTPHOSAltroConfig.h"
18
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
34 ClassImp(AliHLTPHOSDigit);
35
36 AliHLTPHOSDigit::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 {
50   //See header file for documentation
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
60 AliHLTPHOSDigit::~AliHLTPHOSDigit()
61 {
62   //See header file for documentation
63 }
64
65 void 
66 AliHLTPHOSDigit::SetRawData(Int_t *dataPtr)
67 {
68   // See header file for documentation
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
81 void 
82 AliHLTPHOSDigit::ResetDigit()
83   {
84     // See header file for documentation
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   }