From 9ca0a93abc886d5aa9eb7e21523b9baf71848927 Mon Sep 17 00:00:00 2001
From: Andreas Adelmann <andreas.adelmann@psi.ch>
Date: Thu, 19 Oct 2017 20:42:49 +0200
Subject: [PATCH] add boron carbide

---
 src/Classic/Solvers/CollimatorPhysics.cpp | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/src/Classic/Solvers/CollimatorPhysics.cpp b/src/Classic/Solvers/CollimatorPhysics.cpp
index 259f1dddf..d53bb46ef 100644
--- a/src/Classic/Solvers/CollimatorPhysics.cpp
+++ b/src/Classic/Solvers/CollimatorPhysics.cpp
@@ -688,6 +688,20 @@ void  CollimatorPhysics::Material() {
         A5_c = 1.568e-2;
     }
 
+    else if (material_m == "BoronCarbide") {
+        Z_m = 26;
+        A_m = 55.25;
+        rho_m = 2.48;
+
+        X0_m = 50.14 / rho_m / 100;
+        I_m = 12 * Z_m + 7.0;
+
+        A2_c = 3.963;
+        A3_c = 6065.0;
+        A4_c = 1243.0;
+        A5_c = 7.782e-3;
+    }
+
     else {
         throw GeneralClassicException("CollimatorPhysics::Material", "Material not found ...");
     }
@@ -1166,4 +1180,4 @@ void CollimatorPhysics::deleteParticleFromLocalVectorDKS() {
 
 }
 
-#endif
\ No newline at end of file
+#endif
-- 
GitLab