correcting small memory leak, removing unnecessary pointer checks (Theo)
[u/mrichter/AliRoot.git] / HLT / TRD / AliHLTTRDCalibFitComponent.cxx
index b7ccf036c845a0d74d36c582bd1697559b0e6c77..dfcdd38b44693bfd2d0cb6739e2c61234dfc6001 100644 (file)
@@ -68,6 +68,10 @@ AliHLTTRDCalibFitComponent::AliHLTTRDCalibFitComponent()
     fNoOfIncSM(0)
 {
   // Default constructor
+
+  for(int i=0; i<18; i++)
+    fIncSM[i]=kFALSE;
+
 }
 
 AliHLTTRDCalibFitComponent::~AliHLTTRDCalibFitComponent()
@@ -349,11 +353,11 @@ Int_t AliHLTTRDCalibFitComponent::EORCalibration()
   coefdrift->SetName("coefdrift");
   coefdriftsecond->SetName("coefdriftsecond");
   coeft0->SetName("coeft0");
-  if(coefgain) fAfterRunArray->Add(coefgain);
-  if(coefprf) fAfterRunArray->Add(coefprf);
-  if(coefdrift) fAfterRunArray->Add(coefdrift);
-  if(coefdriftsecond) fAfterRunArray->Add(coefdriftsecond);
-  if(coeft0) fAfterRunArray->Add(coeft0);
+  fAfterRunArray->Add(coefgain);
+  fAfterRunArray->Add(coefprf);
+  fAfterRunArray->Add(coefdrift);
+  fAfterRunArray->Add(coefdriftsecond);
+  fAfterRunArray->Add(coeft0);
   
 
   if(coefgain||coefprf||coefdrift||coeft0||coefdriftsecond) {