AliHLTTPCCAGlobalMergerComponent added to compilation
[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
168e9c4d 265 AliMpPad pad = seg->PadByLocation(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
168e9c4d 284 digit->SetPadXY(pad.GetIx(),pad.GetIy());
40e382ae 285
168e9c4d 286 digit->SetADC(charge);
9265505b 287
40e382ae 288 }
a3283a4c 289
be63c782 290 if ( fRawStreamTracker->IsErrorMessage() )
291 {
292 return kTrackerBAD;
293 }
294
295 return kOK;
a3283a4c 296}
297
298//____________________________________________________________________
be63c782 299Int_t
300AliMUONDigitMaker::ReadTriggerDDL(AliRawReader* rawReader)
a3283a4c 301{
9265505b 302 /// reading tracker DDL
40e382ae 303 /// filling the fTriggerStore container, which must not be null
a3283a4c 304
40e382ae 305 AliDebug(1,"");
306
a3283a4c 307 AliMUONDDLTrigger* ddlTrigger = 0x0;
308 AliMUONDarcHeader* darcHeader = 0x0;
309 AliMUONRegHeader* regHeader = 0x0;
310 AliMUONLocalStruct* localStruct = 0x0;
311
312 Int_t loCircuit;
d2d759cf 313
0145e89a 314 AliCodeTimerAuto("");
481d8064 315
316 if (UsingFastTriggerDecoder()) return ReadTriggerDDLFast(rawReader);
a3283a4c 317
318 fRawStreamTrigger->SetReader(rawReader);
319
40e382ae 320 while (fRawStreamTrigger->NextDDL())
321 {
a3283a4c 322 ddlTrigger = fRawStreamTrigger->GetDDLTrigger();
323 darcHeader = ddlTrigger->GetDarcHeader();
40e382ae 324
325 // fill global trigger information
326 if (fTriggerStore)
327 {
328 if (darcHeader->GetGlobalFlag())
329 {
330 AliMUONGlobalTrigger globalTrigger;
331 globalTrigger.SetFromGlobalResponse(darcHeader->GetGlobalOutput());
332 fTriggerStore->SetGlobal(globalTrigger);
d2d759cf 333 }
a3283a4c 334 }
40e382ae 335
a3283a4c 336 Int_t nReg = darcHeader->GetRegHeaderEntries();
40e382ae 337
338 for(Int_t iReg = 0; iReg < nReg ;iReg++)
339 { //reg loop
340
d9b1ecb0 341
342 // crate info
343 AliMpTriggerCrate* crate = AliMpDDLStore::Instance()->
344 GetTriggerCrate(fRawStreamTrigger->GetDDL(), iReg);
40e382ae 345
d53fb0de 346 if (!crate)
0145e89a 347 fLogger->Log(Form("Missing crate number %d in DDL %d\n", iReg, fRawStreamTrigger->GetDDL()));
d9b1ecb0 348
40e382ae 349
a3283a4c 350 regHeader = darcHeader->GetRegHeaderEntry(iReg);
40e382ae 351
a3283a4c 352 Int_t nLocal = regHeader->GetLocalEntries();
40e382ae 353 for(Int_t iLocal = 0; iLocal < nLocal; iLocal++)
354 {
355
356 localStruct = regHeader->GetLocalEntry(iLocal);
357
358 // if card exist
359 if (localStruct) {
360
d9b1ecb0 361 loCircuit = crate->GetLocalBoardId(localStruct->GetId());
362
363 if ( !loCircuit ) continue; // empty slot
364
365 AliMpLocalBoard* localBoard = AliMpDDLStore::Instance()->GetLocalBoard(loCircuit, false);
366
367 // skip copy cards
368 if( !localBoard->IsNotified())
369 continue;
40e382ae 370
371 if (fTriggerStore)
372 {
373 // fill local trigger
374 AliMUONLocalTrigger localTrigger;
375 localTrigger.SetLocalStruct(loCircuit, *localStruct);
376 fTriggerStore->Add(localTrigger);
377 }
378
379 if ( fMakeTriggerDigits )
380 {
381 //FIXEME should find something better than a TArray
382 TArrayS xyPattern[2];
40e382ae 383
d9b1ecb0 384 localStruct->GetXPattern(xyPattern[0]);
385 localStruct->GetYPattern(xyPattern[1]);
40e382ae 386
387 TriggerDigits(loCircuit, xyPattern, *fDigitStore);
388 }
389 } // if triggerY
a3283a4c 390 } // iLocal
391 } // iReg
392 } // NextDDL
40e382ae 393
be63c782 394 return kOK;
a3283a4c 395}
7771752e 396
d2d759cf 397//____________________________________________________________________
481d8064 398Int_t
399AliMUONDigitMaker::ReadTriggerDDLFast(AliRawReader* rawReader)
400{
401 /// reading tracker DDL like ReadTriggerDDL but with fast decoder interface.
402 /// filling the fTriggerStore container, which must not be null
403
404 const AliMUONRawStreamTriggerHP::AliHeader* darcHeader = 0x0;
405 const AliMUONRawStreamTriggerHP::AliRegionalHeader* regHeader = 0x0;
406 const AliMUONRawStreamTriggerHP::AliLocalStruct* localStruct = 0x0;
407
408 Int_t loCircuit;
409
410 fRawStreamTrigger->SetReader(rawReader);
411 AliMUONRawStreamTriggerHP* rawStreamTrigger =
412 dynamic_cast<AliMUONRawStreamTriggerHP*>(fRawStreamTrigger);
413
414 while (fRawStreamTrigger->NextDDL())
415 {
416 darcHeader = rawStreamTrigger->GetHeaders();
417
418 // fill global trigger information
419 if (fTriggerStore)
420 {
421 if (darcHeader->GetGlobalFlag())
422 {
423 AliMUONGlobalTrigger globalTrigger;
424 globalTrigger.SetFromGlobalResponse(darcHeader->GetGlobalOutput());
425 fTriggerStore->SetGlobal(globalTrigger);
426 }
427 }
428
429 Int_t nReg = rawStreamTrigger->GetRegionalHeaderCount();
430
431 for(Int_t iReg = 0; iReg < nReg ;iReg++)
432 { //reg loop
433
434
435 // crate info
436 AliMpTriggerCrate* crate = AliMpDDLStore::Instance()->
437 GetTriggerCrate(fRawStreamTrigger->GetDDL(), iReg);
438
439 if (!crate)
440 fLogger->Log(Form("Missing crate number %d in DDL %d\n", iReg, fRawStreamTrigger->GetDDL()));
441
442
443 regHeader = rawStreamTrigger->GetRegionalHeader(iReg);
444
445 Int_t nLocal = regHeader->GetLocalStructCount();
446 for(Int_t iLocal = 0; iLocal < nLocal; iLocal++)
447 {
448
449 localStruct = regHeader->GetLocalStruct(iLocal);
450
451 // if card exist
452 if (localStruct) {
453
454 loCircuit = crate->GetLocalBoardId(localStruct->GetId());
455
456 if ( !loCircuit ) continue; // empty slot
457
1ffbeb9d 458 AliMpLocalBoard* localBoard = AliMpDDLStore::Instance()->GetLocalBoard(loCircuit, kTRUE);
481d8064 459
460 // skip copy cards
461 if( !localBoard->IsNotified())
462 continue;
463
464 if (fTriggerStore)
465 {
466 // fill local trigger
467 AliMUONLocalTrigger localTrigger;
468 localTrigger.SetLoCircuit(loCircuit);
469 localTrigger.SetLoStripX((Int_t)localStruct->GetXPos());
470 localTrigger.SetLoStripY((Int_t)localStruct->GetYPos());
471 localTrigger.SetLoDev((Int_t)localStruct->GetXDev());
472 localTrigger.SetLoSdev((Int_t)localStruct->GetSXDev());
473 localTrigger.SetLoTrigY((Int_t)localStruct->GetTrigY());
474 localTrigger.SetLoLpt(localStruct->GetLpt());
475 localTrigger.SetLoHpt(localStruct->GetHpt());
476 localTrigger.SetX1Pattern(localStruct->GetX1());
477 localTrigger.SetX2Pattern(localStruct->GetX2());
478 localTrigger.SetX3Pattern(localStruct->GetX3());
479 localTrigger.SetX4Pattern(localStruct->GetX4());
480 localTrigger.SetY1Pattern(localStruct->GetY1());
481 localTrigger.SetY2Pattern(localStruct->GetY2());
482 localTrigger.SetY3Pattern(localStruct->GetY3());
483 localTrigger.SetY4Pattern(localStruct->GetY4());
484 fTriggerStore->Add(localTrigger);
485 }
486
487 if ( fMakeTriggerDigits )
488 {
489 //FIXEME should find something better than a TArray
490 TArrayS xyPattern[2];
491
492 localStruct->GetXPattern(xyPattern[0]);
493 localStruct->GetYPattern(xyPattern[1]);
494
495 TriggerDigits(loCircuit, xyPattern, *fDigitStore);
496 }
497 } // if triggerY
498 } // iLocal
499 } // iReg
500 } // NextDDL
501
502 return kOK;
503}
504
505//____________________________________________________________________
7771752e 506Int_t AliMUONDigitMaker::TriggerDigits(Int_t nBoard,
40e382ae 507 TArrayS* xyPattern,
508 AliMUONVDigitStore& digitStore) const
d2d759cf 509{
40e382ae 510 /// make digits for trigger from pattern, and add them to digitStore
d2d759cf 511
0145e89a 512 AliCodeTimerAuto("");
513
d9b1ecb0 514 Int_t detElemId;
515
516 AliMpLocalBoard* localBoard = AliMpDDLStore::Instance()->GetLocalBoard(nBoard);
517
8c0b5e70 518 Int_t n,b;
519
d2d759cf 520 // loop over x1-4 and y1-4
40e382ae 521 for (Int_t iChamber = 0; iChamber < 4; ++iChamber)
522 {
523 for (Int_t iCath = 0; iCath < 2; ++iCath)
524 {
7771752e 525 Int_t pattern = (Int_t)xyPattern[iCath].At(iChamber);
526 if (!pattern) continue;
40e382ae 527
7771752e 528 // get detElemId
d9b1ecb0 529 detElemId = AliMpDDLStore::Instance()->GetDEfromLocalBoard(nBoard, iChamber);
40e382ae 530
531 const AliMpVSegmentation* seg
532 = AliMpSegmentation::Instance()
533 ->GetMpSegmentation(detElemId, AliMp::GetCathodType(iCath));
534
535 // loop over the 16 bits of pattern
536 for (Int_t ibitxy = 0; ibitxy < 16; ++ibitxy)
537 {
538 if ((pattern >> ibitxy) & 0x1)
539 {
540 // not quite sure about this
541 Int_t offset = 0;
542 if (iCath && localBoard->GetSwitch(6)) offset = -8;
543
168e9c4d 544 AliMpPad pad = seg->PadByLocation(nBoard,ibitxy+offset,kTRUE);
40e382ae 545
546 if (!pad.IsValid())
547 {
0145e89a 548 fLogger->Log(Form("No pad for detElemId: %d, nboard %d, ibitxy: %d\n",
40e382ae 549 detElemId, nBoard, ibitxy));
550 continue;
551 }
8c0b5e70 552
168e9c4d 553 n = pad.GetLocalBoardId(0); // always take first location so that digits are not inserted several times
554 b = pad.GetLocalBoardChannel(0);
8c0b5e70 555
556 AliDebug(1,Form("Using localBoard %d ixy %d instead of %d,%d",
557 n,b,nBoard,ibitxy));
558
559 AliMUONVDigit* digit = digitStore.Add(detElemId,n,b,iCath,AliMUONVDigitStore::kDeny);
40e382ae 560
561 if (!digit)
562 {
8c0b5e70 563 AliDebug(1, Form("Digit DE %04d LocalBoard %03d ibitxy %02d cath %d already in store",
564 detElemId,nBoard,ibitxy,iCath));
565 continue;
40e382ae 566 }
567
168e9c4d 568 Int_t padX = pad.GetIx();
569 Int_t padY = pad.GetIy();
40e382ae 570
571 // fill digit
572 digit->SetPadXY(padX,padY);
573 digit->SetCharge(1.);
574 }// xyPattern
575 }// ibitxy
7771752e 576 }// cath
577 } // ichamber
40e382ae 578
d2d759cf 579 return kTRUE;
481d8064 580}
d61f56df 581
54355f2c 582//______________________________________________________________________________
583Bool_t
584AliMUONDigitMaker::TriggerToDigitsStore(const AliMUONVTriggerStore& triggerStore,
585 AliMUONVDigitStore& digitStore) const
586{
587 //
588 /// make (S)Digit for trigger
589 //
590
591 digitStore.Clear();
592
593 AliMUONLocalTrigger* locTrg;
594 TIter next(triggerStore.CreateLocalIterator());
595
596 while ( ( locTrg = static_cast<AliMUONLocalTrigger*>(next()) ) )
597 {
598 if (locTrg->IsNull()) continue;
599
600 TArrayS xyPattern[2];
601 locTrg->GetXPattern(xyPattern[0]);
602 locTrg->GetYPattern(xyPattern[1]);
603
604 Int_t nBoard = locTrg->LoCircuit();
605 TriggerDigits(nBoard, xyPattern, digitStore);
606 }
607 return kTRUE;
608}
609
d61f56df 610//____________________________________________________________________
481d8064 611Bool_t AliMUONDigitMaker::UsingFastTrackerDecoder() const
612{
613/// Returns kTRUE if the digit maker is using the high performance decoder for
614/// tracker DDL stream decoding.
615
616 return (fRawStreamTracker->IsA() == AliMUONRawStreamTrackerHP::Class());
617}
618
619//____________________________________________________________________
620Bool_t AliMUONDigitMaker::UsingFastTriggerDecoder() const
621{
622/// Returns kTRUE if the digit maker is using the high performance decoder for
623/// trigger DDL stream decoding.
624
625 return (fRawStreamTrigger->IsA() == AliMUONRawStreamTriggerHP::Class());
626}
627
628//____________________________________________________________________
629void AliMUONDigitMaker::SetFastTrackerDecoder(Bool_t useFastDecoder)
d61f56df 630{
631/// Set fast raw data decoder
632
633 delete fRawStreamTracker;
634 CreateRawStreamTracker(useFastDecoder);
481d8064 635}
636
637//____________________________________________________________________
638void AliMUONDigitMaker::SetFastTriggerDecoder(Bool_t useFastDecoder)
639{
640/// Set fast raw data decoder
641
642 delete fRawStreamTrigger;
643 CreateRawStreamTrigger(useFastDecoder);
644}
d61f56df 645