/* $Id$ */
+///////////////////////////////////////////////////////////////////////////////
+// //
+// TRD parameter class //
+// //
+///////////////////////////////////////////////////////////////////////////////
+
#include "TNamed.h"
class AliTRDgeometry;
virtual void ReInit();
virtual void SetNRowPad();
- virtual void SetNRowPad(const Int_t p, const Int_t c, const Int_t npad);
- virtual void SetColPadSize(const Int_t p, const Float_t s);
- virtual void SetNTimeBin(const Int_t nbin);
- virtual void SetExpandTimeBin(const Int_t nbefore, const Int_t nafter)
+ virtual void SetNRowPad(Int_t p, Int_t c, Int_t npad);
+ virtual void SetColPadSize(Int_t p, Float_t s);
+ virtual void SetNTimeBin(Int_t nbin);
+ virtual void SetExpandTimeBin(Int_t nbefore, Int_t nafter)
{ fTimeBefore = nbefore;
fTimeAfter = nafter; };
virtual void SetADCoutRange(Float_t range) { fADCoutRange = range; };
virtual void SetADCinRange(Float_t range) { fADCinRange = range; };
virtual void SetADCthreshold(Int_t thresh) { fADCthreshold = thresh; };
+ virtual void SetADCbaseline(Int_t basel) { fADCbaseline = basel; };
virtual void SetDiffusion(Int_t diffOn = 1) { fDiffusionOn = diffOn; };
virtual void SetElAttach(Int_t elOn = 1) { fElAttachOn = elOn; };
virtual void SetElAttachProp(Float_t prop) { fElAttachProp = prop; };
virtual void SetClusMaxThresh(Int_t thresh) { fClusMaxThresh = thresh; };
virtual void SetClusSigThresh(Int_t thresh) { fClusSigThresh = thresh; };
- Int_t GetRowMax(const Int_t p, const Int_t c, const Int_t s)
+ Int_t GetRowMax(Int_t p, Int_t c, Int_t s)
const { return fRowMax[p][c][s]; };
- Int_t GetColMax(const Int_t p) const { return fColMax[p]; };
+ Int_t GetColMax(Int_t p) const { return fColMax[p]; };
Int_t GetTimeMax() const { return fTimeMax; };
Int_t GetTimeBefore() const { return fTimeBefore; };
Int_t GetTimeAfter() const { return fTimeAfter; };
+ fTimeBefore
+ fTimeAfter; };
- Float_t GetRow0(const Int_t p, const Int_t c, const Int_t s)
+ Float_t GetRow0(Int_t p, Int_t c, Int_t s)
const { return fRow0[p][c][s]; };
- Float_t GetCol0(const Int_t p) const { return fCol0[p]; };
- Float_t GetTime0(const Int_t p) const { return fTime0[p]; };
+ Float_t GetCol0(Int_t p) const { return fCol0[p]; };
+ Float_t GetTime0(Int_t p) const { return fTime0[p]; };
- Float_t GetRowPadSize(const Int_t p, const Int_t c, const Int_t s)
+ Float_t GetRowPadSize(Int_t p, Int_t c, Int_t s)
const { return fRowPadSize[p][c][s]; };
- Float_t GetColPadSize(const Int_t p) const { return fColPadSize[p]; };
+ Float_t GetColPadSize(Int_t p) const { return fColPadSize[p]; };
Float_t GetTimeBinSize() const { return fTimeBinSize; };
Float_t GetGasGain() const { return fGasGain; };
Float_t GetADCoutRange() const { return fADCoutRange; };
Float_t GetADCinRange() const { return fADCinRange; };
Int_t GetADCthreshold() const { return fADCthreshold; };
+ Int_t GetADCbaseline() const { return fADCbaseline; };
Float_t GetDiffusionT() const { return fDiffusionT; };
Float_t GetDiffusionL() const { return fDiffusionL; };
Float_t GetElAttachProp() const { return fElAttachProp; };
Float_t GetTRFlo() const { return fTRFlo; };
Float_t GetTRFhi() const { return fTRFhi; };
Float_t GetLorentzFactor() const { return fLorentzFactor; };
- Float_t GetTCnexp() const { return fTCnexp; };
+ Int_t GetTCnexp() const { return fTCnexp; };
Float_t GetTiltingAngle() const;
virtual Float_t GetDiffusionL(Float_t vd, Float_t b);
virtual Float_t GetDiffusionT(Float_t vd, Float_t b);
Int_t LUTOn() const { return fLUTOn; };
virtual Int_t Diffusion(Float_t driftlength, Float_t *xyz);
- virtual Int_t ExB(Float_t driftlength, Float_t *xyz);
+ virtual Int_t ExB(Float_t driftlength, Float_t *xyz) const;
virtual Float_t Col0Tilted(Float_t col0, Float_t rowOffset, Int_t plane);
- virtual Int_t PadResponse(Float_t signal, Float_t dist, Int_t plane, Float_t *pad);
- virtual Float_t CrossTalk(Float_t time);
- virtual Float_t TimeResponse(Float_t time);
- virtual Double_t LUTposition(Int_t iplane, Double_t ampL, Double_t ampC, Double_t ampR);
+ virtual Int_t PadResponse(Float_t signal, Float_t dist, Int_t plane, Float_t *pad) const;
+ virtual Float_t CrossTalk(Float_t time) const;
+ virtual Float_t TimeResponse(Float_t time) const;
+ virtual Double_t LUTposition(Int_t iplane, Double_t ampL, Double_t ampC, Double_t ampR) const;
protected:
Float_t fADCoutRange; // ADC output range (number of channels)
Float_t fADCinRange; // ADC input range (input charge)
Int_t fADCthreshold; // ADC threshold in ADC channel
+ Int_t fADCbaseline; // ADC baseline in ADC chann
Int_t fDiffusionOn; // Switch for the diffusion
Float_t fDiffusionT; // Diffusion in transverse direction
Float_t fDiffusionL; // Diffusion in longitudinal direction
virtual void SampleTRF();
virtual void FillLUT();
- ClassDef(AliTRDparameter,1) // TRD parameter class
+ ClassDef(AliTRDparameter,3) // TRD parameter class
};