]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALFast.cxx
Log replaced by Id
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALFast.cxx
index 47f48ac29c39d862d5938dc9a293909a20cf25ae..ac9f4f2380cadce3ac05aaa60ca52c4d22cb3a92 100644 (file)
  **************************************************************************/
 
 
-/*
-$Log$
-Revision 1.2  2002/01/18 03:27:12  morsch
-Acceptance and random rejection added.
-
-*/
-
+/* $Id$ */
 
 //*-- Author: Andreas Morsch (CERN)
 
@@ -71,14 +65,12 @@ Float_t AliEMCALFast::Efficiency(Int_t ind, Float_t p)
 // below 0.5 GeV goes down to about 70% at 0.2 GeV.
 // On top of that there is 90% geometrical acceptance for tracking due
 // to TPC (dead zones between readout chambers).  
-    Float_t eff = 0.;
 // Tracking 
-    if (p > 0.5) {
-       eff = 0.9;
-       if (ind == 2) eff = 0.95;
-    } else {
-       eff = eff-(0.5-p)*0.2/0.3;
-    }
+//      
+    Float_t eff = 0.9;
+    if (ind == 2) eff  = 0.95;
+    if (p < 0.5) eff -= (0.5-p)*0.2/0.3;
+// Geometry
     eff *= 0.9;
 // Acceptance    
     return eff;