From 0b4995359dc3756852a9cd9795819b92c6d81089 Mon Sep 17 00:00:00 2001
From: matta <matta@npt>
Date: Mon, 10 May 2010 00:45:57 +0000
Subject: [PATCH] * Adding more option to cryogenic target 	-New case of
 Pressure/Temp added for D2

---
 NPSimulation/src/Target.cc | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/NPSimulation/src/Target.cc b/NPSimulation/src/Target.cc
index 4d7973141..e49953a67 100644
--- a/NPSimulation/src/Target.cc
+++ b/NPSimulation/src/Target.cc
@@ -77,6 +77,7 @@ G4Material* Target::GetMaterialFromLibrary(G4String MaterialName, G4double Tempe
 
       if (Pressure == 1) {
          G4cout << "CryoTarget pressure set to 1 bar" << G4endl;
+         
          if (Temperature == 24) {
             density = 0.0020182 * g / cm3;
             G4cout << "CryoTarget temp set to 24K" << G4endl;
@@ -91,14 +92,17 @@ G4Material* Target::GetMaterialFromLibrary(G4String MaterialName, G4double Tempe
             density = 0.001863 * g / cm3;
             G4cout << "CryoTarget temp set to 26K" << G4endl;
          }
+         
+         else if (Temperature == 30) {
+            density = 0.00020475 * g / cm3;
+            G4cout << "CryoTarget temp set to 30K" << G4endl;
+         }
 
          else {
             G4cout << ">>>  !!!!WARNING INVALID TEMP FOR CRYOGENIC TARGET!!!!  <<<" << G4endl;
          }
       }
 
-
-
       else if (Pressure == 0.5) {
          G4cout << "CryoTarget pressure set to 0.5 bar" << G4endl;
 
@@ -117,6 +121,17 @@ G4Material* Target::GetMaterialFromLibrary(G4String MaterialName, G4double Tempe
             G4cout << "CryoTarget temp set to 26K" << G4endl;
          }
 
+				
+				else if (Pressure == 0.7) {
+        G4cout << "CryoTarget pressure set to 0.7 bar" << G4endl;
+
+	        if (Temperature == 26) {
+	          density = 0.0013125 * g / cm3;
+	          G4cout << "CryoTarget temp set to 26K" << G4endl;
+	        }
+        }
+
+
          else {
             G4cout << ">>>  !!!!WARNING INVALID TEMP FOR CRYOGENIC TARGET!!!!  <<<" << G4endl;
          }
-- 
GitLab