Index: trunk/Mars/fact/analysis/callisto_data.C
===================================================================
--- trunk/Mars/fact/analysis/callisto_data.C	(revision 19249)
+++ trunk/Mars/fact/analysis/callisto_data.C	(revision 19266)
@@ -75,5 +75,5 @@
     // Extraction type: Extract integral and half leading edge
 
-    const int type = maximum ? (MExtralgoSpline::kIntegralRel) : (MExtralgoSpline::kIntegralFixed);
+    const MExtralgoSpline::ExtractionType_t type = maximum ? (MExtralgoSpline::kIntegralRel) : (MExtralgoSpline::kIntegralFixed);
     //const int type = MExtralgoSpline::kIntegralFixed;
 
@@ -355,5 +355,5 @@
     fill5ped.SetFilter(&filterped);
 
-    MHCamEvent evt5b(0, "ExtSig",   "Extracted signal;;S [mV·sl]");
+    MHCamEvent evt5b(0, "ExtSig",   "Extracted signal;;S [mV#dot sl]");
     MHCamEvent evt5c(0, "CalSig",   "Calibrated and interpolated signal;;S [~phe]");
     MHCamEvent evt5d(4, "ExtSigTm", "Extracted time;;T [sl]");
@@ -458,5 +458,5 @@
     // ============================================================
 
-    TFile *ofile = gROOT->GetListOfFiles()->FindObject(fname);
+    TFile *ofile = (TFile*)gROOT->GetListOfFiles()->FindObject(fname);
     if (!ofile || !ofile->IsOpen() || ofile->IsZombie())
     {
Index: trunk/Mars/fact/analysis/mc/callisto_data.C
===================================================================
--- trunk/Mars/fact/analysis/mc/callisto_data.C	(revision 19249)
+++ trunk/Mars/fact/analysis/mc/callisto_data.C	(revision 19266)
@@ -5,5 +5,5 @@
 #include "MLogManip.h"
 
-#if !defined(__CINT__) || defined(__MAKECINT__)
+#if (!defined(__CINT__) && !defined(__CLING__)) || defined(__MAKECINT__)
 
 #include "TH1F.h"
@@ -285,5 +285,5 @@
     treat5.SetProcessPedestalEvt(kFALSE);
 
-    MHCamEvent evt5b(0, "ExtSig",   "Extracted signal;;S [mV·sl]");
+    MHCamEvent evt5b(0, "ExtSig",   "Extracted signal;;S [mV#dot sl]");
     MHCamEvent evt5c(0, "CalSig",   "Calibrated and interpolated signal;;S [~phe]");
     MHCamEvent evt5d(4, "ExtSigTm", "Extracted time;;T [sl]");
Index: trunk/Mars/fact/analysis/mc/ganymed.C
===================================================================
--- trunk/Mars/fact/analysis/mc/ganymed.C	(revision 19249)
+++ trunk/Mars/fact/analysis/mc/ganymed.C	(revision 19266)
@@ -1,3 +1,3 @@
-void SetupWriter(MWriteRootFile *write, const char *name, Bool_t ismc) const
+void SetupWriter(MWriteRootFile *write, const char *name, Bool_t ismc)
 {
     if (!write)
@@ -153,5 +153,5 @@
     scale.SetVal(1./fNumOffSourcePos);
 
-    MHThetaSq *halphaoff = plist.FindCreateObj("MHThetaSq", "HistOff");
+    MHThetaSq *halphaoff = (MHThetaSq*)plist.FindCreateObj("MHThetaSq", "HistOff");
     halphaoff->ForceUsingSize();
 
@@ -385,5 +385,5 @@
     fill3d.SetFilter(&ftheta);
 
-    MHThetaSq *halphaon = plist.FindCreateObj("MHThetaSq", "Hist");
+    MHThetaSq *halphaon = (MHThetaSq*)plist.FindCreateObj("MHThetaSq", "Hist");
     halphaon->ForceUsingSize();
 
Index: trunk/Mars/fact/analysis/mc/star.C
===================================================================
--- trunk/Mars/fact/analysis/mc/star.C	(revision 19249)
+++ trunk/Mars/fact/analysis/mc/star.C	(revision 19266)
@@ -5,5 +5,7 @@
 #include "MLogManip.h"
 
-#if !defined(__CINT__) || defined(__MAKECINT__)
+#if (!defined(__CINT__) && !defined(__CLING__)) || defined(__MAKECINT__)
+
+#error test1
 
 #include "TH1F.h"
@@ -212,5 +214,5 @@
 
     MH3 hrate("MRawRunHeader.GetFileID"/*, "MRawEvtHeader.GetTriggerID"*/);
-    hrate.SetWeight("1./TMath::Max(MRawRunHeader.GetRunLength,1)");
+    hrate.SetWeight("1./TMath::Max(MRawRunHeader.GetRunLength,1.)");
     hrate.SetName("Rate");
     hrate.SetTitle("Event rate after cleaning;File Id;Event Rate [Hz];");
Index: trunk/Mars/fact/analysis/merpp.C
===================================================================
--- trunk/Mars/fact/analysis/merpp.C	(revision 19249)
+++ trunk/Mars/fact/analysis/merpp.C	(revision 19266)
@@ -13,5 +13,5 @@
 
     MRawRunHeader *h = NULL;
-    TTree *tree = file.Get("RunHeaders");
+    TTree *tree = (TTree*)file.Get("RunHeaders");
     if (!tree)
     {
@@ -125,5 +125,5 @@
 
     TString file = Form("/scratch/fact/sequences/%04d/%02d/%02d/%06d_%03d.seq",
-                        night/10000, (night/100)%100, night%100, num);
+                        night/10000, (night/100)%100, night%100, night, num);
 
     return merpp(file.Data(), path);
Index: trunk/Mars/fact/analysis/merpp_file.C
===================================================================
--- trunk/Mars/fact/analysis/merpp_file.C	(revision 19249)
+++ trunk/Mars/fact/analysis/merpp_file.C	(revision 19266)
@@ -1,5 +1,5 @@
 #include "MLogManip.h"
 
-void merpp(TString &froot, const char *id, const char *faux)
+void merpp(TString froot, const char *id, const char *faux)
 {
     gLog.Separator(froot+" - "+TString(id));
@@ -13,5 +13,5 @@
 
     MRawRunHeader *h = NULL;
-    TTree *tree = file.Get("RunHeaders");
+    TTree *tree = (TTree*)file.Get("RunHeaders");
     if (!tree)
     {
Index: trunk/Mars/fact/analysis/star_file.C
===================================================================
--- trunk/Mars/fact/analysis/star_file.C	(revision 19249)
+++ trunk/Mars/fact/analysis/star_file.C	(revision 19266)
@@ -277,5 +277,5 @@
     // ============================================================
 
-    TFile *ofile = gROOT->GetListOfFiles()->FindObject(fname);
+    TFile *ofile = (TFile*)gROOT->GetListOfFiles()->FindObject(fname);
     if (!ofile || !ofile->IsOpen() || ofile->IsZombie())
     {
