1 #ifndef ALIHLTMUONCONSTANTS_H
2 #define ALIHLTMUONCONSTANTS_H
3 /**************************************************************************
4 * This file is property of and copyright by the ALICE HLT Project *
5 * All rights reserved. *
8 * Indranil Das <indra.das@saha.ac.in> *
9 * Artur Szostak <artursz@iafrica.com> *
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 **************************************************************************/
23 * @file AliHLTMUONConstants.h
24 * @author Indranil Das <indra.das@saha.ac.in>,
25 * Artur Szostak <artursz@iafrica.com>
27 * @brief Class containing various dimuon HLT constants used in the system.
30 // Forward declare structures.
32 struct AliHLTComponentDataType;
33 struct AliHLTMUONTriggerRecordStruct;
34 struct AliHLTMUONTrigRecInfoStruct;
35 struct AliHLTMUONRecHitStruct;
36 struct AliHLTMUONChannelStruct;
37 struct AliHLTMUONClusterStruct;
38 struct AliHLTMUONMansoTrackStruct;
39 struct AliHLTMUONMansoRoIStruct;
40 struct AliHLTMUONMansoCandidateStruct;
41 struct AliHLTMUONTrackDecisionStruct;
42 struct AliHLTMUONPairDecisionStruct;
46 * AliHLTMUONConstants contains a list of global dimuon HLT specific constants
47 * and constant structures used in the system.
48 * Static methods are provided to access these values.
50 class AliHLTMUONConstants
54 static const AliHLTMUONTriggerRecordStruct& NilTriggerRecordStruct()
56 return fgkNilTriggerRecordStruct;
59 static const AliHLTMUONTrigRecInfoStruct& NilTrigRecInfoStruct()
61 return fgkNilTrigRecInfoStruct;
64 static const AliHLTMUONRecHitStruct& NilRecHitStruct()
66 return fgkNilRecHitStruct;
69 static const AliHLTMUONChannelStruct& NilChannelStruct()
71 return fgkNilChannelStruct;
74 static const AliHLTMUONClusterStruct& NilClusterStruct()
76 return fgkNilClusterStruct;
79 static const AliHLTMUONMansoTrackStruct& NilMansoTrackStruct()
81 return fgkNilMansoTrackStruct;
84 static const AliHLTMUONMansoRoIStruct& NilMansoRoIStruct()
86 return fgkNilMansoRoIStruct;
89 static const AliHLTMUONMansoCandidateStruct& NilMansoCandidateStruct()
91 return fgkNilMansoCandidateStruct;
94 static const AliHLTMUONTrackDecisionStruct& NilTrackDecisionStruct()
96 return fgkNilTrackDecisionStruct;
99 static const AliHLTMUONPairDecisionStruct& NilPairDecisionStruct()
101 return fgkNilPairDecisionStruct;
104 // Returns the raw data type for MUON DDLs. To figure out if the DDL format
105 // will be for a tracking DDL or trigger DDL one needs to also check the
106 // sepcification word of the input data block. If one of the first 20 least
107 // significant bits are set then it is a tracker DDL otherwise if it is
108 // the 21st or 22nd bit then it is from the muon trigger.
109 static const AliHLTComponentDataType& DDLRawDataType()
111 return fgkDDLRawDataType;
114 static const AliHLTComponentDataType& TriggerRecordsBlockDataType()
116 return fgkTriggerRecordsBlockDataType;
119 static const AliHLTComponentDataType& TrigRecsDebugBlockDataType()
121 return fgkTrigRecsDebugBlockDataType;
124 static const AliHLTComponentDataType& RecHitsBlockDataType()
126 return fgkRecHitsBlockDataType;
129 static const AliHLTComponentDataType& ClusterBlockDataType()
131 return fgkClusterBlockDataType;
134 static const AliHLTComponentDataType& ChannelBlockDataType()
136 return fgkChannelBlockDataType;
139 static const AliHLTComponentDataType& MansoTracksBlockDataType()
141 return fgkMansoTracksBlockDataType;
144 static const AliHLTComponentDataType& MansoCandidatesBlockDataType()
146 return fgkMansoCandidatesBlockDataType;
149 static const AliHLTComponentDataType& SinglesDecisionBlockDataType()
151 return fgkSinglesDecisionBlockDataType;
154 static const AliHLTComponentDataType& PairsDecisionBlockDataType()
156 return fgkPairsDecisionBlockDataType;
159 static const char* RecHitsSourceId()
161 return fgkRecHitsSourceId;
164 static const char* TriggerRecordsSourceId()
166 return fgkTriggerRecordsSourceId;
169 static const char* TracksSourceId()
171 return fgkTracksSourceId;
174 static const char* DigitPublisherId()
176 return fgkDigitPublisherId;
179 static const char* TriggerReconstructorId()
181 return fgkTriggerReconstructorId;
184 static const char* HitReconstructorId()
186 return fgkHitReconstructorId;
189 static const char* MansoTrackerFSMId()
191 return fgkMansoTrackerFSMId;
194 static const char* DecisionComponentId()
196 return fgkDecisionComponentId;
199 static const char* RootifierComponentId()
201 return fgkRootifierComponentId;
204 static const char* EmptyEventFilterComponentId()
206 return fgkEmptyEventFilterComponentId;
209 static const char* DataCheckerComponentId()
211 return fgkDataCheckerComponentId;
214 static const char* HitReconstructorCDBPath()
216 return fgkHitReconstructorCDBPath;
219 static const char* MansoTrackerFSMCDBPath()
221 return fgkMansoTrackerFSMCDBPath;
224 static const char* DecisionComponentCDBPath()
226 return fgkDecisionComponentCDBPath;
231 // Should never have to create, destroy or copy this object.
232 AliHLTMUONConstants();
233 AliHLTMUONConstants(const AliHLTMUONConstants& obj);
234 ~AliHLTMUONConstants();
235 AliHLTMUONConstants& operator = (const AliHLTMUONConstants& obj);
237 // The following are null/nil structures that can also be used as sentinels:
238 static const AliHLTMUONTriggerRecordStruct fgkNilTriggerRecordStruct; // Nil trigger record.
239 static const AliHLTMUONTrigRecInfoStruct fgkNilTrigRecInfoStruct; // Nil trigger record debug information.
240 static const AliHLTMUONRecHitStruct fgkNilRecHitStruct; // Nil reconstructed hit.
241 static const AliHLTMUONChannelStruct fgkNilChannelStruct; // Nil tracking chamber channel.
242 static const AliHLTMUONClusterStruct fgkNilClusterStruct; // Nil tracking chamber cluster.
243 static const AliHLTMUONMansoTrackStruct fgkNilMansoTrackStruct; // Nil manso track.
244 static const AliHLTMUONMansoRoIStruct fgkNilMansoRoIStruct; // Nil manso region of interest.
245 static const AliHLTMUONMansoCandidateStruct fgkNilMansoCandidateStruct; // Nil manso candidate track.
246 static const AliHLTMUONTrackDecisionStruct fgkNilTrackDecisionStruct; // Nil decision for single track.
247 static const AliHLTMUONPairDecisionStruct fgkNilPairDecisionStruct; // Nil decision for track pair.
249 // HLT component input and output data block types:
250 static const AliHLTComponentDataType fgkDDLRawDataType; // DDL packed data block type from dimuon spectrometer.
251 static const AliHLTComponentDataType fgkTriggerRecordsBlockDataType; // Trigger records block type generated by trigger DDL translation components.
252 static const AliHLTComponentDataType fgkTrigRecsDebugBlockDataType; // Debugging information block type generated by trigger DDL translation components.
253 static const AliHLTComponentDataType fgkRecHitsBlockDataType; // Reconstructed hits block type generated by hit reconstruction components.
254 static const AliHLTComponentDataType fgkClusterBlockDataType; // Debugging information block type for reconstructed hit clusters.
255 static const AliHLTComponentDataType fgkChannelBlockDataType; // Debugging information block type for channels corresponding to clusters.
256 static const AliHLTComponentDataType fgkMansoTracksBlockDataType; // Manso tracks block type generated by Manso tracker components.
257 static const AliHLTComponentDataType fgkMansoCandidatesBlockDataType; // Debugging information about a track candidate generated by the Manso algorithm.
258 static const AliHLTComponentDataType fgkSinglesDecisionBlockDataType; // Trigger decision block type for single track decisions.
259 static const AliHLTComponentDataType fgkPairsDecisionBlockDataType; // Trigger decision block type for pairs of particles.
261 // Component ID names:
262 static const char* fgkRecHitsSourceId; // Name of source component for reconstructed hits for debugging.
263 static const char* fgkTriggerRecordsSourceId; // Name of source component for trigger records for debugging.
264 static const char* fgkTracksSourceId; // Name of source component for tracks for debugging.
265 static const char* fgkDigitPublisherId; // Component name for publishing DDL streams from digits.
266 static const char* fgkTriggerReconstructorId; // Trigger record reconstructor component name.
267 static const char* fgkHitReconstructorId; // Centre of gravity cluster finder component name.
268 static const char* fgkMansoTrackerFSMId; // Manso tracker FSM implementation component name.
269 static const char* fgkDecisionComponentId; // dHLT decision component name.
270 static const char* fgkRootifierComponentId; // The name of the event filter debugging component.
271 static const char* fgkEmptyEventFilterComponentId; // The name of the event filter debugging component.
272 static const char* fgkDataCheckerComponentId; // Name of data checking component for debugging.
274 // CDB path entries to configuration information.
275 static const char* fgkHitReconstructorCDBPath; // Path to CDB entry for the hit reconstruction component.
276 static const char* fgkMansoTrackerFSMCDBPath; // Path to CDB entry for the Manso FSM tracker component.
277 static const char* fgkDecisionComponentCDBPath; // Path to CDB entry for trigger decision component.
280 #endif // ALIHLTMUONCONSTANTS_H