]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSDigitDataStruct.h
- changing the digit format to now come as a linked list instead of an array
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSDigitDataStruct.h
1 //-*- Mode: C++ -*-
2 // $Id$
3
4
5 /**************************************************************************
6  * This file is property of and copyright by the ALICE HLT Project        *
7  * All rights reserved.                                                   *
8  *                                                                        *
9  * Primary Authors: Oystein Djuvsland                                     *
10  *                                                                        *
11  * Permission to use, copy, modify and distribute this software and its   *
12  * documentation strictly for non-commercial purposes is hereby granted   *
13  * without fee, provided that the above copyright notice appears in all   *
14  * copies and that both the copyright notice and this permission notice   *
15  * appear in the supporting documentation. The authors make no claims     *
16  * about the suitability of this software for any purpose. It is          *
17  * provided "as is" without express or implied warranty.                  *
18  **************************************************************************/
19
20 #ifndef ALIHLTPHOSDIGITDATASTRUCT_H
21 #define ALIHLTPHOSDIGITDATASTRUCT_H
22
23 #include "Rtypes.h"
24
25 /**
26  * Digit struct for PHOS HLT
27  *
28  * @file   AliHLTPHOSDigitDataStruct.h
29  * @author Oystein Djuvsland
30  * @date
31  * @brief  Digit struct for PHOS HLT
32  */
33
34 // see below for class documentation
35 // or
36 // refer to README to build package
37 // or
38 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
39
40 /**
41  * @struct AliHLTPHOSDigitHeaderStruct 
42  * Header used to pass digits around
43  * @ingroup alihlt_phos
44  */
45 struct AliHLTPHOSDigitHeaderStruct
46 {
47   /** Number of digits */
48   UInt_t fNDigits;
49
50   /** Start pointer */
51   Char_t *fStartPtr;
52   
53   /** The relative offset in bytes to the first digit in the list */
54   Int_t fFirstDigitOffset;
55
56   /** The relative offset in bytes to the last digit in the list */
57   Int_t fLastDigitOffset;
58       
59 };
60
61 /**
62  * @struct AliHLTPHOSDigitDataStruct
63  * Digit struct for PHOS HLT
64  *
65  * @ingroup alihlt_phos
66  */
67 struct AliHLTPHOSDigitDataStruct
68 {
69   /** The x coordinate */
70   Float_t fX;
71
72   /** The z coordinate */
73   Float_t fZ;
74
75   /** The local x coordinate */
76   Float_t fLocX;
77
78   /** The local z coordinate */
79   Float_t fLocZ;
80
81   /** The module number */
82   Int_t fModule;
83
84   /** The amplitude in ADC counts */
85   Float_t fAmplitude;
86
87   /** The time in sample count */ 
88   Float_t fTime;
89
90   /* The energy in GeV */
91   Float_t fEnergy;
92
93   /** The gain */
94   Int_t fGain;
95   
96   /** The crazyness */
97   Int_t fCrazyness; 
98
99   /** The baseline */
100   Float_t fBaseline;
101   
102   /** Relative offset in memory to next digit */
103   Int_t fMemOffsetNext;
104
105   /** Digit ID */
106   UInt_t fID;
107
108 };
109
110 #endif
111