AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliTPCclusterFast Class Reference
Inheritance diagram for AliTPCclusterFast:

Public Member Functions

 AliTPCclusterFast ()
 
void Init ()
 
virtual ~AliTPCclusterFast ()
 
void SetParam (Float_t mnprim, Float_t diff, Float_t diffL, Float_t y, Float_t z, Float_t ky, Float_t kz)
 
void Digitize ()
 
Double_t GetQtot (Float_t gain, Float_t thr, Float_t noise, Bool_t rounding=kTRUE, Bool_t addPedestal=kTRUE)
 
Double_t GetQmax (Float_t gain, Float_t thr, Float_t noise, Bool_t rounding=kTRUE, Bool_t addPedestal=kTRUE)
 
Double_t GetQmaxCorr (Float_t rmsy0, Float_t rmsz0)
 
Double_t GetQtotCorr (Float_t rmsy0, Float_t rmsz0, Float_t gain, Float_t thr)
 
Double_t GetNsec ()
 

Static Public Member Functions

static void GenerElectrons (AliTPCclusterFast *cl0, AliTPCclusterFast *clm, AliTPCclusterFast *clp)
 
static Double_t GaussConvolution (Double_t x0, Double_t x1, Double_t k0, Double_t k1, Double_t s0, Double_t s1)
 
static Double_t GaussExpConvolution (Double_t x0, Double_t s0, Double_t t1)
 
static Double_t GaussGamma4 (Double_t x, Double_t s0, Double_t p1)
 
static Double_t Gamma4 (Double_t x, Double_t p0, Double_t p1)
 

Public Attributes

Float_t fMNprim
 mean number of primary electrons More...
 
Int_t fNprim
 mean number of primary electrons More...
 
Int_t fNtot
 total number of electrons More...
 
Float_t fQtot
 total charge - Gas gain flucuation taken into account More...
 
Float_t fDiff
 diffusion sigma More...
 
Float_t fDiffLong
 diffusion sigma longitudinal direction More...
 
Float_t fY
 y position More...
 
Float_t fZ
 z postion More...
 
Float_t fAngleY
 y angle - tan(y) More...
 
Float_t fAngleZ
 z angle - tan z More...
 
TVectorD fSec
 number of secondary electrons More...
 
TVectorD fPosY
 position y for each electron More...
 
TVectorD fPosZ
 position z for each electron More...
 
TVectorD fGain
 gg for each electron More...
 
TVectorD fStatY
 stat Y More...
 
TVectorD fStatZ
 stat Y More...
 
TMatrixD fDigits
 response matrix More...
 

Static Public Attributes

static TF1 * fPRF =0
 Pad response. More...
 
static TF1 * fTRF =0
 Time response function. More...
 

Detailed Description

gSystem->Load("libSTAT");
.x ~/NimStyle.C
.L $ALICE_ROOT/TPC/fastSimul/AliTPCclusterFast.cxx+
AliTPCclusterFast::fPRF = new TF1("fprf","gausn",-5,5);
AliTPCclusterFast::fTRF = new TF1("ftrf","gausn",-5,5);
AliTPCclusterFast::fPRF->SetParameters(1,0,0.5);
AliTPCclusterFast::fTRF->SetParameters(1,0,0.5);
AliTPCtrackFast::Simul("trackerSimul.root",100);
// AliTPCclusterFast::Simul("cluterSimul.root",20000);

Modifications to add:

  1. modigy mode ==> dEdxMode
  2. Create hardware setup class (fNoise, fGain, fBRounding, fBAddpedestal, ....)
  3. Create arrays of registered hardware setups
  4. Extend on the fly functions to use registered hardware setups, identified by ID. hwMode

Definition at line 37 of file AliTPCclusterFast.cxx.

Constructor & Destructor Documentation

AliTPCclusterFast::AliTPCclusterFast ( )

Definition at line 433 of file AliTPCclusterFast.cxx.

AliTPCclusterFast::~AliTPCclusterFast ( )
virtual

Definition at line 465 of file AliTPCclusterFast.cxx.

Member Function Documentation

void AliTPCclusterFast::Digitize ( )
  1. Clear digits

Definition at line 551 of file AliTPCclusterFast.cxx.

Referenced by AliTPCtrackFast::MakeTrack().

Double_t AliTPCclusterFast::Gamma4 ( Double_t  x,
Double_t  p0,
Double_t  p1 
)
static

Gamma 4 Time response function of ALTRO

Definition at line 725 of file AliTPCclusterFast.cxx.

