]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/AliHLTTPCClusterMCData.h
Test for Coverity
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCClusterMCData.h
CommitLineData
d29671e2 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 */
16struct AliHLTTPCClusterMCWeight
17{
25080052 18 //* constructor **/
19 AliHLTTPCClusterMCWeight(): fMCID(-1), fWeight(0)
20 {}
21
d29671e2 22 AliHLTInt32_t fMCID; // MC track ID
23 AliHLTFloat32_t fWeight; // weight of the track ID
24};
25
26typedef struct AliHLTTPCClusterMCWeight AliHLTTPCClusterMCWeight;
27
28/**
29 * @struct AliHLTTPCClusterMCLabel
30 * This in a struct for MC labels
31 * @ingroup alihlt_tpc
32 */
33struct AliHLTTPCClusterMCLabel
34{
35 AliHLTTPCClusterMCWeight fClusterID[3]; // three most relevant MC labels
36};
37
38typedef struct AliHLTTPCClusterMCLabel AliHLTTPCClusterMCLabel;
39
40
41/**
42 * @struct AliHLTTPCClusterMCData
43 * This in a container for MC labels
44 * @ingroup alihlt_tpc
45 */
46struct AliHLTTPCClusterMCData
47{
48 AliHLTUInt32_t fCount;
14339716 49#if defined(__HP_aCC) || defined(__DECCXX) || defined(__SUNPRO_CC) || defined (__clang__)
d29671e2 50 AliHLTTPCClusterMCLabel fLabels[1];
51#else
52 AliHLTTPCClusterMCLabel fLabels[];
53#endif
54};
55
56typedef struct AliHLTTPCClusterMCData AliHLTTPCClusterMCData;
57
58#endif