]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removed a two places a multiplication of constants in the step manager and moved...
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 26 Oct 2001 12:58:34 +0000 (12:58 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 26 Oct 2001 12:58:34 +0000 (12:58 +0000)
PHOS/AliPHOSv1.cxx
PHOS/AliPHOSv1.h

index fd320bae4b1c8b4d4d1e165e3ec15f4a9eaa82ff..00521ce600418e16af11d1c194285b523c1a41de 100644 (file)
@@ -75,7 +75,9 @@ AliPHOSv0()
   fLightYieldAttenuation  = 0. ;  
   fRecalibrationFactor    = 0. ;    
   fElectronsPerGeV        = 0. ;
-  fAPDGain                = 0. ;    
+  fAPDGain                = 0. ;  
+  fLightFactor            = 0. ; 
+  fAPDFactor              = 0. ; 
 
 }
 
@@ -116,10 +118,13 @@ AliPHOSv1::AliPHOSv1(const char *name, const char *title):
   // The APD Gain is 300
   fLightYieldMean = 47000;
   fIntrinsicPINEfficiency = 0.02655 ; //APD= 0.1875/0.1271 * 0.018 (PIN)
-  fLightYieldAttenuation = 0.0045 ; 
-  fRecalibrationFactor = 13.418/ fLightYieldMean ;
-  fElectronsPerGeV = 2.77e+8 ;
-  fAPDGain= 300. ;
+  fLightYieldAttenuation  = 0.0045 ; 
+  fRecalibrationFactor    = 13.418/ fLightYieldMean ;
+  fElectronsPerGeV        = 2.77e+8 ;
+  fAPDGain                = 300. ;
+  fLightFactor            = fLightYieldMean * fIntrinsicPINEfficiency ; 
+  fAPDFactor              = (fRecalibrationFactor/100.) * fAPDGain ; 
+
 
   Int_t nb   = GetGeometry()->GetNModules() ; 
   
@@ -403,13 +408,12 @@ void AliPHOSv1::StepManager(void)
       
       //Calculates the light yield, the number of photns produced in the
       //crystal 
-      Float_t lightYield = gRandom->Poisson(fLightYieldMean * lostenergy *
-                                           fIntrinsicPINEfficiency * 
+      Float_t lightYield = gRandom->Poisson(fLightFactor * lostenergy *
                                            exp(-fLightYieldAttenuation *
                                                (local[1]+GetGeometry()->GetCrystalSize(1)/2.0 ))
                                            ) ;
       //Calculates de energy deposited in the crystal  
-      xyze[4] = (fRecalibrationFactor/100.) * fAPDGain * lightYield  ;
+      xyze[4] = fAPDFactor * lightYield  ;
       
       // add current hit to the hit list
       AddHit(fIshunt, primary,tracknumber, absid, xyze);
index 4b0a76e4aeba17e7fe68f0b3cd89354803ea8cf0..e388762ec2a10a24cd2e39a8ac0e31b1a58c8b0d 100644 (file)
@@ -87,6 +87,8 @@ protected:
   Float_t fRecalibrationFactor ;    // Recalibration factor
   Float_t fElectronsPerGeV ;        // Number of electrons per GeV created in the PIN by a ionizing particle
   Float_t fAPDGain ;                // APD Gain
+  Float_t fLightFactor ;            //! a calculated factor
+  Float_t fAPDFactor ;              //! a calculated factor
 
   ClassDef(AliPHOSv1,1)  // Implementation of PHOS manager class for layout EMC+PPSD