-#ifndef AliTPCRF1D_H
-#define AliTPCRF1D_H
-////////////////////////////////////////////////
-// Manager class for AliTPCRF1D //
+#ifndef ALITPCRF1D_H
+#define ALITPCRF1D_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice */
+
+/* $Id$ */
+
////////////////////////////////////////////////
+// Manager class for AliTPCRF1D //
+////////////////////////////////////////////////
// include files and class forward declarations
-//DSTEP in cm
-//NPRF in number of interpolation points
-const Int_t NRF=100;
-const Float_t RFDSTEP=0.01;
+
#include "TObject.h"
#include "TMath.h"
class AliTPCRF1D : public TObject {
public :
- AliTPCRF1D(Bool_t direct=kFALSE,Int_t np=NRF,Float_t step=RFDSTEP );
+ AliTPCRF1D(Bool_t direct=kFALSE,Int_t np=0,Float_t step=0 );
+ AliTPCRF1D(const AliTPCRF1D &prf);
+ AliTPCRF1D & operator = (const AliTPCRF1D &prf);
~AliTPCRF1D();
Float_t GetRF(Float_t xin); //return RF in point xin
Float_t GetGRF(Float_t xin); //return generic response function in xin
//adjust RF with general function
void SetOffset(Float_t xoff) {fOffset=xoff;}
//set offset value
+ Float_t GetOffset(){return fOffset;}
Float_t GetPadWidth(){ return fpadWidth;};
//return pad width
Float_t GetSigma(){return fSigma;}
//return estimated sigma of RF
- void Draw(Float_t x1=-3 ,Float_t x2 =3.,Int_t N = 200);
+ void DrawRF(Float_t x1=-3 ,Float_t x2 =3.,Int_t N = 200);
//draw RF it don't delete histograms after drawing
/// it's on user !!!!
void Update();
+ static Double_t Gamma4(Double_t x, Double_t p0, Double_t p1);
private:
Double_t funParam[5];//parameters of used charge function
Int_t fNRF; //number of interpolations point
Float_t fDSTEPM1; //element step for point
- Float_t* fcharge; // field with RF
+ Float_t* fcharge; //[fNPRF] field with RF
Float_t forigsigma;//sigma of original distribution;
Float_t fpadWidth; //width of pad
Float_t fkNorm; //normalisation factor of the charge integral
//calculated during update
Bool_t fDirect; //tell us if we use directly generalfunction
- Float_t fK3X;
- Float_t fPadDistance;
- //charge type
- char fType[5];
+
+ Float_t fPadDistance; //pad to wire distance
+ char fType[5]; //type of the parametrisation
+ static Int_t fgNRF;//default number of interpolation points
+ static Float_t fgRFDSTEP;//default step in cm
ClassDef(AliTPCRF1D,2)
};
-#endif /* AliTPCRF1D_H */
+#endif /* ALITPCRF1D_H */