]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 3050092ad73923b2a8437732b389388412b66f72..417b0c6531f73d06a09fa9fa31b80928e107a1d0 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 bfe31b1c4b4a5c875a94d325f71562e3acf29cba..181ce379234c64fd0d9ade8f0787254774190fbf 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