X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONHVSubprocessor.cxx;h=b782e5ff69ad91ecf55cf75c5101872f6661ffa2;hb=c40ebacc6f4a624ce45289c6ff16fb182561feaa;hp=471b99441d30037ca2db238f52f81a7d85623a1d;hpb=78649106ec7f71baeb897efa54274a4011675b87;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONHVSubprocessor.cxx b/MUON/AliMUONHVSubprocessor.cxx index 471b99441d3..b782e5ff69a 100644 --- a/MUON/AliMUONHVSubprocessor.cxx +++ b/MUON/AliMUONHVSubprocessor.cxx @@ -13,7 +13,9 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/// $Id$ +// $Id$ + +//----------------------------------------------------------------------------- /// \class AliMUONHVSubprocessor /// /// A subprocessor to read HV values for one run @@ -22,13 +24,14 @@ /// from the MUON TRK, and dumps this copy into the CDB /// /// \author Laurent Aphecetche, Subatech +//----------------------------------------------------------------------------- #include "AliMUONHVSubprocessor.h" -#include "AliMUONHVNamer.h" #include "AliMUONPreprocessor.h" #include "AliMpDEIterator.h" #include "AliMpDEManager.h" +#include "AliMpHVNamer.h" #include "AliCDBMetaData.h" #include "AliLog.h" @@ -65,7 +68,7 @@ AliMUONHVSubprocessor::Process(TMap* dcsAliasMap) TMap hv; hv.SetOwner(kTRUE); - AliMUONHVNamer hvNamer; + AliMpHVNamer hvNamer; AliMpDEIterator deIt; @@ -120,15 +123,14 @@ AliMUONHVSubprocessor::Process(TMap* dcsAliasMap) if (!hvPair) { ++aliasNotFound; -// Master()->Log(Form("WARNING Did not find expected alias (%s)",aliasName.Data())); } else { - TObjArray* values = static_cast(hvPair->Value()); + kNoAliases = kFALSE; + TObjArray* values = static_cast(hvPair->Value()->Clone()); if (!values) { ++valueNotFound; -// Master()->Log(Form("WARNING Could not get values for alias (%s)",aliasName.Data())); } else { @@ -137,7 +139,6 @@ AliMUONHVSubprocessor::Process(TMap* dcsAliasMap) hv.Add(new TObjString(aliasName.Data()),values); } } - kNoAliases = kFALSE; } if ( kNoAliases ) @@ -165,8 +166,8 @@ AliMUONHVSubprocessor::Process(TMap* dcsAliasMap) Bool_t validToInfinity(kFALSE); - UInt_t result = Master()->Store("Calib","HV",&hv,&metaData,0,validToInfinity); + Bool_t result = Master()->Store("Calib","HV",&hv,&metaData,0,validToInfinity); - return result; + return ( result != kTRUE); // return 0 if everything is ok }