]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliTRDPIDResponse.h
Possibility to propagate tracks to the DCA to the primary vertex at the AOD level...
[u/mrichter/AliRoot.git] / STEER / AliTRDPIDResponse.h
index cdf36c2de70b26cff6f490bcdf533e231dd85bd0..69d95329c74879802c5d3a47e522c5dd120ec9bf 100644 (file)
@@ -45,27 +45,28 @@ public:
  ~AliTRDPIDResponse();
 
  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    GetResponse(Int_t n, Double_t *dedx, Float_t *p, Double_t prob[AliPID::kSPECIES], Bool_t kNorm=kTRUE) const;
 
  Bool_t    IsOwner() const {return TestBit(kIsOwner);}
 
  void      SetOwner();
  void      SetPIDmethod(Int_t m) {fPIDmethod=m;}
-
+ void      SetGainNormalisationFactor(Double_t gainFactor) { fGainNormalisationFactor = gainFactor; }
 
 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    CookdEdx(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;
  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];     
+ Int_t     fMapRefHists[AliPID::kSPECIES][kNPBins];     
                          // Map for the position of a given historgam in the container 
+ Double_t  fGainNormalisationFactor;  // Gain normalisation factor
  UChar_t   fPIDmethod;   // PID method selector  
 
- ClassDef(AliTRDPIDResponse, 1)    // Tool for TRD PID
+ ClassDef(AliTRDPIDResponse, 2)    // Tool for TRD PID
 };
 #endif