From 07f6e8cc11f329c4cc20939b2dd99c670c27a22b Mon Sep 17 00:00:00 2001
From: Morfouace <pierre.morfouace@gmail.com>
Date: Wed, 13 May 2020 11:59:21 +0200
Subject: [PATCH] Adding Rogers4003C to MaterialManager

---
 NPSimulation/Core/MaterialManager.cc  | 13 +++++++++++++
 NPSimulation/Detectors/ChiNu/ChiNu.cc |  4 ++--
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/NPSimulation/Core/MaterialManager.cc b/NPSimulation/Core/MaterialManager.cc
index a4fe23398..e66bc6168 100644
--- a/NPSimulation/Core/MaterialManager.cc
+++ b/NPSimulation/Core/MaterialManager.cc
@@ -135,6 +135,19 @@ G4Material* MaterialManager::GetMaterialFromLibrary(string Name,
       return material;
     }
 
+    else if (Name == "Rogers4003C") {
+      if (!density)
+        density            = 1.79 * g / cm3;
+      G4Material* material = new G4Material("NPS_" + Name, density, 4);
+      material->AddElement(GetElementFromLibrary("H"), 2);
+      material->AddElement(GetElementFromLibrary("C"), 50);
+      material->AddElement(GetElementFromLibrary("O"), 38);
+      material->AddElement(GetElementFromLibrary("Si"), 10);
+      m_Material[Name] = material;
+      return material;
+    }
+
+ 
     else if (Name == "Mylar") {
       if (!density)
         density            = 1.397 * g / cm3;
diff --git a/NPSimulation/Detectors/ChiNu/ChiNu.cc b/NPSimulation/Detectors/ChiNu/ChiNu.cc
index 7d747ef2a..1f948124e 100644
--- a/NPSimulation/Detectors/ChiNu/ChiNu.cc
+++ b/NPSimulation/Detectors/ChiNu/ChiNu.cc
@@ -444,10 +444,10 @@ void ChiNu::ConstructDetector(G4LogicalVolume* world){
     BuildDetector()->MakeImprint(world,Det_pos,Rot,i);
   }
 
-  /*G4RotationMatrix* Rot_FC = new G4RotationMatrix(0,0,0);
+  G4RotationMatrix* Rot_FC = new G4RotationMatrix(0,0,0);
   G4ThreeVector Pos_FC = G4ThreeVector(0,0,0) ;
   BuildFissionChamber()->MakeImprint(world,Pos_FC,Rot_FC,0);
-*/
+
 
 }
 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
-- 
GitLab