Coverity fix in copy constructor
authorkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Dec 2011 11:04:32 +0000 (11:04 +0000)
committerkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Dec 2011 11:04:32 +0000 (11:04 +0000)
PHOS/AliPHOSDigitizer.cxx
PHOS/AliPHOSDigitizer.h

index 3050092..417b0c6 100644 (file)
@@ -204,22 +204,25 @@ AliPHOSDigitizer::AliPHOSDigitizer(const AliPHOSDigitizer & d) :
   fDigitsInRun(d.fDigitsInRun),
   fInit(d.fInit),
   fInput(d.fInput),
-  fInputFileNames(0x0),//?
-  fEventNames(0x0),//?
+  fInputFileNames(0x0),
+  fEventNames(0x0),
   fEmcCrystals(d.fEmcCrystals),
   fEventFolderName(d.fEventFolderName),
   fFirstEvent(d.fFirstEvent),
   fLastEvent(d.fLastEvent), 
-  fcdb (0x0), 
+  fcdb (new AliPHOSCalibData(-1)), 
   fEventCounter(0),
-  fPulse(0),
+  fPulse(new AliPHOSPulseGenerator),
   fADCValuesLG(0),
   fADCValuesHG(0)
 {
   // copyy ctor 
   SetName(d.GetName()) ; 
   SetTitle(d.GetTitle()) ; 
-  fcdb = new AliPHOSCalibData(-1);
+  for (Int_t iInput=0; iInput<fInput; iInput++) {
+    fInputFileNames[iInput] = d.fInputFileNames[iInput];
+    fEventNames[iInput]     = d.fEventNames[iInput];
+  }
 }
 
 //____________________________________________________________________________ 
index bfe31b1..181ce37 100644 (file)
@@ -113,8 +113,8 @@ private:
   Int_t fEventCounter ;             //! counts the events processed
 
   AliPHOSPulseGenerator *fPulse;    //! Pulse shape generator
-  Int_t *fADCValuesLG;              //! Array og low-gain ALTRO samples
-  Int_t *fADCValuesHG;              //! Array og high-gain ALTRO samples
+  Int_t *fADCValuesLG;              //! Array of low-gain ALTRO samples
+  Int_t *fADCValuesHG;              //! Array of high-gain ALTRO samples
   
   ClassDef(AliPHOSDigitizer,5)  // description