Index: /trunk/MagicSoft/Mars/macros/CT1Analysis.C
===================================================================
--- /trunk/MagicSoft/Mars/macros/CT1Analysis.C	(revision 2314)
+++ /trunk/MagicSoft/Mars/macros/CT1Analysis.C	(revision 2315)
@@ -77,9 +77,12 @@
 
         MBinning *binth = new MBinning("BinningTheta");
-        Double_t yedge[9] = 
-                       {0.0, 17.5, 23.5, 29.5, 35.5, 42., 50., 60., 70.};
+        //Double_t yedge[9] = 
+        //               {0.0, 17.5, 23.5, 29.5, 35.5, 42., 50., 60., 70.};
+        // this is Daniel's binning in theta
+        Double_t yedge[8] = 
+          {9.41, 16.22, 22.68, 28.64, 34.03, 38.84, 43.08, 44.99};
         //TArrayD yed(9,yedge);
         TArrayD yed;
-        yed.Set(9,yedge);
+        yed.Set(8,yedge);
         binth->SetEdges(yed);
         plist->AddToList(binth);
@@ -232,5 +235,5 @@
     //  - update the input files with the hadroness (ON1.root or MC1.root)
 
-    Bool_t JobB_SC_UP  = kTRUE;
+    Bool_t JobB_SC_UP  = kFALSE;
     Bool_t RMatrix     = kFALSE;  // read matrices from file  
     Bool_t WParSC      = kFALSE;  // do optimization and write supercuts 
@@ -296,6 +299,6 @@
     //  - write root file for ON data after final cuts 
 
-    Bool_t JobF_XX  = kFALSE;  
-    Bool_t WFX      = kFALSE;  // write out root file  ?
+    Bool_t JobF_XX  = kTRUE;  
+    Bool_t WFX      = kTRUE;  // write out root file  ?
 
 
@@ -3275,5 +3278,5 @@
 
     gLog << "" << endl;
-    gLog << "Macro CT1Analysis : JobF_XX, WXX = " 
+    gLog << "Macro CT1Analysis : JobF_XX, WFX = " 
          << JobF_XX  << ",  " << WFX << endl;
 
@@ -3536,7 +3539,11 @@
     //.......................................................................
 
-    if (WFX)
-    {
-      MWriteRootFile &write = *(new MWriteRootFile(filenameDataout));
+    //if (WFX)
+    //{
+      gLog << "CT1Analysis.C : write root file '" << filenameDataout 
+           << "'" << endl;
+   
+      //MWriteRootFile &write = *(new MWriteRootFile(filenameDataout));
+      MWriteRootFile write(filenameDataout, "RECREATE");
 
       write.AddContainer("MRawRunHeader", "RunHeaders");
@@ -3556,5 +3563,5 @@
 
       write.AddContainer("MEnergyEst",    "Events");
-    }
+      //}
 
     //-----------------------------------------------------------------
@@ -3717,5 +3724,5 @@
     pliston.FindObject("MHStarMap")->DrawClone();
 
-    DeleteBinnings(&pliston);
+    //DeleteBinnings(&pliston);
 
 
@@ -3777,5 +3784,5 @@
 //rwagner (ON/OFF/MC), MJDmin, MJDmax to this file
 
-    outfile.Close();
+    //outfile.Close();
 
     gLog << "=======================================================" << endl;