Double_t AliTPCclusterFast::GaussConvolution ( Double_t  x0,
Double_t  x1,
Double_t  k0,
Double_t  k1,
Double_t  s0,
Double_t  s1 
)
static

2 D gaus convoluted with angular effect See in mathematica: Simplify[Integrate[Exp[-(x0-k0*xd)*(x0-k0*xd)/(2*s0*s0)-(x1-k1*xd)*(x1-k1*xd)/(2*s1*s1)]/(s0*s1),{xd,-1/2,1/2}]]

TF1 f1("f1","AliTPCclusterFast::GaussConvolution(x,0,1,0,0.1,0.1)",-2,2) TF2 f2("f2","AliTPCclusterFast::GaussConvolution(x,y,1,1,0.1,0.1)",-2,2,-2,2)

Definition at line 679 of file AliTPCclusterFast.cxx.

Referenced by GetQmaxCorr(), and GetQtotCorr().

Double_t AliTPCclusterFast::GaussExpConvolution ( Double_t  x0,
Double_t  s0,
Double_t  t1 
)
static

2 D gaus convoluted with exponential Integral nomalized to 1 See in mathematica: Simplify[Integrate[Exp[-(x0-x1)*(x0-x1)/(2*s0*s0)]*Exp[-x1*t1],{x1,0,Infinity}]] TF1 fgexp("fgexp","AliTPCclusterFast::GaussExpConvolution(x,0.5,1)",-2,2)

Definition at line 708 of file AliTPCclusterFast.cxx.

Double_t AliTPCclusterFast::GaussGamma4 ( Double_t  x,
Double_t  s0,
Double_t  p1 
)
static

Gamma 4 Time response function of ALTRO convoluted with Gauss Simplify[Integrate[Exp[-(x0-x1)*(x0-x1)/(2*s0*s0)]*Exp[-4*x1/p1]*(x/p1)^4/s0,{x1,0,Infinity}]] TF1 fgg4("fgg4","AliTPCclusterFast::GaussGamma4(x,0.5,0.5)",-2,2)

Definition at line 736 of file AliTPCclusterFast.cxx.

void AliTPCclusterFast::GenerElectrons ( AliTPCclusterFast cl0,
AliTPCclusterFast clm,
AliTPCclusterFast clp 
)
static

Definition at line 490 of file AliTPCclusterFast.cxx.

Referenced by AliTPCtrackFast::MakeTrack().

Double_t AliTPCclusterFast::GetNsec ( )

Generate number of secondary electrons copy of procedure implemented in geant

Definition at line 476 of file AliTPCclusterFast.cxx.

Referenced by GenerElectrons().

Double_t AliTPCclusterFast::GetQmax ( Float_t  gain,
Float_t  thr,
Float_t  noise,
Bool_t  rounding = kTRUE,
Bool_t  addPedestal = kTRUE 
)

Definition at line 616 of file AliTPCclusterFast.cxx.

Referenced by AliTPCtrackFast::CookdEdxDmax(), and GetQtotCorr().

Double_t AliTPCclusterFast::GetQmaxCorr ( Float_t  rmsy0,
Float_t  rmsz0 
)

Gaus distribution convolueted with rectangular Gaus width sy and sz is determined by RF width and diffusion Integral of Q is equal 1 Q max is calculated at position fY,fX

Definition at line 634 of file AliTPCclusterFast.cxx.

Referenced by AliTPCtrackFast::CookdEdxDmax(), and GetQtotCorr().

Double_t AliTPCclusterFast::GetQtot ( Float_t  gain,
Float_t  thr,
Float_t  noise,
Bool_t  rounding = kTRUE,
Bool_t  addPedestal = kTRUE 
)

Definition at line 600 of file AliTPCclusterFast.cxx.

Referenced by AliTPCtrackFast::CookdEdxDtot(), and GetQtotCorr().

Double_t AliTPCclusterFast::GetQtotCorr ( Float_t  rmsy0,
Float_t  rmsz0,
Float_t  gain,
Float_t  thr 
)

Calculates the fraction of the charge over threshol to total charge The response function

Definition at line 646 of file AliTPCclusterFast.cxx.

Referenced by AliTPCtrackFast::CookdEdxDtot().

void AliTPCclusterFast::Init ( )

reset all counters

Definition at line 439 of file AliTPCclusterFast.cxx.

Referenced by AliTPCtrackFast::MakeTrack().

