Ignore:
Timestamp:
10/22/18 20:50:24 (6 years ago)
Author:
tbretz
Message:
Fixed some minor issues with the cling based interpreter - this should not have any effect at runtime maybe except stability
Location:
trunk/Mars/fact/analysis
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/fact/analysis/callisto_data.C

    r18577 r19266  
    7575    // Extraction type: Extract integral and half leading edge
    7676
    77     const int type = maximum ? (MExtralgoSpline::kIntegralRel) : (MExtralgoSpline::kIntegralFixed);
     77    const MExtralgoSpline::ExtractionType_t type = maximum ? (MExtralgoSpline::kIntegralRel) : (MExtralgoSpline::kIntegralFixed);
    7878    //const int type = MExtralgoSpline::kIntegralFixed;
    7979
     
    355355    fill5ped.SetFilter(&filterped);
    356356
    357     MHCamEvent evt5b(0, "ExtSig",   "Extracted signal;;S [mV·sl]");
     357    MHCamEvent evt5b(0, "ExtSig",   "Extracted signal;;S [mV#dot sl]");
    358358    MHCamEvent evt5c(0, "CalSig",   "Calibrated and interpolated signal;;S [~phe]");
    359359    MHCamEvent evt5d(4, "ExtSigTm", "Extracted time;;T [sl]");
     
    458458    // ============================================================
    459459
    460     TFile *ofile = gROOT->GetListOfFiles()->FindObject(fname);
     460    TFile *ofile = (TFile*)gROOT->GetListOfFiles()->FindObject(fname);
    461461    if (!ofile || !ofile->IsOpen() || ofile->IsZombie())
    462462    {
  • trunk/Mars/fact/analysis/mc/callisto_data.C

    r18579 r19266  
    55#include "MLogManip.h"
    66
    7 #if !defined(__CINT__) || defined(__MAKECINT__)
     7#if (!defined(__CINT__) && !defined(__CLING__)) || defined(__MAKECINT__)
    88
    99#include "TH1F.h"
     
    285285    treat5.SetProcessPedestalEvt(kFALSE);
    286286
    287     MHCamEvent evt5b(0, "ExtSig",   "Extracted signal;;S [mV·sl]");
     287    MHCamEvent evt5b(0, "ExtSig",   "Extracted signal;;S [mV#dot sl]");
    288288    MHCamEvent evt5c(0, "CalSig",   "Calibrated and interpolated signal;;S [~phe]");
    289289    MHCamEvent evt5d(4, "ExtSigTm", "Extracted time;;T [sl]");
  • trunk/Mars/fact/analysis/mc/ganymed.C

    r17733 r19266  
    1 void SetupWriter(MWriteRootFile *write, const char *name, Bool_t ismc) const
     1void SetupWriter(MWriteRootFile *write, const char *name, Bool_t ismc)
    22{
    33    if (!write)
     
    153153    scale.SetVal(1./fNumOffSourcePos);
    154154
    155     MHThetaSq *halphaoff = plist.FindCreateObj("MHThetaSq", "HistOff");
     155    MHThetaSq *halphaoff = (MHThetaSq*)plist.FindCreateObj("MHThetaSq", "HistOff");
    156156    halphaoff->ForceUsingSize();
    157157
     
    385385    fill3d.SetFilter(&ftheta);
    386386
    387     MHThetaSq *halphaon = plist.FindCreateObj("MHThetaSq", "Hist");
     387    MHThetaSq *halphaon = (MHThetaSq*)plist.FindCreateObj("MHThetaSq", "Hist");
    388388    halphaon->ForceUsingSize();
    389389
  • trunk/Mars/fact/analysis/mc/star.C

    r17871 r19266  
    55#include "MLogManip.h"
    66
    7 #if !defined(__CINT__) || defined(__MAKECINT__)
     7#if (!defined(__CINT__) && !defined(__CLING__)) || defined(__MAKECINT__)
     8
     9#error test1
    810
    911#include "TH1F.h"
     
    212214
    213215    MH3 hrate("MRawRunHeader.GetFileID"/*, "MRawEvtHeader.GetTriggerID"*/);
    214     hrate.SetWeight("1./TMath::Max(MRawRunHeader.GetRunLength,1)");
     216    hrate.SetWeight("1./TMath::Max(MRawRunHeader.GetRunLength,1.)");
    215217    hrate.SetName("Rate");
    216218    hrate.SetTitle("Event rate after cleaning;File Id;Event Rate [Hz];");
  • trunk/Mars/fact/analysis/merpp.C

    r17885 r19266  
    1313
    1414    MRawRunHeader *h = NULL;
    15     TTree *tree = file.Get("RunHeaders");
     15    TTree *tree = (TTree*)file.Get("RunHeaders");
    1616    if (!tree)
    1717    {
     
    125125
    126126    TString file = Form("/scratch/fact/sequences/%04d/%02d/%02d/%06d_%03d.seq",
    127                         night/10000, (night/100)%100, night%100, num);
     127                        night/10000, (night/100)%100, night%100, night, num);
    128128
    129129    return merpp(file.Data(), path);
  • trunk/Mars/fact/analysis/merpp_file.C

    r18077 r19266  
    11#include "MLogManip.h"
    22
    3 void merpp(TString &froot, const char *id, const char *faux)
     3void merpp(TString froot, const char *id, const char *faux)
    44{
    55    gLog.Separator(froot+" - "+TString(id));
     
    1313
    1414    MRawRunHeader *h = NULL;
    15     TTree *tree = file.Get("RunHeaders");
     15    TTree *tree = (TTree*)file.Get("RunHeaders");
    1616    if (!tree)
    1717    {
  • trunk/Mars/fact/analysis/star_file.C

    r18578 r19266  
    277277    // ============================================================
    278278
    279     TFile *ofile = gROOT->GetListOfFiles()->FindObject(fname);
     279    TFile *ofile = (TFile*)gROOT->GetListOfFiles()->FindObject(fname);
    280280    if (!ofile || !ofile->IsOpen() || ofile->IsZombie())
    281281    {
Note: See TracChangeset for help on using the changeset viewer.