]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Make getters which don't change the object state const
authormfasel <mfasel@lbl.gov>
Wed, 29 Oct 2014 10:56:13 +0000 (11:56 +0100)
committerhristov <Peter.Hristov@cern.ch>
Thu, 30 Oct 2014 06:09:44 +0000 (07:09 +0100)
STEER/AOD/AliAODCaloCluster.cxx
STEER/AOD/AliAODCaloCluster.h
STEER/ESD/AliESDCaloCluster.cxx
STEER/ESD/AliESDCaloCluster.h
STEER/STEERBase/AliVCluster.h

index aafbff04783cb57740b06477272717a86e1d27b5..9471da8fa27fe4e283d6672cc31d95d3f3f6efac 100644 (file)
@@ -219,7 +219,7 @@ Bool_t AliAODCaloCluster::HasTrackMatched(TObject *trk) const
 }
 
 //_______________________________________________________________________
-void AliAODCaloCluster::GetMomentum(TLorentzVector& p, Double_t *vertex ) {
+void AliAODCaloCluster::GetMomentum(TLorentzVector& p, Double_t *vertex ) const {
   // Returns TLorentzVector with momentum of the cluster. Only valid for clusters 
   // identified as photons or pi0 (overlapped gamma) produced on the vertex
   //Vertex can be recovered with esd pointer doing:  
index 4dfaef8210b08c98647b5815cb668ccd043c753a..6c24cc158aedff71a5b92b212c899abc7af6501a 100644 (file)
@@ -109,7 +109,7 @@ class AliAODCaloCluster : public AliAODCluster {
     fTOF = tof ;
   }
   
-  void GetMomentum(TLorentzVector& p, Double_t * vertexPosition );
+  void GetMomentum(TLorentzVector& p, Double_t * vertexPosition ) const;
 
   void AddTrackMatched(TObject *trk) { 
     //Make sure we attach the object to correct process number
index 5bc487879401d2d0a777096ce48e83f4fd824da3..04ff8c562aecd9d42cc62a44c466a2b679061bc6 100644 (file)
@@ -263,7 +263,7 @@ void AliESDCaloCluster::SetPID(const Float_t *p) {
 }
 
 //_______________________________________________________________________
-void AliESDCaloCluster::GetMomentum(TLorentzVector& p, Double_t *vertex ) {
+void AliESDCaloCluster::GetMomentum(TLorentzVector& p, Double_t *vertex ) const {
   // Returns TLorentzVector with momentum of the cluster. Only valid for clusters 
   // identified as photons or pi0 (overlapped gamma) produced on the vertex
   //Vertex can be recovered with esd pointer doing:  
index ace4aa401b89ccceef49940ca25e64889a677e91..decee2692fe18ab58029690ea62503f8f1a25fb9 100644 (file)
@@ -122,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;}
index b61dd88cca9b7ef3a47bad2427e04e972b10571b..9c877ea80b8fd3f422e866d7b92683c832e6965b 100644 (file)
@@ -125,7 +125,7 @@ class AliVCluster : public TObject
   virtual Double_t    GetCoreEnergy() const           {return 0 ; }
   virtual void        SetCoreEnergy(Double_t)         { ; }
 
-  virtual void GetMomentum(TLorentzVector &/*tl*/, Double_t * /*v*/) { ; }
+  virtual void GetMomentum(TLorentzVector &/*tl*/, Double_t * /*v*/) const { ; }
   
   ClassDef(AliVCluster,0)  //VCluster 
     };