Adding Cross section dummy function
[u/mrichter/AliRoot.git] / TGeant3 / TGeant3.cxx
index 141e0d869e4af73d5b921ac845df24a73f95039a..199ed01b0ebb5581f5c1084b02858f32e94bae15 100644 (file)
@@ -976,6 +976,19 @@ const char* TGeant3::VolName(Int_t id) const
   return name;
 }
 
+//_____________________________________________________________________________
+Float_t TGeant3::Xsec(char* reac, Float_t energy, Int_t part, Int_t mate)
+{
+  Int_t gpart = IdFromPDG(part);
+  if(!strcmp(reac,"PHOT"))
+  {
+    if(part!=22) {
+      Error("Xsec","Can calculate photoelectric only for photons\n");
+    }
+  }
+  return 0;
+}
+
 //_____________________________________________________________________________
 void TGeant3::TrackPosition(TLorentzVector &xyz) const
 {