Coverity
[u/mrichter/AliRoot.git] / EVE / hlt-macros / hlt_structs.C
1 // $Id$
2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3
4 /**************************************************************************
5  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
7  * full copyright notice.                                                 *
8  **************************************************************************/
9
10 #include <Rtypes.h>
11 #include "TEveElement.h"
12 #include "TPolyMarker3D.h"
13 #include "AliPID.h"
14
15 // --------------------------------------------------------------------
16 // --                             ITS                                --
17 // --------------------------------------------------------------------
18
19 // --------------------------------------------------------------------
20 struct AliHLTITSSpacePointData {
21   Float_t fY;         // Y coordinate in local coordinates  GetY()
22   Float_t fZ;         // Z coordinate in local coordinates  GetZ()
23   Float_t fSigmaY2;   // error  of the clusters             GetSigmaY2()
24   Float_t fSigmaZ2;   // error  of the clusters             GetSigmaZ2()
25   Float_t fSigmaYZ;   // error  of the clusters             GetSigmaYZ()
26   Float_t fQ;         // Q of cluster (in ADC counts)       GetQ()
27   Int_t fNy;          //number of digits in Y direction     GetNy()
28   Int_t fNz;          //number of digits in Z direction     GetNz()
29   Int_t fLayer;       // layer number                       GetLayer()
30   Int_t fTracks[3];   // MC label                           GetLabel(i)
31   Int_t fIndex;       // Detector Index                     GetDetectorIndex()
32 };
33
34 // --------------------------------------------------------------------
35 struct AliHLTITSClusterData {
36   Int_t fSpacePointCnt;
37   AliHLTITSSpacePointData fSpacePoints[1];
38 };
39
40 // --------------------------------------------------------------------
41 // --                             TPC                                --
42 // --------------------------------------------------------------------
43
44 // --------------------------------------------------------------------
45 struct AliHLTTPCSpacePointData {
46   Float_t fX;       // == fPadRow in local system
47   Float_t fY;
48   Float_t fZ;
49   UInt_t fID;       //contains slice patch and number
50   UChar_t fPadRow;
51   Float_t fSigmaY2; //error (former width) of the clusters
52   Float_t fSigmaZ2; //error (former width) of the clusters
53   UInt_t fCharge;
54   UInt_t fQMax;     // QMax of cluster
55   Bool_t fUsed;     // only used in AliHLTTPCDisplay
56   Int_t fTrackN;    // only used in AliHLTTPCDisplay
57 };
58
59 // --------------------------------------------------------------------
60 struct AliHLTTPCClusterData {
61   Int_t fSpacePointCnt;
62   AliHLTTPCSpacePointData fSpacePoints[1];
63 };
64
65 // --------------------------------------------------------------------
66 // --                            PHOS                                --
67 // --------------------------------------------------------------------
68
69 // struct AliHLTCaloClusterDataStruct
70 // {
71
72 //   UInt_t fNCells;                                //COMMENT
73 //   Float_t fGlobalPos[3];                      //COMMENT
74 //   Float_t fEnergy;                            //COMMENT
75 //   Float_t fTOF;                               //COMMENT
76 //   Float_t fDispersion;                        //COMMENT
77 //   Float_t fFitQuality;                        //COMMENT
78 //   Float_t fM20;                               //COMMENT
79 //   Float_t fM02;                               //COMMENT
80 //   Float_t fEmcCpvDistance;                    //COMMENT
81 //   Float_t fDistToBadChannel;                  //COMMENT
82 //   Float_t fPID[AliPID::kSPECIESN];            //COMMENT
83 //   Int_t fID;                                     //COMMENT
84 //   UChar_t fNExMax;                               //COMMENT 
85 //   Char_t fClusterType;                           //COMMENT
86 //   Float_t fDistanceToBadChannel;              //COMMENT
87 //   UShort_t fCellsAbsId;                      //COMMENT
88 //   Float_t fCellsAmpFraction;              //COMMENT
89 // };
90
91 // struct AliHLTCaloClusterHeaderStruct
92 // {
93 //   Short_t fNClusters;
94 // };
95
96 // --------------------------------------------------------------------
97 // struct AliHLTPHOSDigitDataStruct {
98 //   /** The x coordinate */
99 //   Float_t fX;
100
101 //   /** The x coordinate */
102 //   Float_t fZ;
103
104 //   /** The module number */
105 //   Int_t fModule;
106
107 //   /** The amplitude in ADC counts */
108 //   Float_t fAmplitude;
109
110 //   /** The time in sample count */ 
111 //   Float_t fTime;
112
113 //   /* The energy in GeV */
114 //   Float_t fEnergy;
115
116 //   /** The gain */
117 //   Int_t fGain;
118   
119 //   /** The crazyness */
120 //   Int_t fCrazyness; 
121
122 //   /**  The baseline */
123 //   Float_t fBaseline;
124
125 // };
126
127 // --------------------------------------------------------------------
128 // --                            MUON                                --
129 // --------------------------------------------------------------------
130
131 // --------------------------------------------------------------------
132 struct AliHLTMUONTrackerRawData {
133   UInt_t fDataId;
134   UShort_t fADC;
135 };
136
137 // --------------------------------------------------------------------
138 struct AliHLTMUONTrackerMappingData {
139   Int_t fDetElemId;
140   Int_t fIX,fIY;
141   Int_t fCath;
142   Float_t fRealX,fRealY,fRealZ;
143   Int_t fADC;
144   Float_t fPed;
145   Float_t fSigma;
146 };
147
148 // --------------------------------------------------------------------
149 struct AliHLTMUONTriggerPointData {
150   Int_t fDetElemId;
151   Float_t fX,fY,fZ ;
152 };
153
154 // --------------------------------------------------------------------
155 struct AliHLTMUONTriggerMappingData {
156   AliHLTMUONTriggerPointData fLut[8][16][4][2][16];
157 };
158
159 // --------------------------------------------------------------------
160 // --                            STRUCT                              --
161 // --------------------------------------------------------------------
162
163 // --------------------------------------------------------------------
164 void hlt_structs() {}