]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSDigitDataStruct.h
completely re-worked TPC CA tracking code (Sergey/Ivan)
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSDigitDataStruct.h
1
2 /**************************************************************************
3  * This file is property of and copyright by the ALICE HLT Project        *
4  * All rights reserved.                                                   *
5  *                                                                        *
6  * Primary Authors: Oystein Djuvsland                                     *
7  *                                                                        *
8  * Permission to use, copy, modify and distribute this software and its   *
9  * documentation strictly for non-commercial purposes is hereby granted   *
10  * without fee, provided that the above copyright notice appears in all   *
11  * copies and that both the copyright notice and this permission notice   *
12  * appear in the supporting documentation. The authors make no claims     *
13  * about the suitability of this software for any purpose. It is          *
14  * provided "as is" without express or implied warranty.                  *
15  **************************************************************************/
16
17 #ifndef ALIHLTPHOSDIGITDATASTRUCT_H
18 #define ALIHLTPHOSDIGITDATASTRUCT_H
19
20 /**
21  * Digit struct for PHOS HLT
22  *
23  * @file   AliHLTPHOSDigitDataStruct.h
24  * @author Oystein Djuvsland
25  * @date
26  * @brief  Digit struct for PHOS HLT
27  */
28
29 // see below for class documentation
30 // or
31 // refer to README to build package
32 // or
33 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
34
35 #include "AliHLTPHOSBase.h"
36
37 /**
38  * @struct AliHLTPHOSDigitDataStruct
39  * Digit struct for PHOS HLT
40  *
41  * @ingroup alihlt_phos
42  */
43 struct AliHLTPHOSDigitDataStruct
44 {
45   /** The x coordinate */
46   Int_t fX;
47
48   /** The x coordinate */
49   Int_t fZ;
50
51   /** The module number */
52   Int_t fModule;
53
54   /** The amplitude in ADC counts */
55   Float_t fAmplitude;
56
57   /** The time in sample count */ 
58   Float_t fTime;
59
60   /* The energy in GeV */
61   Float_t fEnergy;
62
63   /** The gain */
64   Int_t fGain;
65   
66   /** The raw data */
67   Int_t fData[512];
68
69   /** The crazyness */
70   Int_t fCrazyness; 
71
72   /** The baseline */
73   Float_t fBaseline;
74
75   /** 
76    * Set the raw data 
77    * @param data is a pointer to the raw data 
78    */ 
79   void SetRawData(Int_t *data)
80   {
81     for(Int_t i = 0; i < 512; i++) //Fy på deg Øystein
82       {
83         fData[i] = data[i];
84       }
85   }
86 };
87
88 #endif
89