]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/ESD/AliESDCaloCluster.h
Coverity fixes for TOF new CPass1 calib task
[u/mrichter/AliRoot.git] / STEER / ESD / AliESDCaloCluster.h
index eed1737b7222ac7e59a9cdce3305000d7c7d686f..decee2692fe18ab58029690ea62503f8f1a25fb9 100644 (file)
@@ -92,10 +92,16 @@ class AliESDCaloCluster : public AliVCluster
     else *fTracksMatched = array;
   }
   void AddLabels(TArrayI & array)         { 
-    if(!fLabels)fLabels = new TArrayI(array) ; 
+    if(!fLabels)fLabels = new TArrayI(array) ;
     else *fLabels = array;
   }
   
+  void SetLabel(Int_t *array, UInt_t size)
+  {
+    if(fLabels) delete fLabels ;
+    fLabels = new TArrayI(size,array);
+  }
+
   TArrayI * GetTracksMatched() const  {return  fTracksMatched;}
   TArrayI * GetLabelsArray() const    {return  fLabels;}
   Int_t   * GetLabels() const         {if (fLabels) return  fLabels->GetArray(); else return 0;}
@@ -116,7 +122,7 @@ class AliESDCaloCluster : public AliVCluster
   UInt_t GetNLabels() const       { if (fLabels) return  fLabels->GetSize(); 
     else return (0);}
   
-  void GetMomentum(TLorentzVector& p, Double_t * vertexPosition );
+  void GetMomentum(TLorentzVector& p, Double_t * vertexPosition ) const;
   
   void  SetNCells(Int_t n)  { fNCells = n;}
   Int_t GetNCells() const   { return fNCells;}
@@ -134,6 +140,12 @@ class AliESDCaloCluster : public AliVCluster
   Double_t GetCellAmplitudeFraction(Int_t i) const {  
     if (fCellsAmpFraction && i >=0 && i < fNCells ) return fCellsAmpFraction[i];    
     else return -1;}
+
+  Double_t    GetMCEnergyFraction() const           { return fMCEnergyFraction ; }
+  void        SetMCEnergyFraction(Double_t e)       { fMCEnergyFraction = e    ; }
+
+  virtual Double_t    GetCoreEnergy() const           {return fCoreEnergy ; }
+  virtual void        SetCoreEnergy(Double_t e)         { fCoreEnergy=e; }
   
  protected:
   
@@ -162,8 +174,10 @@ class AliESDCaloCluster : public AliVCluster
   Char_t       fClusterType;       // Flag for different cluster type/versions
   Double_t     fTOF;               //[0,0,12] time-of-flight
   
+  Double_t     fMCEnergyFraction;          //!MC energy (embedding)
+  Double32_t   fCoreEnergy;          // energy of the core of cluster
   
-  ClassDef(AliESDCaloCluster,11)  //ESDCaloCluster 
+  ClassDef(AliESDCaloCluster,12)  //ESDCaloCluster 
 
     };