//__________________________________________________________________
-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
}
//__________________________________________________________________
-Bool_t AliTRDCalPIDRefMaker::BuildNNReferences(Char_t* /*File*/, Char_t* /*dir*/)
+Bool_t AliTRDCalPIDRefMaker::BuildNNReferences(const Char_t* /*File*/, const Char_t* /*dir*/)
{
return kTRUE;
}
///////////// 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.
~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);