Index: trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx	(revision 780)
+++ trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx	(revision 781)
@@ -21,7 +21,7 @@
 //
 // $RCSfile: camera.cxx,v $
-// $Revision: 1.24 $
-// $Author: magicsol $ 
-// $Date: 2001-04-06 16:48:09 $
+// $Revision: 1.25 $
+// $Author: blanch $ 
+// $Date: 2001-05-08 08:07:54 $
 //
 ////////////////////////////////////////////////////////////////////////
@@ -63,4 +63,5 @@
 #include "MLons.hxx"
 
+#include "MRawRunHeader.h"
 #include "MRawEvtData.h"
 #include "MRawEvtHeader.h"
@@ -784,4 +785,11 @@
   // Prepare the raw data output
 
+       // Header Tree
+
+  MRawRunHeader **RunHeader;
+
+  RunHeader = new MRawRunHeader * [1]; 
+  RunHeader[0] = new MRawRunHeader();
+
        // Header branch
 
@@ -819,9 +827,12 @@
 
   //      create a Tree for the Header Event
-  TTree HeaderTree("McHeaders","Monte Carlo Header of Run");
+  TTree HeaderTree("RunHeaders","Headers of Run");
   
   //      define branches of Header Tree
 
   char help[4];  
+
+  HeaderTree.Branch("MRawRunHeader","MRawRunHeader",
+  		    &RunHeader[0], bsize, split);
 
   if(!Trigger_Loop && Write_McTrig){
@@ -834,5 +845,5 @@
       
       sprintf(help,"%i",i+1);
-      strcpy (branchname, "MMcTrigHeader");
+      strcpy (branchname, "MMcTrigHeader;");
       strcat (branchname, & help[0]);
       strcat (branchname, ".");
@@ -851,5 +862,5 @@
       
       sprintf(help,"%i",i+1);
-      strcpy (branchname, "MMcFadcHeader");
+      strcpy (branchname, "MMcFadcHeader;");
       strcat (branchname, & help[0]);
       strcat (branchname, ".");
@@ -858,4 +869,14 @@
     }
   }  
+
+  //  Fill branches for MRawRunHeader
+
+  RunHeader[0]->SetMagicNumber(kMagicNumber);
+  RunHeader[0]->SetFormatVersion(2);
+  RunHeader[0]->SetSoftVersion((UShort_t) (VERSION*10));
+  RunHeader[0]->SetRunType(256);
+  RunHeader[0]->SetRunNumber(0);
+  RunHeader[0]->SetNumSamples(0,FADC_SLICES);
+
 
   //  Fill branches for MMcTrigHeader
@@ -957,5 +978,5 @@
       
 	sprintf(help,"%i",i+1);
-	strcpy (branchname, "MMcTrig");
+	strcpy (branchname, "MMcTrig;");
 	strcat (branchname, & help[0]);
 	strcat (branchname, ".");
@@ -970,5 +991,5 @@
       
       sprintf(help,"%i",i+1);
-      strcpy (branchname, "MRawEvtHeader");
+      strcpy (branchname, "MRawEvtHeader;");
       strcat (branchname, & help[0]);
       strcat (branchname, ".");
@@ -979,5 +1000,5 @@
       
       sprintf(help,"%i",i+1);
-      strcpy (branchname, "MRawEvtData");
+      strcpy (branchname, "MRawEvtData;");
       strcat (branchname, & help[0]);
       strcat (branchname, ".");
@@ -3217,4 +3238,8 @@
 //
 // $Log: not supported by cvs2svn $
+// Revision 1.24  2001/04/06 16:48:09  magicsol
+// New camera version able to read the new format of the reflector output:
+// reflector 0.4
+//
 // Revision 1.23  2001/03/28 16:13:41  blanch
 // While feeling the MMcFadeHeader branch the boolean conditoin was wrong. It has
@@ -3269,4 +3294,8 @@
 //
 // $Log: not supported by cvs2svn $
+// Revision 1.24  2001/04/06 16:48:09  magicsol
+// New camera version able to read the new format of the reflector output:
+// reflector 0.4
+//
 // Revision 1.23  2001/03/28 16:13:41  blanch
 // While feeling the MMcFadeHeader branch the boolean conditoin was wrong. It has
