Linear gain inefficiency instead of the step one at the wire edges.
authorkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 7 May 2002 17:23:11 +0000 (17:23 +0000)
committerkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 7 May 2002 17:23:11 +0000 (17:23 +0000)
TPC/AliTPC.cxx

index 3c59004dbd81fd7fdfb2921cdee634f5ea1ff575..742552ddc035ca2071e2d39d8685a625805d276d 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.56  2002/04/04 16:26:33  kowal2
+Digits (Sdigits) go to separate files now.
+
 Revision 1.55  2002/03/29 06:57:45  kowal2
 Restored backward compatibility to use the hits from Dec. 2000 production.
 
@@ -2314,13 +2317,12 @@ void AliTPC::MakeSector(Int_t isec,Int_t nrows,TTree *TH,
            y1 = fTPCParam->GetYOuter(rowNumber);
          }
 
+         // gain inefficiency at the wires edges - linear
+
          x1=TMath::Abs(x1);
-         if (y1-0.5 <x1) {
-           xyz[3]=0.;}
-         else{ 
-           if (y1 -1.<x1){
-             xyz[3]*=0.5;}
-         }                    
+         y1-=1.;
+          if(x1>y1) xyz[3]*=TMath::Max(1.e-6,(y1-x1+1.));      
+       
          nofElectrons[rowNumber]++;      
          //----------------------------------
          // Expand vector if necessary