]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
More on char* constantness
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Nov 2008 17:07:17 +0000 (17:07 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 12 Nov 2008 17:07:17 +0000 (17:07 +0000)
TRD/Cal/AliTRDCalPIDRefMaker.cxx
TRD/Cal/AliTRDCalPIDRefMaker.h

index ee1b4e41cfd86854c62ddbf4f66c4a56547a5d3e..fbc0e140296e1ded5269f98eb3d90363933f62fb 100644 (file)
@@ -130,7 +130,7 @@ AliTRDCalPIDRefMaker& AliTRDCalPIDRefMaker::operator=(const AliTRDCalPIDRefMaker
 
 
 //__________________________________________________________________
-Bool_t AliTRDCalPIDRefMaker::BuildLQReferences(Char_t *File, Char_t *dir)
+Bool_t AliTRDCalPIDRefMaker::BuildLQReferences(const Char_t *File, const Char_t *dir)
 {
        // Build, Fill and write to file the histograms used for PID.
        // The simulations are looked in the
@@ -364,7 +364,7 @@ Bool_t AliTRDCalPIDRefMaker::BuildLQReferences(Char_t *File, Char_t *dir)
 }
 
 //__________________________________________________________________
-Bool_t AliTRDCalPIDRefMaker::BuildNNReferences(Char_t* /*File*/, Char_t* /*dir*/)
+Bool_t AliTRDCalPIDRefMaker::BuildNNReferences(const Char_t* /*File*/, const Char_t* /*dir*/)
 {
        return kTRUE;
 }
@@ -503,7 +503,7 @@ Double_t AliTRDCalPIDRefMaker::Estimate2D1(TH2 *h, Float_t &x, Float_t &y
 /////////////  Private functions ///////////////////////////////////
 
 //__________________________________________________________________
-Int_t AliTRDCalPIDRefMaker::CheckProdDirTree(Char_t *dir)
+Int_t AliTRDCalPIDRefMaker::CheckProdDirTree(const Char_t *dir)
 {
        // Scan directory tree for momenta. Returns the smallest number of
        // batches found in all directories or 0 if one momentum is missing.
index dffeab55176a1781ecbcbdc5dc5425cf392dc371..89e31bede42919ce340ee02ef3173650b9396b43 100644 (file)
@@ -29,15 +29,15 @@ public:
   ~AliTRDCalPIDRefMaker();
   AliTRDCalPIDRefMaker& operator=(const AliTRDCalPIDRefMaker &ref);
 
-         Bool_t   BuildLQReferences(Char_t *filename="TRDpidLQ.root", Char_t *dir =".");
-         Bool_t   BuildNNReferences(Char_t *filename="TRDpidNN.root", Char_t *dir =".");
+         Bool_t   BuildLQReferences(const Char_t *filename="TRDpidLQ.root", const Char_t *dir =".");
+         Bool_t   BuildNNReferences(const Char_t *filename="TRDpidNN.root", const Char_t *dir =".");
  
   static Double_t Estimate2D2(TH2 *h, Float_t &x, Float_t &y);
   static Double_t Estimate2D1(TH2 *h, Float_t &x, Float_t &y, Float_t &dCT, Float_t &rmin, Float_t &rmax);
   //     Double_t Estimate3D2(TH3 *h, Float_t &x, Float_t &y, Float_t &z);
 
 private:
-         Int_t    CheckProdDirTree(Char_t *dir=".");
+         Int_t    CheckProdDirTree(const Char_t *dir=".");
          void     Prepare2D();
          void     Reset();
          void     SaveReferences(const Int_t mom, const char *fn);