1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 //-----------------------------------------------------------------------------
19 /// \class AliMUONRawWriter
20 /// MUON Raw Data generaton in ALICE-MUON
21 /// Raw data structure could be found in Alice-note.
23 /// Implemented non-constant buspatch numbers for tracking
24 /// with correct DDL id (first guess)
25 /// (Ch. Finck, dec 2005)
28 /// Generates raw data for MUON tracker and finally for trigger
29 /// Using real mapping (inverse) for tracker
30 /// For trigger there is no mapping (mapping could be found in AliMUONTriggerCircuit)
31 /// Ch. Finck, July 04
32 /// Use memcpy instead of assignment elt by elt
33 /// Introducing variable DSP numbers, real manu numbers per buspatch for st12
34 /// Implemented scaler event for Trigger
35 /// Ch. Finck, Jan. 06
36 /// Using bus itr in DDL instead of simple incrementation
37 /// treat correctly the DDL & buspatch for station 3.
38 /// Using informations from AliMUONTriggerCrateStore for
39 /// empty slots and non-notified cards in trigger crates.
40 /// Ch. Finck, August 06.
41 /// Using AliMpDDLStore::GetBusPatchId.
43 /// \author Ch. Finck, Feb. 07.
44 //-----------------------------------------------------------------------------
47 #include "AliMUONRawWriter.h"
49 #include "AliMUONBlockHeader.h"
50 #include "AliMUONBusStruct.h"
51 #include "AliMUONConstants.h"
52 #include "AliMUONDarcHeader.h"
53 #include "AliMUONVDigit.h"
54 #include "AliMUONVDigitStore.h"
55 #include "AliMUONDspHeader.h"
56 #include "AliMUONGlobalTrigger.h"
57 #include "AliMUONLocalStruct.h"
58 #include "AliMUONLocalTrigger.h"
59 #include "AliMUONLocalTriggerBoard.h"
60 #include "AliMUONRegionalTrigger.h"
61 #include "AliMUONRegHeader.h"
63 #include "AliMUONVTriggerStore.h"
64 #include "AliCodeTimer.h"
67 #include "AliMpDDLStore.h"
69 #include "AliMpRegionalTrigger.h"
70 #include "AliMpTriggerCrate.h"
71 #include "AliMpLocalBoard.h"
72 #include "AliMpDetElement.h"
73 #include "AliMpDEManager.h"
74 #include "AliMpExMap.h"
75 #include "AliMpConstants.h"
76 #include "AliMpPlaneType.h"
77 #include "AliMpSegmentation.h"
78 #include "AliMpStationType.h"
79 #include "AliMpVSegmentation.h"
81 #include "AliRawReader.h"
82 #include "AliRawDataHeaderSim.h"
83 #include "AliBitPacking.h"
87 #include "TObjArray.h"
88 #include "TStopwatch.h"
89 #include <Riostream.h>
92 ClassImp(AliMUONRawWriter) // Class implementation in ROOT context
95 //__________________________________________________________________________
96 AliMUONRawWriter::AliMUONRawWriter()
98 fBlockHeader(new AliMUONBlockHeader()),
99 fDspHeader(new AliMUONDspHeader()),
100 fDarcHeader(new AliMUONDarcHeader()),
101 fRegHeader(new AliMUONRegHeader()),
102 fLocalStruct(new AliMUONLocalStruct()),
103 fDDLStore(AliMpDDLStore::Instance()),
104 fScalerEvent(kFALSE),
106 fBufferSize((((43*AliMpConstants::ManuNofChannels() + 4)*5 + 10)*5 + 8)*2),
107 fBuffer(new Int_t [fBufferSize])
109 /// Standard Constructor
111 AliDebug(1,"Standard ctor");
113 // setting data key to default value (only for writting)
114 fBlockHeader->SetDataKey(fBlockHeader->GetDefaultDataKey());
115 fDspHeader->SetDataKey(fDspHeader->GetDefaultDataKey());
119 if ( ! AliMpCDB::LoadDDLStore() ) {
120 AliFatal("Could not access mapping from OCDB !");
122 fDDLStore = AliMpDDLStore::Instance();
126 //__________________________________________________________________________
127 AliMUONRawWriter::~AliMUONRawWriter(void)
141 //____________________________________________________________________
142 void AliMUONRawWriter::LocalWordPacking(UInt_t& word, UInt_t locId, UInt_t locDec,
143 UInt_t trigY, UInt_t posY, UInt_t posX,
144 UInt_t sdevX, UInt_t devX)
146 /// pack local trigger word
148 AliBitPacking::PackWord(locId,word,19,22); //card id number in crate
149 AliBitPacking::PackWord(locDec,word,15,18);
150 AliBitPacking::PackWord(trigY,word,14,14);
151 AliBitPacking::PackWord(posY,word,10,13);
152 AliBitPacking::PackWord(sdevX,word,9,9);
153 AliBitPacking::PackWord(devX,word,5,8);
154 AliBitPacking::PackWord(posX,word,0,4);
158 //____________________________________________________________________
159 Int_t AliMUONRawWriter::Digits2Raw(const AliMUONVDigitStore* digitStore,
160 const AliMUONVTriggerStore* triggerStore)
162 /// convert digits of the current event to raw data
164 AliCodeTimerAuto("",0)
173 AliCodeTimerAuto("for Tracker",1)
175 AliMpExMap busPatchMap;
177 Int_t nDDLs = AliDAQ::NumberOfDdls("MUONTRK");
179 Int_t nofBusPatches(0);
181 for (Int_t iDDL = 0; iDDL < nDDLs; ++iDDL )
183 AliMpDDL* ddl = fDDLStore->GetDDL(iDDL);
184 nofBusPatches += ddl->GetNofBusPatches();
187 busPatchMap.SetSize(nofBusPatches);
189 Digits2BusPatchMap(*digitStore,busPatchMap);
191 for (Int_t iDDL = 0; iDDL < nDDLs; ++iDDL )
193 WriteTrackerDDL(busPatchMap,iDDL);
195 AliDebug(1,"Tracker written");
200 AliCodeTimerAuto("for Trigger",1)
208 strcpy(name,AliDAQ::DdlFileName("MUONTRG",idDDL));
209 file[0] = new AliFstream(name);
212 strcpy(name,AliDAQ::DdlFileName("MUONTRG",idDDL));
213 file[1] = new AliFstream(name);
215 WriteTriggerDDL(*triggerStore,file);
221 AliDebug(1,"Trigger written");
227 //______________________________________________________________________________
229 AliMUONRawWriter::Digits2BusPatchMap(const AliMUONVDigitStore& digitStore,
230 AliMpExMap& busPatchMap)
232 /// Create bus patch structures corresponding to digits in the store
234 AliCodeTimerAuto("",0)
236 static const Int_t kMAXADC = (1<<12)-1; // We code the charge on a 12 bits ADC.
238 // DDL event one per half chamber
243 UChar_t channelId = 0;
245 Int_t busPatchId = 0;
246 Int_t currentBusPatchId = -1;
249 AliMUONBusStruct* busStruct(0x0);
251 TIter next(digitStore.CreateTrackerIterator());
252 AliMUONVDigit* digit;
254 while ( ( digit = static_cast<AliMUONVDigit*>(next()) ) )
256 charge = digit->ADC();
257 if ( charge > kMAXADC )
259 // This is most probably an error in the digitizer (which should insure
260 // the adc is below kMAXADC), so make it a (non-fatal) error indeed.
261 AliError(Form("adc value %d above 0x%x for DE %d . Setting to 0x%x. Digit is:",
262 charge,kMAXADC,digit->DetElemId(),kMAXADC));
263 StdoutToAliError(digit->Print());
268 busPatchId = GetBusPatch(*digit);
270 if (busPatchId<0) continue;
272 if ( digit->ManuId() > 0x7FF ||
273 digit->ManuChannel() > 0x3F )
275 StdoutToAliError(digit->Print(););
276 AliFatal("ManuId,ManuChannel are invalid for the digit above.");
279 manuId = ( digit->ManuId() & 0x7FF ); // 11 bits
280 channelId = ( digit->ManuChannel() & 0x3F ); // 6 bits
284 AliBitPacking::PackWord((UInt_t)manuId,word,18,28);
285 AliBitPacking::PackWord((UInt_t)channelId,word,12,17);
286 AliBitPacking::PackWord((UInt_t)charge,word,0,11);
290 for (Int_t i = 1; i <= 30; ++i)
292 parity ^= ((word >> i) & 0x1);
294 AliBitPacking::PackWord((UInt_t)parity,word,31,31);
296 if ( currentBusPatchId != busPatchId )
299 static_cast<AliMUONBusStruct*>(busPatchMap.GetValue(busPatchId));
300 currentBusPatchId = busPatchId;
305 busStruct = new AliMUONBusStruct;
306 busStruct->SetDataKey(busStruct->GetDefaultDataKey());
307 busStruct->SetBusPatchId(busPatchId);
308 busStruct->SetLength(0);
309 busPatchMap.Add(busPatchId,busStruct);
313 busStruct->AddData(word);
317 //______________________________________________________________________________
319 AliMUONRawWriter::WriteTrackerDDL(AliMpExMap& busPatchMap, Int_t iDDL)
321 /// Write DDL file for one tracker DDL
323 // buffer size (max'ed out)
324 // (((43 manus max per bus patch *64 channels + 4 bus patch words) * 5 bus patch
325 // + 10 dsp words)*5 dsps + 8 block words)*2 blocks
327 AliCodeTimerAuto("",0)
329 if (fHeader == 0x0) {
330 AliError("Raw data header must be set");
333 memset(fBuffer,0,fBufferSize*sizeof(Int_t));
335 AliMpDDL* ddl = fDDLStore->GetDDL(iDDL);
336 Int_t iDspMax = ddl->GetMaxDsp();
337 Int_t iBusPerDSP[5]; //number of bus patches per DSP
338 ddl->GetBusPerDsp(iBusPerDSP);
341 Int_t totalDDLLength = 0;
345 // two blocks A and B per DDL
346 for (Int_t iBlock = 0; iBlock < 2; ++iBlock)
349 Int_t length = fBlockHeader->GetHeaderLength();
350 memcpy(&fBuffer[index],fBlockHeader->GetHeader(),length*4);
351 Int_t indexBlk = index;
354 // 5 DSP's max per block
355 for (Int_t iDsp = 0; iDsp < iDspMax; ++iDsp)
358 Int_t dspHeaderLength = fDspHeader->GetHeaderLength();
359 memcpy(&fBuffer[index],fDspHeader->GetHeader(),dspHeaderLength*4);
360 Int_t indexDsp = index;
361 index += dspHeaderLength;
363 // 5 buspatches max per DSP
364 for (Int_t i = 0; i < iBusPerDSP[iDsp]; ++i)
366 Int_t iBusPatch = ddl->GetBusPatchId(busIter++);
368 // iteration over bus patch in DDL
371 AliWarning(Form("Error in bus itr in DDL %d\n", iDDL));
375 AliMUONBusStruct* busStructPtr = static_cast<AliMUONBusStruct*>(busPatchMap.GetValue(iBusPatch));
377 // check if buspatchid has digit
380 // add bus patch structure header
381 Int_t busHeaderLength = busStructPtr->GetHeaderLength();
382 memcpy(&fBuffer[index],busStructPtr->GetHeader(),busHeaderLength*4);
383 index += busHeaderLength;
385 // add bus patch data
386 Int_t busLength = busStructPtr->GetLength();
387 memcpy(&fBuffer[index],busStructPtr->GetData(),busLength*4);
392 // writting anyhow buspatch structure (empty ones)
393 fBuffer[index++] = busStructPtr->GetDefaultDataKey(); // fill it also for empty data size
394 fBuffer[index++] = busStructPtr->GetHeaderLength(); // header length
395 fBuffer[index++] = 0; // raw data length
396 fBuffer[index++] = iBusPatch; // bus patch
400 // check if totalLength even
401 // set padding word in case
402 // Add one word 0xBEEFFACE at the end of DSP structure
403 Int_t totalDspLength = index - indexDsp;
404 if ((totalDspLength % 2) == 1)
406 fBuffer[indexDsp + fDspHeader->GetHeaderLength() - 2] = 1;
407 fBuffer[index++] = fDspHeader->GetDefaultPaddingWord();
411 Int_t dspLength = totalDspLength - fDspHeader->GetHeaderLength();
413 fBuffer[indexDsp+1] = totalDspLength; // dsp total length
414 fBuffer[indexDsp+2] = dspLength; // data length
418 Int_t totalBlkLength = index - indexBlk;
419 Int_t blkLength = totalBlkLength - fBlockHeader->GetHeaderLength();
420 totalDDLLength += totalBlkLength;
422 fBuffer[indexBlk+1] = totalBlkLength; // total block length
423 fBuffer[indexBlk+2] = blkLength;
427 // add twice the end of CRT structure data key
428 // hope it's good placed (ChF)
429 fBuffer[index++] = fBlockHeader->GetDdlDataKey();
430 fBuffer[index++] = fBlockHeader->GetDdlDataKey();
433 // writting onto disk
434 // total length in bytes
437 Int_t headerSize = sizeof(AliRawDataHeader)/4;
439 fHeader->fSize = (totalDDLLength + headerSize) * 4;
441 AliFstream* file = new AliFstream(AliDAQ::DdlFileName("MUONTRK",iDDL));
443 file->WriteBuffer((char*)fHeader,headerSize*4);
444 file->WriteBuffer((char*)fBuffer,sizeof(int)*index);
448 //______________________________________________________________________________
449 Int_t AliMUONRawWriter::GetBusPatch(const AliMUONVDigit& digit) const
451 /// Determine the BusPatch this digit belongs to.
453 return fDDLStore->GetBusPatchId(digit.DetElemId(),digit.ManuId());
456 //______________________________________________________________________________
457 Int_t AliMUONRawWriter::WriteTriggerDDL(const AliMUONVTriggerStore& triggerStore, AliFstream* file[2])
459 /// Write trigger DDL
461 AliCodeTimerAuto("",0)
463 if (fHeader == 0x0) {
464 AliError("Raw data header must be set");
468 // DDL event one per half chamber
471 Int_t headerSize = sizeof(AliRawDataHeader)/4;
473 // global trigger for trigger pattern
474 AliMUONGlobalTrigger* gloTrg = triggerStore.Global();
480 Int_t gloTrigResp = gloTrg->GetGlobalResponse();
481 UInt_t *gloTrigInput = gloTrg->GetGlobalInput();
487 UChar_t locDec, trigY, posY, posX, regOut;
493 UInt_t version = 1; // software version
494 UInt_t eventPhys = 1; // trigger type: 1 for physics, 0 for software
495 UInt_t serialNb = 0xF; // serial nb of card: all bits on for the moment
496 Int_t globalFlag = 0; // set to 1 if global info present in DDL else set to 0
499 static const Int_t kDarcHeaderLength = fDarcHeader->GetDarcHeaderLength();
500 static const Int_t kGlobalHeaderLength = fDarcHeader->GetGlobalHeaderLength();
501 static const Int_t kDarcScalerLength = fDarcHeader->GetDarcScalerLength();
502 static const Int_t kGlobalScalerLength = fDarcHeader->GetGlobalScalerLength();
503 static const Int_t kRegHeaderLength = fRegHeader->GetHeaderLength();
504 static const Int_t kRegScalerLength = fRegHeader->GetScalerLength();
505 static const Int_t kLocHeaderLength = fLocalStruct->GetLength();
506 static const Int_t kLocScalerLength = fLocalStruct->GetScalerLength();
508 // [16(local)*6 words + 6 words]*8(reg) + 8 words = 824
509 static const Int_t kBufferSize = (16 * (kLocHeaderLength+1) + (kRegHeaderLength+1))* 8
510 + kDarcHeaderLength + kGlobalHeaderLength + 2;
512 // [16(local)*51 words + 16 words]*8(reg) + 8 + 10 + 8 words scaler event 6682 words
513 static const Int_t kScalerBufferSize = (16 * (kLocHeaderLength + kLocScalerLength +1) +
514 (kRegHeaderLength + kRegScalerLength +1))* 8 +
515 (kDarcHeaderLength + kDarcScalerLength +
516 kGlobalHeaderLength + kGlobalScalerLength + 2);
518 eventPhys = 0; //set to generate scaler events
519 fHeader->fWord2 |= (0x1 << 14); // set L1SwC bit on
522 buffer = new Int_t [kScalerBufferSize];
524 buffer = new Int_t [kBufferSize];
528 // open DDL file, on per 1/2 chamber
529 for ( Int_t iDDL = 0; iDDL < 2; ++iDDL )
533 if (iDDL == 0) // suppose global info in DDL one
539 // set darc status word
540 // see AliMUONDarcHeader.h for details
541 AliBitPacking::PackWord((UInt_t)eventPhys,word,30,30);
542 AliBitPacking::PackWord((UInt_t)serialNb,word,20,23);
543 AliBitPacking::PackWord((UInt_t)globalFlag,word,10,10);
544 AliBitPacking::PackWord((UInt_t)version,word,12,19);
545 fDarcHeader->SetWord(word);
547 memcpy(&buffer[index], fDarcHeader->GetHeader(), (kDarcHeaderLength)*4);
548 index += kDarcHeaderLength;
550 // no global input for the moment....
552 fDarcHeader->SetGlobalOutput(gloTrigResp);
553 for (Int_t ii = 0; ii < 4; ii++) {
554 fDarcHeader->SetGlobalInput(gloTrigInput[ii],ii);
557 fDarcHeader->SetGlobalOutput(0);
561 // 6 DARC scaler words
562 memcpy(&buffer[index], fDarcHeader->GetDarcScalers(),kDarcScalerLength*4);
563 index += kDarcScalerLength;
566 buffer[index++] = fDarcHeader->GetEndOfDarc();
568 // 4 words of global board input + Global board output
569 memcpy(&buffer[index], fDarcHeader->GetGlobalInput(), (kGlobalHeaderLength)*4);
570 index += kGlobalHeaderLength;
573 // 10 Global scaler words
574 memcpy(&buffer[index], fDarcHeader->GetGlobalScalers(), kGlobalScalerLength*4);
575 index += kGlobalScalerLength;
578 // end of global word
579 buffer[index++] = fDarcHeader->GetEndOfGlobal();
580 const AliMpRegionalTrigger* reg = AliMpDDLStore::Instance()->GetRegionalTrigger();
582 Int_t nCrate = reg->GetNofTriggerCrates()/2;
583 // 8 regional cards per DDL
584 for (Int_t iReg = 0; iReg < nCrate; ++iReg) {
587 AliMpTriggerCrate* crate = AliMpDDLStore::Instance()->GetTriggerCrate(iDDL, iReg);
590 AliWarning(Form("Missing crate number %d in DDL %d\n", iReg, iDDL));
592 // regional info tree, make sure that no reg card missing
593 AliMUONRegionalTrigger* regTrg = triggerStore.FindRegional(crate->GetId());
595 AliError(Form("Missing regional board %d in trigger Store\n", crate->GetId()));
597 // Regional card header
600 // set darc status word
601 fRegHeader->SetDarcWord(word);
603 regOut = regTrg->GetOutput();
604 regInpLpt = regTrg->GetLocalOutput(0);
605 regInpHpt = regTrg->GetLocalOutput(1);
607 // fill darc word, not darc status for the moment (empty)
608 //see AliMUONRegHeader.h for details
609 AliBitPacking::PackWord((UInt_t)eventPhys,word,31,31);
610 AliBitPacking::PackWord((UInt_t)serialNb,word,20,25);
611 AliBitPacking::PackWord((UInt_t)version,word,8,15);
612 AliBitPacking::PackWord((UInt_t)crate->GetId(),word,16,19);
613 AliBitPacking::PackWord((UInt_t)regOut,word,0,7);
614 fRegHeader->SetWord(word);
617 // fill header later, need local response
618 Int_t indexReg = index;
619 index += kRegHeaderLength;
621 // 11 regional scaler word
623 memcpy(&buffer[index], fRegHeader->GetScalers(), kRegScalerLength*4);
624 index += kRegScalerLength;
627 // end of regional word
628 buffer[index++] = fRegHeader->GetEndOfReg();
630 // 16 local card per regional board
631 // UShort_t localMask = 0x0;
633 Int_t nLocalBoard = AliMpConstants::LocalBoardNofChannels();
635 for (Int_t iLoc = 0; iLoc < nLocalBoard; iLoc++) {
637 // slot zero for Regional card
638 Int_t localBoardId = crate->GetLocalBoardId(iLoc);
640 if (localBoardId) { // if not empty slot
641 AliMpLocalBoard* localBoard = AliMpDDLStore::Instance()->GetLocalBoard(localBoardId);
643 if (localBoard->IsNotified()) {// if notified board
644 AliMUONLocalTrigger* locTrg = triggerStore.FindLocal(localBoardId);
646 locCard = locTrg->LoCircuit();
647 locDec = locTrg->GetLoDecision();
648 trigY = locTrg->LoTrigY();
649 posY = locTrg->LoStripY();
650 posX = locTrg->LoStripX();
651 devX = locTrg->LoDev();
652 sdevX = locTrg->LoSdev();
654 AliDebug(4,Form("loctrg %d, posX %d, posY %d, devX %d\n",
655 locTrg->LoCircuit(),locTrg->LoStripX(),locTrg->LoStripY(),locTrg->LoDev()));
658 LocalWordPacking(word, (UInt_t)iLoc, (UInt_t)locDec, (UInt_t)trigY, (UInt_t)posY,
659 (UInt_t)posX, (UInt_t)sdevX, (UInt_t)devX);
661 buffer[index++] = (locTrg->GetX1Pattern() | (locTrg->GetX2Pattern() << 16));
662 buffer[index++] = (locTrg->GetX3Pattern() | (locTrg->GetX4Pattern() << 16));
663 buffer[index++] = (locTrg->GetY1Pattern() | (locTrg->GetY2Pattern() << 16));
664 buffer[index++] = (locTrg->GetY3Pattern() | (locTrg->GetY4Pattern() << 16));
665 buffer[index++] = (Int_t)word; // data word
669 // fill copy card X-Y inputs from the notified cards
670 if (localBoard->GetInputXfrom() && localBoard->GetInputYfrom())
673 locDec = 0; trigY = 1; posY = 15;
674 posX = 0; devX = 0; sdevX = 1;
675 LocalWordPacking(word, (UInt_t)iLoc, (UInt_t)locDec, (UInt_t)trigY, (UInt_t)posY,
676 (UInt_t)posX, (UInt_t)sdevX, (UInt_t)devX);
678 Int_t localFromId = localBoard->GetInputXfrom();
679 AliMUONLocalTrigger* locTrgfrom = triggerStore.FindLocal(localFromId);
681 buffer[index++] = 0; // copy only X3-4 & Y1-4
682 buffer[index++] = (locTrgfrom->GetX3Pattern() | (locTrgfrom->GetX4Pattern() << 16));
683 buffer[index++] = (locTrgfrom->GetY1Pattern() | (locTrgfrom->GetY2Pattern() << 16));
684 buffer[index++] = (locTrgfrom->GetY3Pattern() | (locTrgfrom->GetY4Pattern() << 16));
685 buffer[index++] = word;
689 // fill with 10CDEAD word for empty slots
690 for (Int_t i = 0; i < fLocalStruct->GetLength(); i++)
691 buffer[index++] = fLocalStruct->GetDisableWord();
692 }// condition localBoard
694 // 45 regional scaler word
696 memcpy(&buffer[index], fLocalStruct->GetScalers(), kLocScalerLength*4);
697 index += kLocScalerLength;
700 // end of local structure words
701 buffer[index++] = fLocalStruct->GetEndOfLocal();
704 // fill regional header with local output
705 fRegHeader->SetInput(regInpLpt, 0);
706 fRegHeader->SetInput(regInpHpt, 1);
707 memcpy(&buffer[indexReg],fRegHeader->GetHeader(),kRegHeaderLength*4);
712 // writting onto disk
714 fHeader->fSize = (index + headerSize) * 4;// total length in bytes
715 file[iDDL]->WriteBuffer((char*)fHeader,headerSize*4);
716 file[iDDL]->WriteBuffer((char*)buffer,sizeof(int)*index);
724 //____________________________________________________________________
725 void AliMUONRawWriter::SetScalersNumbers()
727 /// set numbers for scaler events for trigger headers
728 /// since this is provided by the experiment
729 /// put dummy numbers to check the monitoring
731 fDarcHeader->SetScalersNumbers();
732 fRegHeader->SetScalersNumbers();
733 fLocalStruct->SetScalersNumbers();
735 fScalerEvent = kTRUE;