Error message removed when data is posted by other than the owner.
[u/mrichter/AliRoot.git] / MUON / AliMUONDigitMaker.cxx
CommitLineData
a3283a4c 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
3d1463c8 16// $Id$
17
18//-----------------------------------------------------------------------------
9265505b 19/// \class AliMUONDigitMaker
8c51a32f 20/// MUON Digit maker from rawdata.
a3283a4c 21///
22/// Raw2Digits:
23/// Using real mapping for tracker
24/// Indranil Das (Adapted for runloader: Ch. Finck) july 05
8c51a32f 25///
26/// Implemented non-constant buspatch numbers for tracking
27/// with correct DDL id.
28/// (Ch. Finck, dec 05)
29///
a3283a4c 30/// Add reader for scaler trigger events
31/// Use memcpy instead of assignment elt by elt
32/// (Ch. Finck, Jan 06)
8c51a32f 33///
34/// Using new interface with AliMUONRawStreamTracker(Trigger)
35/// (New interface of AliMUONRawReader class)
36/// (further details could be found in Alice-note)
37/// (Ch. Finck, March 06)
38///
39/// Add (S)Digit maker tracker (for free)
40/// and for trigger. Create trigger inverse mapping.
78649106 41///
42/// \author Ch. Finck, oct 06
3d1463c8 43//-----------------------------------------------------------------------------
a3283a4c 44
a3283a4c 45#include "AliMUONDigitMaker.h"
a3283a4c 46
a3283a4c 47#include "AliMUONDDLTrigger.h"
48#include "AliMUONDarcHeader.h"
40e382ae 49#include "AliMUONVDigit.h"
50#include "AliMUONVDigitStore.h"
51#include "AliMUONGlobalTrigger.h"
a3283a4c 52#include "AliMUONLocalStruct.h"
a3283a4c 53#include "AliMUONLocalTrigger.h"
0145e89a 54#include "AliMUONLogger.h"
40e382ae 55#include "AliMUONRawStreamTracker.h"
e3a2b9c9 56#include "AliMUONRawStreamTrackerHP.h"
40e382ae 57#include "AliMUONRawStreamTrigger.h"
481d8064 58#include "AliMUONRawStreamTriggerHP.h"
40e382ae 59#include "AliMUONRegHeader.h"
e1a10d41 60#include "AliMUONTriggerCircuit.h"
be63c782 61#include "AliMUONVTriggerStore.h"
62#include "AliMpDetElement.h"
d9b1ecb0 63#include "AliMpTriggerCrate.h"
64#include "AliMpLocalBoard.h"
40e382ae 65#include "AliMpCathodType.h"
66#include "AliMpDDLStore.h"
67#include "AliMpDEManager.h"
68#include "AliMpPad.h"
9265505b 69#include "AliMpSegmentation.h"
a3283a4c 70#include "AliMpVSegmentation.h"
be63c782 71#include "AliCodeTimer.h"
72#include "AliLog.h"
9265505b 73#include "AliRawReader.h"
7771752e 74#include <TArrayS.h>
9265505b 75
9265505b 76/// \cond CLASSIMP
a3283a4c 77ClassImp(AliMUONDigitMaker) // Class implementation in ROOT context
9265505b 78/// \endcond
79
a3283a4c 80//__________________________________________________________________________
481d8064 81AliMUONDigitMaker::AliMUONDigitMaker(
82 Bool_t enableErrorLogger,
83 Bool_t useFastTrackerDecoder, Bool_t useFastTriggerDecoder
84 ) :
85 TObject(),
9f5dcca3 86 fScalerEvent(kFALSE),
40e382ae 87 fMakeTriggerDigits(kFALSE),
e3a2b9c9 88 fRawStreamTracker(NULL),
481d8064 89 fRawStreamTrigger(NULL),
40e382ae 90 fDigitStore(0x0),
0145e89a 91 fTriggerStore(0x0),
92 fLogger(new AliMUONLogger(10000))
a3283a4c 93{
40e382ae 94 /// ctor
a3283a4c 95
96 AliDebug(1,"");
e3a2b9c9 97
481d8064 98 CreateRawStreamTracker(useFastTrackerDecoder);
99 CreateRawStreamTrigger(useFastTriggerDecoder);
a3283a4c 100
101 // Standard Constructor
3c7f5307 102 if (enableErrorLogger) {
103 fRawStreamTracker->EnabbleErrorLogger();
104 fRawStreamTrigger->EnabbleErrorLogger();
105 }
a3283a4c 106
40e382ae 107 SetMakeTriggerDigits();
a3283a4c 108
109}
110
111//__________________________________________________________________________
9f5dcca3 112AliMUONDigitMaker::~AliMUONDigitMaker()
a3283a4c 113{
9265505b 114 /// clean up
115 /// and time processing measure
116
a3283a4c 117 delete fRawStreamTracker;
118 delete fRawStreamTrigger;
0145e89a 119 delete fLogger;
a3283a4c 120}
121
d61f56df 122//__________________________________________________________________________
123void AliMUONDigitMaker::CreateRawStreamTracker(Bool_t useFastDecoder)
124{
125/// Create raw stream tracker according to the passed option
126
127 if (useFastDecoder)
128 {
d61f56df 129 fRawStreamTracker = new AliMUONRawStreamTrackerHP();
130 }
5f3519d9 131 else {
132 AliInfo("Using non-high performance tracker decoder.");
d61f56df 133 fRawStreamTracker = new AliMUONRawStreamTracker();
5f3519d9 134 }
481d8064 135}
136
137//__________________________________________________________________________
138void AliMUONDigitMaker::CreateRawStreamTrigger(Bool_t useFastDecoder)
139{
140/// Create raw stream trigger according to the passed option
141
142 if (useFastDecoder)
143 {
481d8064 144 fRawStreamTrigger = new AliMUONRawStreamTriggerHP();
145 }
5f3519d9 146 else {
147 AliInfo("Using non-high performance tracker decoder.");
481d8064 148 fRawStreamTrigger = new AliMUONRawStreamTrigger();
5f3519d9 149 }
481d8064 150}
d61f56df 151
a3283a4c 152//____________________________________________________________________
be63c782 153void
154AliMUONDigitMaker::Print(Option_t*) const
155{
156 /// Printout
157
158 cout << "RawStreamerTracker class=" << fRawStreamTracker->ClassName()
159 << " MakeTriggerDigits=" << fMakeTriggerDigits
160 << " ScalerEvent=" << fScalerEvent
161 << " DigitStore=" << fDigitStore
162 << " TriggerStore=" << fTriggerStore << endl;
163
164 if ( fLogger ) fLogger->Print();
165}
166
167//____________________________________________________________________
168Int_t
169AliMUONDigitMaker::Raw2Digits(AliRawReader* rawReader,
170 AliMUONVDigitStore* digitStore,
171 AliMUONVTriggerStore* triggerStore)
a3283a4c 172{
9265505b 173 /// Main method to creates digit
174 /// for tracker
175 /// and trigger
a3283a4c 176
40e382ae 177 AliDebug(1,Form("rawReader=%p digitStore=%p triggerStore=%p",
178 rawReader,digitStore,triggerStore));
179
180 fDigitStore = digitStore;
181 fTriggerStore = triggerStore;
182
183 if (!fDigitStore && !fTriggerStore)
184 {
0145e89a 185 fLogger->Log("No digit or trigger store given. Nothing to do...");
be63c782 186 return kTriggerBAD & kTrackerBAD;
40e382ae 187 }
188
be63c782 189 Int_t tracker(kOK);
190 Int_t trigger(kOK);
191
40e382ae 192 if ( fDigitStore )
193 {
194 fDigitStore->Clear(); // insure we start with an empty container
be63c782 195 tracker = ReadTrackerDDL(rawReader);
40e382ae 196 }
197
198 if ( fTriggerStore || fMakeTriggerDigits )
199 {
200 if ( fTriggerStore ) fTriggerStore->Clear();
201 if ( fMakeTriggerDigits && !fDigitStore )
202 {
0145e89a 203 fLogger->Log("Asking for trigger digits but digitStore is null");
40e382ae 204 }
205 else
206 {
be63c782 207 trigger = ReadTriggerDDL(rawReader);
40e382ae 208 }
209 }
210
be63c782 211 return tracker | trigger;
a3283a4c 212}
213
214//____________________________________________________________________
be63c782 215Int_t
216AliMUONDigitMaker::ReadTrackerDDL(AliRawReader* rawReader)
a3283a4c 217{
40e382ae 218 /// Reading tracker DDL
219 /// filling the fDigitStore container, which must not be null
a3283a4c 220
40e382ae 221 AliDebug(1,"");
222
0145e89a 223 AliCodeTimerAuto("");
a3283a4c 224
225 // elex info
226 Int_t buspatchId;
227 UChar_t channelId;
228 UShort_t manuId;
a3283a4c 229 UShort_t charge;
a3283a4c 230
a3283a4c 231 fRawStreamTracker->SetReader(rawReader);
1bc885f3 232 fRawStreamTracker->First();
233
234 while ( fRawStreamTracker->Next(buspatchId,manuId,channelId,charge) )
235 {
40e382ae 236 // getting DE from buspatch
237 Int_t detElemId = AliMpDDLStore::Instance()->GetDEfromBus(buspatchId);
a3283a4c 238
be63c782 239 AliMpDetElement* de = AliMpDDLStore::Instance()->GetDetElement(detElemId);
240
241 if (!de)
242 {
243 fLogger->Log(Form("DE %04d does not exist !"));
244 continue;
245 }
246
247 if (!de->IsConnectedChannel(manuId,channelId))
248 {
249 // non connected pad, do nothing (this is not an error !)
250 continue;
251 }
252
40e382ae 253 const AliMpVSegmentation* seg
254 = AliMpSegmentation::Instance()->GetMpSegmentationByElectronics(detElemId,
255 manuId);
a3283a4c 256
0145e89a 257 if (!seg)
258 {
259 fLogger->Log(Form("(DE,MANUID)=(%04d,%04d) is not valid",detElemId,manuId));
260 continue;
261 }
262
be63c782 263 AliMp::CathodType cathodeType = de->GetCathodType(seg->PlaneType());
1bc885f3 264
40e382ae 265 AliMpPad pad = seg->PadByLocation(AliMpIntPair(manuId,channelId),kFALSE);
be63c782 266
40e382ae 267 if (!pad.IsValid())
268 {
0145e89a 269 fLogger->Log(Form("No pad for detElemId: %d, manuId: %d, channelId: %d",
40e382ae 270 detElemId, manuId, channelId));
271 continue;
272 }
be63c782 273
40e382ae 274 AliMUONVDigit* digit = fDigitStore->Add(detElemId,manuId,channelId,cathodeType,
275 AliMUONVDigitStore::kDeny);
be63c782 276
40e382ae 277 if (!digit)
278 {
0145e89a 279 fLogger->Log(Form("Digit DE %04d Manu %04d Channel %02d could not be added",
40e382ae 280 detElemId, manuId, channelId));
281 continue;
282 }
283
284 digit->SetPadXY(pad.GetIndices().GetFirst(),
285 pad.GetIndices().GetSecond());
286
287 digit->SetADC(charge);
9265505b 288
40e382ae 289 }
a3283a4c 290
be63c782 291 if ( fRawStreamTracker->IsErrorMessage() )
292 {
293 return kTrackerBAD;
294 }
295
296 return kOK;
a3283a4c 297}
298
299//____________________________________________________________________
be63c782 300Int_t
301AliMUONDigitMaker::ReadTriggerDDL(AliRawReader* rawReader)
a3283a4c 302{
9265505b 303 /// reading tracker DDL
40e382ae 304 /// filling the fTriggerStore container, which must not be null
a3283a4c 305
40e382ae 306 AliDebug(1,"");
307
a3283a4c 308 AliMUONDDLTrigger* ddlTrigger = 0x0;
309 AliMUONDarcHeader* darcHeader = 0x0;
310 AliMUONRegHeader* regHeader = 0x0;
311 AliMUONLocalStruct* localStruct = 0x0;
312
313 Int_t loCircuit;
d2d759cf 314
0145e89a 315 AliCodeTimerAuto("");
481d8064 316
317 if (UsingFastTriggerDecoder()) return ReadTriggerDDLFast(rawReader);
a3283a4c 318
319 fRawStreamTrigger->SetReader(rawReader);
320
40e382ae 321 while (fRawStreamTrigger->NextDDL())
322 {
a3283a4c 323 ddlTrigger = fRawStreamTrigger->GetDDLTrigger();
324 darcHeader = ddlTrigger->GetDarcHeader();
40e382ae 325
326 // fill global trigger information
327 if (fTriggerStore)
328 {
329 if (darcHeader->GetGlobalFlag())
330 {
331 AliMUONGlobalTrigger globalTrigger;
332 globalTrigger.SetFromGlobalResponse(darcHeader->GetGlobalOutput());
333 fTriggerStore->SetGlobal(globalTrigger);
d2d759cf 334 }
a3283a4c 335 }
40e382ae 336
a3283a4c 337 Int_t nReg = darcHeader->GetRegHeaderEntries();
40e382ae 338
339 for(Int_t iReg = 0; iReg < nReg ;iReg++)
340 { //reg loop
341
d9b1ecb0 342
343 // crate info
344 AliMpTriggerCrate* crate = AliMpDDLStore::Instance()->
345 GetTriggerCrate(fRawStreamTrigger->GetDDL(), iReg);
40e382ae 346
d53fb0de 347 if (!crate)
0145e89a 348 fLogger->Log(Form("Missing crate number %d in DDL %d\n", iReg, fRawStreamTrigger->GetDDL()));
d9b1ecb0 349
40e382ae 350
a3283a4c 351 regHeader = darcHeader->GetRegHeaderEntry(iReg);
40e382ae 352
a3283a4c 353 Int_t nLocal = regHeader->GetLocalEntries();
40e382ae 354 for(Int_t iLocal = 0; iLocal < nLocal; iLocal++)
355 {
356
357 localStruct = regHeader->GetLocalEntry(iLocal);
358
359 // if card exist
360 if (localStruct) {
361
d9b1ecb0 362 loCircuit = crate->GetLocalBoardId(localStruct->GetId());
363
364 if ( !loCircuit ) continue; // empty slot
365
366 AliMpLocalBoard* localBoard = AliMpDDLStore::Instance()->GetLocalBoard(loCircuit, false);
367
368 // skip copy cards
369 if( !localBoard->IsNotified())
370 continue;
40e382ae 371
372 if (fTriggerStore)
373 {
374 // fill local trigger
375 AliMUONLocalTrigger localTrigger;
376 localTrigger.SetLocalStruct(loCircuit, *localStruct);
377 fTriggerStore->Add(localTrigger);
378 }
379
380 if ( fMakeTriggerDigits )
381 {
382 //FIXEME should find something better than a TArray
383 TArrayS xyPattern[2];
40e382ae 384
d9b1ecb0 385 localStruct->GetXPattern(xyPattern[0]);
386 localStruct->GetYPattern(xyPattern[1]);
40e382ae 387
388 TriggerDigits(loCircuit, xyPattern, *fDigitStore);
389 }
390 } // if triggerY
a3283a4c 391 } // iLocal
392 } // iReg
393 } // NextDDL
40e382ae 394
be63c782 395 return kOK;
a3283a4c 396}
7771752e 397
d2d759cf 398//____________________________________________________________________
481d8064 399Int_t
400AliMUONDigitMaker::ReadTriggerDDLFast(AliRawReader* rawReader)
401{
402 /// reading tracker DDL like ReadTriggerDDL but with fast decoder interface.
403 /// filling the fTriggerStore container, which must not be null
404
405 const AliMUONRawStreamTriggerHP::AliHeader* darcHeader = 0x0;
406 const AliMUONRawStreamTriggerHP::AliRegionalHeader* regHeader = 0x0;
407 const AliMUONRawStreamTriggerHP::AliLocalStruct* localStruct = 0x0;
408
409 Int_t loCircuit;
410
411 fRawStreamTrigger->SetReader(rawReader);
412 AliMUONRawStreamTriggerHP* rawStreamTrigger =
413 dynamic_cast<AliMUONRawStreamTriggerHP*>(fRawStreamTrigger);
414
415 while (fRawStreamTrigger->NextDDL())
416 {
417 darcHeader = rawStreamTrigger->GetHeaders();
418
419 // fill global trigger information
420 if (fTriggerStore)
421 {
422 if (darcHeader->GetGlobalFlag())
423 {
424 AliMUONGlobalTrigger globalTrigger;
425 globalTrigger.SetFromGlobalResponse(darcHeader->GetGlobalOutput());
426 fTriggerStore->SetGlobal(globalTrigger);
427 }
428 }
429
430 Int_t nReg = rawStreamTrigger->GetRegionalHeaderCount();
431
432 for(Int_t iReg = 0; iReg < nReg ;iReg++)
433 { //reg loop
434
435
436 // crate info
437 AliMpTriggerCrate* crate = AliMpDDLStore::Instance()->
438 GetTriggerCrate(fRawStreamTrigger->GetDDL(), iReg);
439
440 if (!crate)
441 fLogger->Log(Form("Missing crate number %d in DDL %d\n", iReg, fRawStreamTrigger->GetDDL()));
442
443
444 regHeader = rawStreamTrigger->GetRegionalHeader(iReg);
445
446 Int_t nLocal = regHeader->GetLocalStructCount();
447 for(Int_t iLocal = 0; iLocal < nLocal; iLocal++)
448 {
449
450 localStruct = regHeader->GetLocalStruct(iLocal);
451
452 // if card exist
453 if (localStruct) {
454
455 loCircuit = crate->GetLocalBoardId(localStruct->GetId());
456
457 if ( !loCircuit ) continue; // empty slot
458
1ffbeb9d 459 AliMpLocalBoard* localBoard = AliMpDDLStore::Instance()->GetLocalBoard(loCircuit, kTRUE);
481d8064 460
461 // skip copy cards
462 if( !localBoard->IsNotified())
463 continue;
464
465 if (fTriggerStore)
466 {
467 // fill local trigger
468 AliMUONLocalTrigger localTrigger;
469 localTrigger.SetLoCircuit(loCircuit);
470 localTrigger.SetLoStripX((Int_t)localStruct->GetXPos());
471 localTrigger.SetLoStripY((Int_t)localStruct->GetYPos());
472 localTrigger.SetLoDev((Int_t)localStruct->GetXDev());
473 localTrigger.SetLoSdev((Int_t)localStruct->GetSXDev());
474 localTrigger.SetLoTrigY((Int_t)localStruct->GetTrigY());
475 localTrigger.SetLoLpt(localStruct->GetLpt());
476 localTrigger.SetLoHpt(localStruct->GetHpt());
477 localTrigger.SetX1Pattern(localStruct->GetX1());
478 localTrigger.SetX2Pattern(localStruct->GetX2());
479 localTrigger.SetX3Pattern(localStruct->GetX3());
480 localTrigger.SetX4Pattern(localStruct->GetX4());
481 localTrigger.SetY1Pattern(localStruct->GetY1());
482 localTrigger.SetY2Pattern(localStruct->GetY2());
483 localTrigger.SetY3Pattern(localStruct->GetY3());
484 localTrigger.SetY4Pattern(localStruct->GetY4());
485 fTriggerStore->Add(localTrigger);
486 }
487
488 if ( fMakeTriggerDigits )
489 {
490 //FIXEME should find something better than a TArray
491 TArrayS xyPattern[2];
492
493 localStruct->GetXPattern(xyPattern[0]);
494 localStruct->GetYPattern(xyPattern[1]);
495
496 TriggerDigits(loCircuit, xyPattern, *fDigitStore);
497 }
498 } // if triggerY
499 } // iLocal
500 } // iReg
501 } // NextDDL
502
503 return kOK;
504}
505
506//____________________________________________________________________
7771752e 507Int_t AliMUONDigitMaker::TriggerDigits(Int_t nBoard,
40e382ae 508 TArrayS* xyPattern,
509 AliMUONVDigitStore& digitStore) const
d2d759cf 510{
40e382ae 511 /// make digits for trigger from pattern, and add them to digitStore
d2d759cf 512
0145e89a 513 AliCodeTimerAuto("");
514
d9b1ecb0 515 Int_t detElemId;
516
517 AliMpLocalBoard* localBoard = AliMpDDLStore::Instance()->GetLocalBoard(nBoard);
518
8c0b5e70 519 Int_t n,b;
520
d2d759cf 521 // loop over x1-4 and y1-4
40e382ae 522 for (Int_t iChamber = 0; iChamber < 4; ++iChamber)
523 {
524 for (Int_t iCath = 0; iCath < 2; ++iCath)
525 {
7771752e 526 Int_t pattern = (Int_t)xyPattern[iCath].At(iChamber);
527 if (!pattern) continue;
40e382ae 528
7771752e 529 // get detElemId
d9b1ecb0 530 detElemId = AliMpDDLStore::Instance()->GetDEfromLocalBoard(nBoard, iChamber);
40e382ae 531
532 const AliMpVSegmentation* seg
533 = AliMpSegmentation::Instance()
534 ->GetMpSegmentation(detElemId, AliMp::GetCathodType(iCath));
535
536 // loop over the 16 bits of pattern
537 for (Int_t ibitxy = 0; ibitxy < 16; ++ibitxy)
538 {
539 if ((pattern >> ibitxy) & 0x1)
540 {
541 // not quite sure about this
542 Int_t offset = 0;
543 if (iCath && localBoard->GetSwitch(6)) offset = -8;
544
545 AliMpPad pad = seg->PadByLocation(AliMpIntPair(nBoard,ibitxy+offset),kTRUE);
546
547 if (!pad.IsValid())
548 {
0145e89a 549 fLogger->Log(Form("No pad for detElemId: %d, nboard %d, ibitxy: %d\n",
40e382ae 550 detElemId, nBoard, ibitxy));
551 continue;
552 }
8c0b5e70 553
554 n = pad.GetLocation(0).GetFirst(); // always take first location so that digits are not inserted several times
555 b = pad.GetLocation(0).GetSecond();
556
557 AliDebug(1,Form("Using localBoard %d ixy %d instead of %d,%d",
558 n,b,nBoard,ibitxy));
559
560 AliMUONVDigit* digit = digitStore.Add(detElemId,n,b,iCath,AliMUONVDigitStore::kDeny);
40e382ae 561
562 if (!digit)
563 {
8c0b5e70 564 AliDebug(1, Form("Digit DE %04d LocalBoard %03d ibitxy %02d cath %d already in store",
565 detElemId,nBoard,ibitxy,iCath));
566 continue;
40e382ae 567 }
568
569 Int_t padX = pad.GetIndices().GetFirst();
570 Int_t padY = pad.GetIndices().GetSecond();
571
572 // fill digit
573 digit->SetPadXY(padX,padY);
574 digit->SetCharge(1.);
575 }// xyPattern
576 }// ibitxy
7771752e 577 }// cath
578 } // ichamber
40e382ae 579
d2d759cf 580 return kTRUE;
481d8064 581}
d61f56df 582
54355f2c 583//______________________________________________________________________________
584Bool_t
585AliMUONDigitMaker::TriggerToDigitsStore(const AliMUONVTriggerStore& triggerStore,
586 AliMUONVDigitStore& digitStore) const
587{
588 //
589 /// make (S)Digit for trigger
590 //
591
592 digitStore.Clear();
593
594 AliMUONLocalTrigger* locTrg;
595 TIter next(triggerStore.CreateLocalIterator());
596
597 while ( ( locTrg = static_cast<AliMUONLocalTrigger*>(next()) ) )
598 {
599 if (locTrg->IsNull()) continue;
600
601 TArrayS xyPattern[2];
602 locTrg->GetXPattern(xyPattern[0]);
603 locTrg->GetYPattern(xyPattern[1]);
604
605 Int_t nBoard = locTrg->LoCircuit();
606 TriggerDigits(nBoard, xyPattern, digitStore);
607 }
608 return kTRUE;
609}
610
d61f56df 611//____________________________________________________________________
481d8064 612Bool_t AliMUONDigitMaker::UsingFastTrackerDecoder() const
613{
614/// Returns kTRUE if the digit maker is using the high performance decoder for
615/// tracker DDL stream decoding.
616
617 return (fRawStreamTracker->IsA() == AliMUONRawStreamTrackerHP::Class());
618}
619
620//____________________________________________________________________
621Bool_t AliMUONDigitMaker::UsingFastTriggerDecoder() const
622{
623/// Returns kTRUE if the digit maker is using the high performance decoder for
624/// trigger DDL stream decoding.
625
626 return (fRawStreamTrigger->IsA() == AliMUONRawStreamTriggerHP::Class());
627}
628
629//____________________________________________________________________
630void AliMUONDigitMaker::SetFastTrackerDecoder(Bool_t useFastDecoder)
d61f56df 631{
632/// Set fast raw data decoder
633
634 delete fRawStreamTracker;
635 CreateRawStreamTracker(useFastDecoder);
481d8064 636}
637
638//____________________________________________________________________
639void AliMUONDigitMaker::SetFastTriggerDecoder(Bool_t useFastDecoder)
640{
641/// Set fast raw data decoder
642
643 delete fRawStreamTrigger;
644 CreateRawStreamTrigger(useFastDecoder);
645}
d61f56df 646