]>
Commit | Line | Data |
---|---|---|
71d7c760 | 1 | // $Id$ |
2 | ||
3 | /************************************************************************** | |
9be2600f | 4 | * This file is property of and copyright by the ALICE HLT Project * |
5 | * ALICE Experiment at CERN, All rights reserved. * | |
71d7c760 | 6 | * * |
9be2600f | 7 | * Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> * |
8 | * Timm Steinbeck <timm@kip.uni-heidelberg.de> * | |
9 | * for The ALICE HLT Project. * | |
71d7c760 | 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 | /////////////////////////////////////////////////////////////////////////////// | |
21 | // // | |
22 | // Definitions for the HLT TPC components // | |
23 | // // | |
24 | /////////////////////////////////////////////////////////////////////////////// | |
25 | ||
26 | #include "AliHLTTPCDefinitions.h" | |
27 | ||
28 | ||
96bda103 | 29 | /** ROOT macro for the implementation of ROOT specific class methods */ |
71d7c760 | 30 | ClassImp(AliHLTTPCDefinitions) |
31 | ||
e5c0542d | 32 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkDDLPackedRawDataType = AliHLTComponentDataTypeInitializer("DDL_RWPK", kAliHLTDataOriginTPC); |
33 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkDDLEncodedEntropyRawDataType = AliHLTComponentDataTypeInitializer("DDLENCEN", kAliHLTDataOriginTPC); | |
69347e0d | 34 | |
e5c0542d | 35 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkPackedRawDataType = AliHLTComponentDataTypeInitializer("RAWPAKED", kAliHLTDataOriginTPC); |
36 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkUnpackedRawDataType = AliHLTComponentDataTypeInitializer("RAWUNPAK", kAliHLTDataOriginTPC); | |
37 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkClustersDataType = AliHLTComponentDataTypeInitializer("CLUSTERS", kAliHLTDataOriginTPC); | |
6af4f584 | 38 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkHWClustersDataType = AliHLTComponentDataTypeInitializer("HWCLUST1", kAliHLTDataOriginTPC); |
491d6af5 | 39 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkAlterClustersDataType = AliHLTComponentDataTypeInitializer("HWCL_ALT", kAliHLTDataOriginTPC); |
e5c0542d | 40 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkVertexDataType = AliHLTComponentDataTypeInitializer("VERTEX ", kAliHLTDataOriginTPC); |
41 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkTrackSegmentsDataType = AliHLTComponentDataTypeInitializer("TRAKSEGS", kAliHLTDataOriginTPC); | |
42 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkTracksDataType = AliHLTComponentDataTypeInitializer("TRACKS ", kAliHLTDataOriginTPC); | |
ff2f0f94 | 43 | |
e5c0542d | 44 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkClusterTracksModelDataType = AliHLTComponentDataTypeInitializer("CLSTRKMD", kAliHLTDataOriginTPC); |
45 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkRemainingClustersModelDataType = AliHLTComponentDataTypeInitializer("REMCLSMD", kAliHLTDataOriginTPC); | |
46 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkClusterTracksCompressedDataType = AliHLTComponentDataTypeInitializer("CLSTRKCM", kAliHLTDataOriginTPC); | |
47 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkRemainingClustersCompressedDataType = AliHLTComponentDataTypeInitializer("REMCLSCM", kAliHLTDataOriginTPC); | |
69347e0d | 48 | |
e5c0542d | 49 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkCalibPedestalDataType = AliHLTComponentDataTypeInitializer("CAL_PED ", kAliHLTDataOriginTPC); |
50 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkCalibPulserDataType = AliHLTComponentDataTypeInitializer("CAL_PULS", kAliHLTDataOriginTPC); | |
51 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkCalibCEDataType = AliHLTComponentDataTypeInitializer("CAL_CE ", kAliHLTDataOriginTPC); | |
02d01bbf | 52 | |
e5c0542d | 53 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkOfflineCalibAlignDataType = AliHLTComponentDataTypeInitializer("CALALIGN", kAliHLTDataOriginTPC); |
e642ae99 | 54 | |
e5c0542d | 55 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkOfflineCalibTracksDataType = AliHLTComponentDataTypeInitializer("CALTRACK", kAliHLTDataOriginTPC); |
e642ae99 | 56 | |
e5c0542d | 57 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkOfflineCalibTracksGainDataType = AliHLTComponentDataTypeInitializer("CALGAIN ", kAliHLTDataOriginTPC); |
e642ae99 | 58 | |
deba5d85 | 59 | const AliHLTComponentDataType AliHLTTPCDefinitions::fgkAliHLTDataTypeClusterMCInfo = AliHLTComponentDataTypeInitializer("CLMCINFO", kAliHLTDataOriginTPC); |
60 | ||
e642ae99 | 61 | |
2a083ac4 | 62 | AliHLTTPCDefinitions::AliHLTTPCDefinitions() |
63 | { | |
96bda103 | 64 | // see header file for class documentation |
65 | // or | |
66 | // refer to README to build package | |
67 | // or | |
68 | // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt | |
2a083ac4 | 69 | } |
70 | ||
71 | AliHLTTPCDefinitions::~AliHLTTPCDefinitions() | |
72 | { | |
96bda103 | 73 | // see header file for class documentation |
2a083ac4 | 74 | } |
75 | ||
625b072f | 76 | bool AliHLTTPCDefinitions::DDLIdToSlicePatch(AliHLTInt32_t ddlid, AliHLTUInt8_t& slice, AliHLTUInt8_t& patch) |
77 | { | |
78 | // Convert DDL ID to patch and slice numbers. | |
79 | ||
80 | if ((AliHLTUInt32_t(ddlid) >> 8) != 0x3) return false; // Check that detector is TPC. | |
81 | AliHLTUInt32_t ddl = (AliHLTUInt32_t(ddlid) & 0xFF); | |
82 | if (ddl > 215) return false; | |
83 | if (ddl < 72) | |
84 | { | |
85 | slice = ddl / 2; | |
86 | patch = ddl % 2; | |
87 | } | |
88 | else | |
89 | { | |
90 | ddl -= 72; | |
91 | slice = ddl / 4; | |
92 | patch = ddl % 4 + 2; | |
93 | } | |
94 | return true; | |
95 | } | |
71d7c760 | 96 |