]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCAL.cxx
Added methods for chi2 calculation
[u/mrichter/AliRoot.git] / EMCAL / AliEMCAL.cxx
index b030d72638f9b7d3b837c07ef13c7873c1fa1ac2..8b912b90ecde94ea17b1bd017bcb8aa9f01f9451 100644 (file)
@@ -125,6 +125,7 @@ void AliEMCAL::InitConstants()
   fBirkC2 = 9.6e-6/(1.032 * 1.032);
   }
 
+
 //____________________________________________________________________________
 void AliEMCAL::DefineMediumParameters()
 {
@@ -277,8 +278,20 @@ void AliEMCAL::CreateMaterials()
   fBirkC2 =  9.6e-6/(dP * dP);
 
   // Call just in case of Geant3; What to do in case of Geant4 ?
-  if(gMC->InheritsFrom("TGeant3")) DefineMediumParameters(); // Feb 20, 2007
+  // if(gMC->InheritsFrom("TGeant3")) DefineMediumParameters(); // Feb 20, 2007
+  // Just do the same but in Init() function
+  // DefineMediumParameters(); 
 }
+
+//____________________________________________________________________________
+void  AliEMCAL::Init()
+{
+  // Call just in case of Geant3; What to do in case of Geant4 ?
+  // if(gMC->InheritsFrom("TGeant3")) DefineMediumParameters(); // Feb 20, 2007
+  // Just do the same
+  DefineMediumParameters(); 
+}     
+
 //____________________________________________________________________________
 void AliEMCAL::Digits2Raw() {