Corrected bug in Init() added material parameters for Fuka
authorkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Oct 2007 10:56:14 +0000 (10:56 +0000)
committerkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Oct 2007 10:56:14 +0000 (10:56 +0000)
TPC/AliTPCv2.cxx

index fafc0f9eb0cf7765b185d37b24f0d6ce9e6237ef..a32830ebf8eb5f1cddfa17df20ea838bb0750a7f 100644 (file)
@@ -1146,7 +1146,15 @@ void AliTPCv2::Init()
 
   gMC->SetMaxNStep(30000); // max. number of steps increased
 
-  gMC->Gstpar(idtmed[2],"LOSS",5); // specific energy loss
+  if (fPrimaryIonisation) {
+      gMC->Gstpar(idtmed[2],"PRIMIO_E", 20.77); // 1st ionisation potential
+      gMC->Gstpar(idtmed[2],"PRIMIO_N", 14.35);
+      gMC->Gstpar(idtmed[2],"LOSS", 14); // specific energy loss
+  } else {
+      gMC->Gstpar(idtmed[2],"LOSS", 5); // specific energy loss
+  }
+
 
   AliInfo("*** TPC version 2 initialized ***");
   AliInfo(Form("Maximum number of steps = %d",gMC->GetMaxNStep()));