]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
ATO-18 - a.) Removed upper limit on number of electrons. b.)Use qMax correction if...
authormivanov <marian.ivanov@cern.ch>
Wed, 24 Sep 2014 14:20:03 +0000 (16:20 +0200)
committermivanov <marian.ivanov@cern.ch>
Tue, 28 Oct 2014 21:08:30 +0000 (22:08 +0100)
TPC/fastSimul/AliTPCclusterFast.cxx
TPC/fastSimul/README.txt
TPC/fastSimul/simul.sh

index e3c1978ae7539d3829116e699e670ea1176b83c9..a55a6748118828b058208a790d42280cbbd7da9a 100644 (file)
@@ -454,7 +454,7 @@ void AliTPCclusterFast::Init(){
   //
   // reset all counters  
   //
-  const Int_t knMax=1000;
+  const Int_t knMax=10000;
   fMNprim=0;     // mean number of primary electrons
   //                   //electrons part input
   fNprim=0;      // mean number of primary electrons
@@ -676,6 +676,7 @@ Double_t  AliTPCclusterFast::GetQtotCorr(Float_t rmsy0, Float_t rmsz0, Float_t g
   Double_t sz = TMath::Sqrt(rmsz0*rmsz0+fDiff*fDiff);
   Double_t sumAll=0,sumThr=0;
   Double_t qtot = GetQtot(gain,thr,0); // sum of signal over threshold
+  Double_t qmax = GetQmax(gain,thr,0); // qmax
   //
   Double_t corr =1;
   Double_t qnorm=qtot;
@@ -688,6 +689,7 @@ Double_t  AliTPCclusterFast::GetQtotCorr(Float_t rmsy0, Float_t rmsz0, Float_t g
        sumAll+=qlocal;
       }
     if (sumAll>0&&sumThr>0) corr=(sumThr)/sumAll;
+    if (sumThr==0) corr=GetQmaxCorr(0.5,0.5);
     //corr = sumThr;
     if (corr>0) qnorm=qtot/corr;
     
index 4f3fc004e3c3b2f954983235137bd78304969f91..3f6bccb4925862596c9e441b8e2de3db92e4424f 100644 (file)
@@ -18,9 +18,9 @@ a) Which macro to use (I know it was somewhere in AliRoot
 
    Example case - submit 40 jobs with 100 tracks.
    
-   source $ALICE_ROOT/TPCdev/TPC/fastSimul/simul.sh
+   source $ALICE_ROOT/TPC/fastSimul/simul.sh
    makeEnvLocal             #this is just example please setup your environmnet script to set env variables 
-   makeSubmitRUN 40 100
+   makeSubmitRUN 80 100 0.9
 
 c) what do I need to run it (aliroot version?) 
    Recent AliRoot
index b2f563ab03fcd75b2d0e26c1e21dcdae6cb2f972..5f9c0424e790740b5565b116c4b3d4a95f01eb10 100755 (executable)
@@ -32,7 +32,7 @@ exampleCase(){
 # 
    source $ALICE_ROOT/TPC/fastSimul/simul.sh
    makeEnvLocal
-   makeSubmitRUN 80 400 0.3
+   makeSubmitRUN 160 1600 0.6
    ls `pwd`/MC*/trackerSimul.root >  trackerSimul.list
 
 }