From 7ead85800ffc464d58a0700a1a5486c3fb07485c Mon Sep 17 00:00:00 2001 From: ivana Date: Mon, 26 Jul 2010 16:19:26 +0000 Subject: [PATCH] Fixing Raw2SDigits: - Added loading mapping in AliMUONDigitMaker ctor - Added treeS->Fill() in AliMUON::Raw2SDigits (the written files were empty) This fixes the Savannah bug report #70583. --- MUON/AliMUON.cxx | 3 +-- MUON/AliMUONDigitMaker.cxx | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/MUON/AliMUON.cxx b/MUON/AliMUON.cxx index 171ee97d07c..10a60f0054b 100644 --- a/MUON/AliMUON.cxx +++ b/MUON/AliMUON.cxx @@ -510,7 +510,6 @@ Bool_t AliMUON::Raw2SDigits(AliRawReader* rawReader) { /// Convert raw data to SDigit - fLoader->LoadDigits("READ"); if (!fLoader->TreeS()) fLoader->MakeSDigitsContainer(); TTree* treeS = fLoader->TreeS(); @@ -519,7 +518,7 @@ Bool_t AliMUON::Raw2SDigits(AliRawReader* rawReader) sDigitStore->Connect(*treeS); fDigitMaker->Raw2Digits(rawReader,sDigitStore,0x0); - + treeS->Fill(); fLoader->WriteSDigits("OVERWRITE"); fLoader->UnloadSDigits(); diff --git a/MUON/AliMUONDigitMaker.cxx b/MUON/AliMUONDigitMaker.cxx index 14c1f8ffa19..177062e3662 100644 --- a/MUON/AliMUONDigitMaker.cxx +++ b/MUON/AliMUONDigitMaker.cxx @@ -56,6 +56,7 @@ #include "AliMUONRawStreamTriggerHP.h" #include "AliMUONRegHeader.h" #include "AliMUONVTriggerStore.h" +#include "AliMpCDB.h" #include "AliMpDetElement.h" #include "AliMpTriggerCrate.h" #include "AliMpLocalBoard.h" @@ -103,6 +104,10 @@ fLogger(new AliMUONLogger(10000)){ SetMakeTriggerDigits(); + // Load mapping + if ( ! AliMpCDB::LoadDDLStore() ) { + AliFatal("Could not access mapping from OCDB !"); + } } //__________________________________________________________________________ @@ -133,6 +138,10 @@ TObject(), SetMakeTriggerDigits(); + // Load mapping + if ( ! AliMpCDB::LoadDDLStore() ) { + AliFatal("Could not access mapping from OCDB !"); + } } //__________________________________________________________________________ -- 2.43.0