From 375ec901037a4eedc60e491800fcb1b48891f386 Mon Sep 17 00:00:00 2001 From: masera Date: Tue, 19 Feb 2008 15:50:20 +0000 Subject: [PATCH] minor changes (action in case of some module is not calibrated) --- ITS/AliITSPreprocessorSSD.cxx | 50 +++++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/ITS/AliITSPreprocessorSSD.cxx b/ITS/AliITSPreprocessorSSD.cxx index 591e4ff3d13..970c6470178 100644 --- a/ITS/AliITSPreprocessorSSD.cxx +++ b/ITS/AliITSPreprocessorSSD.cxx @@ -89,7 +89,25 @@ UInt_t AliITSPreprocessorSSD::Process(TMap* /*dcsAliasMap*/) if(!cal) { Log("File does not contain expected data for the noise!"); delete list; + return 3; } + + //--------------------------------------- + // in case some module was not calibrated! + for(Int_t i=0; iSetMod((UShort_t) i+500); + calib->SetNNoiseP(768); + calib->SetNNoiseN(768); + // take a reasonable averaged value for the noise on P- and N-side strips + for(Int_t j=0; j<768; j++) { + calib->AddNoiseP(j,2.); + calib->AddNoiseN(j,4.); + } + calib_array.AddAt(calib,i); + } + //----------------------------------------- + Int_t nmod = cal->GetEntries(); for(Int_t mod=0; modAt(mod); @@ -97,11 +115,23 @@ UInt_t AliITSPreprocessorSSD::Process(TMap* /*dcsAliasMap*/) calib_array.AddAt(calib,calib->GetMod()-500); } + + //--------------------------------------- + // in case some module was not calibrated! + for(Int_t i=0; iSetMod((UShort_t) i+500); + badch_array.AddAt(badch,i); + } + //----------------------------------------- + + //----------------------------------------- TObjArray *bad; f->GetObject("BadChannels;1", bad); if(!bad) { Log("File does not contain expected data for bad channels !"); delete list; + return 4; } nmod = bad->GetEntries(); for(Int_t mod=0; modGetMod()-500); } + //--------------------------------------- + // in case some module was not calibrated! + for(Int_t i=0; iSetMod((UShort_t) i+500); + pedel->SetNPedestalP(768); + pedel->SetNPedestalN(768); + for(Int_t j=0; j<768; j++) { + pedel->AddPedestalP(j,0.); + pedel->AddPedestalN(j,0.); + } + ped_array.AddAt(pedel,i); + } + //----------------------------------------- + TObjArray *ped; f->GetObject("Pedestal;1", ped); if(!ped) { Log("File does not contain expected data for the pedestals!"); delete list; + return 5; } nmod = ped->GetEntries(); for(Int_t mod=0; mod