void AliTPCclusterFast::SetParam ( Float_t  mnprim,
Float_t  diff,
Float_t  diffL,
Float_t  y,
Float_t  z,
Float_t  ky,
Float_t  kz 
)

Definition at line 469 of file AliTPCclusterFast.cxx.

Referenced by AliTPCtrackFast::MakeTrack().

Member Data Documentation

Float_t AliTPCclusterFast::fAngleY

y angle - tan(y)

Definition at line 68 of file AliTPCclusterFast.cxx.

Referenced by GenerElectrons(), GetQmaxCorr(), GetQtotCorr(), and SetParam().

Float_t AliTPCclusterFast::fAngleZ

z angle - tan z

Definition at line 69 of file AliTPCclusterFast.cxx.

Referenced by GenerElectrons(), GetQmaxCorr(), GetQtotCorr(), and SetParam().

Float_t AliTPCclusterFast::fDiff

diffusion sigma

Definition at line 64 of file AliTPCclusterFast.cxx.

Referenced by GenerElectrons(), GetQmaxCorr(), GetQtotCorr(), and SetParam().

Float_t AliTPCclusterFast::fDiffLong

diffusion sigma longitudinal direction

Definition at line 65 of file AliTPCclusterFast.cxx.

Referenced by GenerElectrons(), and SetParam().

TMatrixD AliTPCclusterFast::fDigits

response matrix

Definition at line 83 of file AliTPCclusterFast.cxx.

Referenced by AliTPCclusterFast(), Digitize(), GetQmax(), and GetQtot().

TVectorD AliTPCclusterFast::fGain

gg for each electron

Definition at line 76 of file AliTPCclusterFast.cxx.

Referenced by Digitize(), GenerElectrons(), and Init().

Float_t AliTPCclusterFast::fMNprim

mean number of primary electrons

Definition at line 58 of file AliTPCclusterFast.cxx.

Referenced by GenerElectrons(), Init(), and SetParam().

Int_t AliTPCclusterFast::fNprim

mean number of primary electrons

Definition at line 60 of file AliTPCclusterFast.cxx.

Referenced by GenerElectrons(), and Init().

Int_t AliTPCclusterFast::fNtot

total number of electrons

Definition at line 61 of file AliTPCclusterFast.cxx.

Referenced by AliTPCtrackFast::CookdEdxNtot(), AliTPCtrackFast::CookdEdxNtotThr(), Digitize(), GenerElectrons(), and Init().

TVectorD AliTPCclusterFast::fPosY

position y for each electron

Definition at line 74 of file AliTPCclusterFast.cxx.

Referenced by Digitize(), GenerElectrons(), and Init().

TVectorD AliTPCclusterFast::fPosZ

position z for each electron

Definition at line 75 of file AliTPCclusterFast.cxx.

Referenced by Digitize(), GenerElectrons(), and Init().

TF1 * AliTPCclusterFast::fPRF =0
static

Pad response.

Definition at line 84 of file AliTPCclusterFast.cxx.

Referenced by Digitize(), and simul().

Float_t AliTPCclusterFast::fQtot

total charge - Gas gain flucuation taken into account

Definition at line 62 of file AliTPCclusterFast.cxx.

Referenced by AliTPCtrackFast::CookdEdxQtot(), AliTPCtrackFast::CookdEdxQtotThr(), GenerElectrons(), and Init().

TVectorD AliTPCclusterFast::fSec

number of secondary electrons

Definition at line 73 of file AliTPCclusterFast.cxx.

Referenced by GenerElectrons(), and Init().

TVectorD AliTPCclusterFast::fStatY

stat Y

Definition at line 78 of file AliTPCclusterFast.cxx.

Referenced by Init().

TVectorD AliTPCclusterFast::fStatZ

stat Y

Definition at line 79 of file AliTPCclusterFast.cxx.

Referenced by Init().

TF1 * AliTPCclusterFast::fTRF =0
static

Time response function.

Definition at line 85 of file AliTPCclusterFast.cxx.

Referenced by Digitize(), and simul().

Float_t AliTPCclusterFast::fY

y position

Definition at line 66 of file AliTPCclusterFast.cxx.

Referenced by GenerElectrons(), GetQmaxCorr(), GetQtotCorr(), and SetParam().

Float_t AliTPCclusterFast::fZ

z postion

Definition at line 67 of file AliTPCclusterFast.cxx.

Referenced by GenerElectrons(), GetQmaxCorr(), GetQtotCorr(), and SetParam().


The documentation for this class was generated from the following file: