From 611a72395d6711a9cf6091261a4d9ef90af7f2a0 Mon Sep 17 00:00:00 2001 From: cblume Date: Thu, 1 Oct 2009 07:35:10 +0000 Subject: [PATCH] Small update to have a validity range for the DCS datapoints only for the given run --- TRD/AliTRDPreprocessor.cxx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/TRD/AliTRDPreprocessor.cxx b/TRD/AliTRDPreprocessor.cxx index 8b2bf56a9c8..b2a6bec9e76 100644 --- a/TRD/AliTRDPreprocessor.cxx +++ b/TRD/AliTRDPreprocessor.cxx @@ -197,19 +197,19 @@ Bool_t AliTRDPreprocessor::ProcessDCS(TMap *dcsAliasMap) if (nGraph [iAlias] == 0) { Log("No TGraph for this dcsDatapointAlias : not stored"); results [iAlias] = kFALSE; - error = kTRUE; + //error = kTRUE; continue; } oneTRDDCS->SetGraph(map); - results[iAlias]=Store("Calib", oneTRDDCS->GetStoreName().Data(), oneTRDDCS, &metaData, 0, kTRUE); + results[iAlias]=Store("Calib", oneTRDDCS->GetStoreName().Data(), oneTRDDCS, &metaData, 0, kFALSE); delete map; //results [iAlias] = StoreReferenceData("Calib", oneTRDDCS->GetStoreName ().Data (), oneTRDDCS, &metaData); if (!results[iAlias]) { AliError("Problem during StoreRef DCS"); - error=kTRUE; + //error=kTRUE; } //BEGIN TEST (should not be removed ...) @@ -245,6 +245,16 @@ Bool_t AliTRDPreprocessor::ProcessDCS(TMap *dcsAliasMap) //END TEST } + + // Check errors + Int_t nbCount = 0; + for (Int_t iAlias = 0; iAlias < nEntries; iAlias++) { + if (results[iAlias]) { + nbCount++; + } + } + if(nbCount == 0) error = kTRUE; + Log (" Summury of DCS :\n"); Log (Form("%30s %10s %10s", "dcsDatapointAlias", "Stored ?", "# graph")); @@ -1051,4 +1061,4 @@ UInt_t AliTRDPreprocessor::ProcessDCSConfigData() Log("Processing of the DCS config summary file DONE."); return 0; -} +} \ No newline at end of file -- 2.43.0