]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/AliHLTTPCClusterMCData.h
bugfix: output of one extra cluster when the last rawcluster was accepted by the...
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCClusterMCData.h
1 #ifndef _ALIHLTTPCCLUSTERMCDATA_H_
2 #define _ALIHLTTPCCLUSTERMCDATA_H_
3
4 //* This file is property of and copyright by the ALICE HLT Project        * 
5 //* ALICE Experiment at CERN, All rights reserved.                         *
6 //* See cxx source for full Copyright notice                               *
7
8 #include "AliHLTDataTypes.h"
9
10
11 /**
12  * @struct AliHLTTPCClusterMCWeight
13  * This in a struct for MC weights
14  * @ingroup alihlt_tpc
15  */
16 struct AliHLTTPCClusterMCWeight
17 {
18   //* constructor **/
19   AliHLTTPCClusterMCWeight(): fMCID(-1), fWeight(0)
20   {}
21
22   AliHLTInt32_t  fMCID;     // MC track ID
23   AliHLTFloat32_t fWeight; // weight of the track ID
24 };  
25
26 typedef struct AliHLTTPCClusterMCWeight AliHLTTPCClusterMCWeight;
27
28 /**
29  * @struct AliHLTTPCClusterMCLabel
30  * This in a struct for MC labels
31  * @ingroup alihlt_tpc
32  */
33 struct AliHLTTPCClusterMCLabel
34 {
35   AliHLTTPCClusterMCWeight fClusterID[3]; // three most relevant MC labels
36 };
37
38 typedef struct AliHLTTPCClusterMCLabel AliHLTTPCClusterMCLabel;
39
40
41 /**
42  * @struct AliHLTTPCClusterMCData
43  * This in a container for MC labels
44  * @ingroup alihlt_tpc
45  */
46 struct AliHLTTPCClusterMCData 
47 {
48   AliHLTUInt32_t fCount;
49 #if defined(__HP_aCC) || defined(__DECCXX) || defined(__SUNPRO_CC) || defined (__clang__)
50   AliHLTTPCClusterMCLabel fLabels[1];
51 #else
52   AliHLTTPCClusterMCLabel fLabels[];
53 #endif
54 };
55
56 typedef struct AliHLTTPCClusterMCData AliHLTTPCClusterMCData;
57
58 #endif