From 45293ae95faa458a608e82a87f537beb4ea05ac0 Mon Sep 17 00:00:00 2001
From: marc ernoult <ernoult@ipno.in2p3.fr>
Date: Wed, 5 Jun 2013 14:28:16 +0000
Subject: [PATCH] by Marc Add FabricationPlants to the TTree for Root reading

git-svn-id: svn+ssh://svn.in2p3.fr/class@83 0e7d625b-0364-4367-a6be-d5be4a48d228
---
 source/trunk/src/CLASS.cxx | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/source/trunk/src/CLASS.cxx b/source/trunk/src/CLASS.cxx
index 78a892786..9579ef8f5 100755
--- a/source/trunk/src/CLASS.cxx
+++ b/source/trunk/src/CLASS.cxx
@@ -179,7 +179,6 @@ DBGL;
 DBGL;
 }
 
-
 //________________________________________________________________________
 void CLASS::BuildTimeVector(cSecond t)
 {
@@ -382,7 +381,6 @@ DBGL;
 
 	BuildTimeVector( (cSecond)t );
 
-
 	
 	OpenOutputTree();
 
@@ -595,6 +593,7 @@ DBGL;
 	fOutT->Branch("AbsTime",&fAbsoluteTime,"AbsoluteTime/l");
 	//Branch The Power installed in the Parc
 	fOutT->Branch("ParcPower",&fParcPower,"ParcPower/D");
+	
 
 	// Branch the Sum IV
 
@@ -608,6 +607,8 @@ DBGL;
 	
 	fOutT->Branch("GOD.", "IsotopicVector", &fGod);
 	fOutT->Branch("WASTE.", "IsotopicVector", &fWaste);
+
+	// Branch the separate object
 	
 	for(int i = 0; i < (int)fStorage.size(); i++)
 	{
@@ -633,6 +634,13 @@ DBGL;
 		R_name += ".";		
 		fOutT->Branch(R_name.c_str(), "Reactor", &fReactor[i]);
 	}
+	for(int i = 0; i < (int)fFabricationPlant.size(); i++)
+	{
+		string FP_name = "FabricationPlant";
+		FP_name += dtoa(i);
+		FP_name += ".";		
+		fOutT->Branch(FP_name.c_str(), "FabricationPlant", &fFabricationPlant[i]);
+	}
 DBGL;
 }
 
-- 
GitLab