From 58e2b5726b1759123e89f0d9ce4b152844a0cf46 Mon Sep 17 00:00:00 2001 From: cblume Date: Mon, 7 Mar 2011 13:39:20 +0000 Subject: [PATCH] Introduce a limit on the gain factor (Raphaelle) --- TRD/AliTRDPreprocessorOffline.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TRD/AliTRDPreprocessorOffline.cxx b/TRD/AliTRDPreprocessorOffline.cxx index 4eaade57450..20490ece504 100644 --- a/TRD/AliTRDPreprocessorOffline.cxx +++ b/TRD/AliTRDPreprocessorOffline.cxx @@ -714,11 +714,13 @@ Bool_t AliTRDPreprocessorOffline::AnalyzeChamberStatus() if(TMath::Abs(gainout-1.0) > 0.000001) { Double_t newgain = gaininit*gainout; if(newgain < 0.1) newgain = 0.1; + if(newgain > 1.9) newgain = 1.9; calDetGain->SetValue(det,newgain); } else { Double_t newgain = mean; if(newgain < 0.1) newgain = 0.1; + if(newgain > 1.9) newgain = 1.9; calDetGain->SetValue(det,newgain); } } @@ -751,6 +753,7 @@ Bool_t AliTRDPreprocessorOffline::AnalyzeChamberStatus() Float_t gain = calDetGain->GetValue(det); if(vdriftout > 0.0) gain = gain*vdriftinit/vdriftout; if(gain < 0.1) gain = 0.1; + if(gain > 1.9) gain = 1.9; calDetGain->SetValue(det,gain); -- 2.43.0