From c40cdd78643f73872c8ef2d8899b3ad72a896256 Mon Sep 17 00:00:00 2001 From: mivanov Date: Tue, 4 Mar 2014 16:08:36 +0100 Subject: [PATCH] Calculate fraction of missing clusters --- TPC/fastSimul/AliTPCclusterFast.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/TPC/fastSimul/AliTPCclusterFast.cxx b/TPC/fastSimul/AliTPCclusterFast.cxx index afc064cf4f0..e5b989ab1f8 100644 --- a/TPC/fastSimul/AliTPCclusterFast.cxx +++ b/TPC/fastSimul/AliTPCclusterFast.cxx @@ -366,6 +366,8 @@ Double_t AliTPCtrackFast::CookdEdx(Int_t npoints, Double_t *amp,Double_t f0,Flo // dependening on the mode 0 amplitude can be skipped Float_t sum0=0, sum1=0,sum2=0; Int_t accepted=0; + Int_t above=0; + for (Int_t i=0;i0) above++; for (Int_t i=0;iRndm()); + fast.fMNprim=(10.+50*gRandom->Rndm()); + if (gRandom->Rndm()>0.25) fast.fMNprim=1./(0.0001+gRandom->Rndm()*0.1); + fast.fDiff =0.01 +0.35*gRandom->Rndm(); // fast.fAngleY = 4.0*(gRandom->Rndm()-0.5); fast.fAngleZ = 4.0*(gRandom->Rndm()-0.5); - fast.fN = TMath::Nint(80.+gRandom->Rndm()*80.); + fast.fN = 160; fast.MakeTrack(); if (itr%100==0) printf("%d\n",itr); cstream<<"simulTrack"<< -- 2.39.3