From d5a6b28bffaf9601c26749ce85e53c06737aef07 Mon Sep 17 00:00:00 2001 From: fca Date: Tue, 14 Sep 1999 07:04:18 +0000 Subject: [PATCH] Adding Cross section dummy function --- TGeant3/TGeant3.cxx | 13 +++++++++++++ TGeant3/TGeant3.h | 1 + 2 files changed, 14 insertions(+) diff --git a/TGeant3/TGeant3.cxx b/TGeant3/TGeant3.cxx index 141e0d869e4..199ed01b0eb 100644 --- a/TGeant3/TGeant3.cxx +++ b/TGeant3/TGeant3.cxx @@ -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 { diff --git a/TGeant3/TGeant3.h b/TGeant3/TGeant3.h index a2e26129c5f..0ea4517e273 100644 --- a/TGeant3/TGeant3.h +++ b/TGeant3/TGeant3.h @@ -555,6 +555,7 @@ public: Int_t PDGFromId(Int_t pdg) const; void DefineParticles(); const char* VolName(Int_t id) const; + Float_t Xsec(char*, Float_t, Int_t, Int_t); void TrackPosition(TLorentzVector &xyz) const; void TrackMomentum(TLorentzVector &xyz) const; Int_t NofVolumes() const; -- 2.31.1