- Int_t GetPIDmethod() const { return fPIDmethod;}
- Bool_t GetResponse(Int_t n, Double_t *dedx, Float_t *p, Double_t prob[AliPID::kSPECIES], Bool_t kNorm=kTRUE);
-
- Bool_t IsOwner() const {return TestBit(kIsOwner);}
-
- void SetOwner();
- void SetPIDmethod(Int_t m) {fPIDmethod=m;}
-
-
-private:
- Bool_t CookdEdx(Double_t *in, Double_t *out);
- Int_t GetLowerMomentumBin(Double_t p);
- Double_t GetProbabilitySingleLayer(Int_t species, Double_t dEdx, Double_t p);
- Bool_t Load(const Char_t *filename = NULL);
-
- static const Double_t fgkPBins[kNPBins];
- TObjArray *fReferences; // Container for reference distributions
- Int_t fMapRefHists[AliPID::kSPECIES+1][kNPBins+1];
- // Map for the position of a given historgam in the container
- UChar_t fPIDmethod; // PID method selector
-
- ClassDef(AliTRDPIDResponse, 1) // Tool for TRD PID
+ Bool_t Load(const Char_t *filename = NULL);
+ Bool_t Load(const TObjArray *histos);
+
+ private:
+ Bool_t CookdEdx(Int_t nSlice, Double_t *in, Double_t *out) const;
+ Int_t GetLowerMomentumBin(Double_t p) const;
+ Double_t GetProbabilitySingleLayer(Int_t species, Double_t plocal, Double_t dEdx) const;
+
+ static const Double_t fgkPBins[kNPBins];
+ TObjArray *fReferences; // Container for reference distributions
+ Int_t fMapRefHists[AliPID::kSPECIES][kNPBins];
+ // Map for the position of a given historgam in the container
+ Double_t fGainNormalisationFactor; // Gain normalisation factor
+ ETRDPIDMethod fPIDmethod; // PID method selector
+
+ ClassDef(AliTRDPIDResponse, 3) // Tool for TRD PID