]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix bug in method signature that turned class into virtual base class
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 Aug 2009 13:03:05 +0000 (13:03 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 Aug 2009 13:03:05 +0000 (13:03 +0000)
TRD/Cal/AliTRDCalPIDLQ.cxx
TRD/Cal/AliTRDCalPIDLQ.h

index b2c33a2b05dc40d97ffd2d493e42a15a5f01787f..49d3908445fc1577de27b81002b464d239ed45c9 100644 (file)
@@ -48,7 +48,7 @@ AliTRDCalPIDLQ::AliTRDCalPIDLQ()
   //  The Default constructor
   //
 
-  Init();
+  //Init();
 
 }
 
@@ -144,7 +144,9 @@ TObject* AliTRDCalPIDLQ::GetModel(Int_t ip, Int_t iType, Int_t iplane) const
 }
 
 //_________________________________________________________________________
-Double_t AliTRDCalPIDLQ::GetProbability(Int_t spec, Float_t mom, Float_t *dedx, Float_t length, Int_t iplane) const
+Double_t AliTRDCalPIDLQ::GetProbability(Int_t spec, Float_t mom
+                                      , const Float_t * const dedx
+                                      , Float_t length, Int_t iplane) const
 {
   //
        // Core function of AliTRDCalPID class for calculating the
index 1f84331caeadc6e8278f9418191d33b09f1d279e..03c485ba0b046aa19dcf49f06bbbf9a377f27845 100644 (file)
@@ -33,7 +33,8 @@ class AliTRDCalPIDLQ : public AliTRDCalPID
   Bool_t          LoadReferences(Char_t* refFile);
   TObject*        GetModel(Int_t ip, Int_t iType, Int_t iPlane) const;
   static Double_t GetLength(Int_t il) { return (il<0 || il>=kNLength) ? -1. : fgTrackSegLength[il]; }
-         Double_t GetProbability(Int_t spec, Float_t mom, Float_t *dedx
+         Double_t GetProbability(Int_t spec, Float_t mom
+                               , const Float_t * const dedx
                                , Float_t length, Int_t plane) const;
 
  protected: