bug fix from Julien - thanks
authordsilverm <dsilverm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Dec 2008 20:26:43 +0000 (20:26 +0000)
committerdsilverm <dsilverm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 Dec 2008 20:26:43 +0000 (20:26 +0000)
EMCAL/SMcalib/WriteNewBias.C

index 2fd4222..1348738 100644 (file)
@@ -134,7 +134,7 @@ Float_t CalculateTargetHV(Float_t initialHV, Float_t gainChange,
   // check results before returning..
   if (newHV < 0) {
    // conversion failed:  let's just keep the old custom value then
-    newHV = initHV;
+    newHV = initialHV;
   }
   if (newHV>kMaxHV) {
     // we reached a too high voltage: let's keep the max then