Changeset 9067 for trunk/MagicSoft


Ignore:
Timestamp:
08/01/08 14:41:58 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/macros/plotdb.C

    r9022 r9067  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.50 2008-07-20 17:33:22 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.51 2008-08-01 13:41:57 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    550550    //inner camera
    551551    //from calib*.root
     552    plot.SetDescription("Median number of calibration phe in inner pixels;C [phe]", "CalPheI");
     553    plot.Plot("Calibration.fMedNumPheInner", 0, 200, 1);
     554    plot.SetDescription("Relative rms of calibration charge inner pixels;\\sigma_C [%]", "CalRmsI");
     555    plot.Plot("Calibration.fRelChargeRmsInner", 0, 0.5, 0.01);
    552556    plot.SetDescription("Conversion Factor inner Camera;C_{I} [phe/fadc cnts]", "ConvI");
    553557    plot.Plot("Calibration.fConvFactorInner",  0, 0.7, 0.002);
     
    605609    //plot.SetDescription("Pulse Variance;", "PulVar");
    606610    //plot.Plot("Calibration.fPulsePosVar", 0, 0.03, 0.001);
    607 
    608611
    609612    //from star*.root
     
    668671    //outer camera
    669672    //from calib*.root
     673    plot.SetDescription("Median number of calibration phe in outer pixels;C [phe]", "CalPheO");
     674    plot.Plot("Calibration.fMedNumPheOuter", 0, 200, 1);
     675    plot.SetDescription("Relative rms of calibration charge outer pixels;\\sigma_C [%]", "CalRmsO");
     676    plot.Plot("Calibration.fRelChargeRmsOuter", 0, 0.5, 0.01);
    670677    plot.SetDescription("Conversion Factor outer Camera;C_{O} [phe/fadc cnts]", "ConvO");
    671678    plot.Plot("Calibration.fConvFactorOuter",  0, 3.0, 0.01);
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc

    r9043 r9067  
    25502550        }
    25512551
     2552        if (name.Index("%%%%title%%%%"))
     2553        {
     2554            name.ReplaceAll("%%title%%", c->GetTitle());
     2555            found = kTRUE;
     2556        }
     2557
    25522558        if (name.Index("%%%%tab%%%%"))
    25532559        {
     
    27062712        //
    27072713        const Double_t height = 0.015;  // Text height
    2708         const Double_t off    = 0.005;  // Line offset from Text
     2714        const Double_t off    = 0.005;  // Line offset from text
    27092715
    27102716        const Double_t bot = height+off;
     
    29902996}
    29912997
     2998/*
     2999Bool_t MStatusDisplay::SaveAsCSV(Int_t num, TString name)
     3000{
     3001    num = InitWriteDisplay(num, name, "csv");
     3002    if (num==0)
     3003        return kFALSE;
     3004
     3005    gSystem->ExpandPathName(name);
     3006
     3007    ofstream fout(name);
     3008    if (!fout)
     3009    {
     3010        *fLog << err << "Cannot open file " << name << ": " << strerror(errno) << endl;
     3011        return kFALSE;
     3012    }
     3013
     3014    fout << "<?xml version=\"1.0\"?>" << endl;
     3015    fout << "<display name='" << GetName() << "'>" << endl;
     3016    fout << "   <file>" << name << "</file>" << endl;
     3017    fout << "   <status>" << endl;
     3018    fout << "      <name>" << GetName() << "</name>" << endl;
     3019    fout << "      <title>" << GetTitle() << "</title>" << endl;
     3020    fout << "   </status>" << endl;
     3021    fout << "   <tabs>" << endl;
     3022
     3023    fout << 0 << delim << GetName() << delim << GetTitle() << endl;
     3024
     3025    Int_t from, to;
     3026    GetCanvasRange(from, to, num);
     3027
     3028    for (int i=from; i<to; i++)
     3029    {
     3030        TCanvas *c;
     3031        if (!(c = GetCanvas(i)))
     3032        {
     3033            if (num<0)
     3034                *fLog << inf << " - ";
     3035            *fLog << "Tab #" << i << " doesn't contain an embedded Canvas... skipped." << endl;
     3036            continue;
     3037        }
     3038
     3039        fout << "      <tab index='" << i << "'>" << endl;
     3040        fout << "         <index>" << i << "</index>" << endl;
     3041        fout << "         <name>" << c->GetName()  << "</name>" << endl;
     3042        fout << "         <title>" << c->GetName()  << "</title>" << endl;
     3043        fout << "      </tab>" << endl;
     3044    }
     3045
     3046    fout << "  </tabs>" << endl;
     3047    fout << "</display>" << endl;
     3048
     3049    SetStatusLine2("Done.");
     3050
     3051    return kTRUE;
     3052}
     3053*/
     3054
    29923055// --------------------------------------------------------------------------
    29933056//
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.h

    r9038 r9067  
    269269
    270270     Bool_t SaveAsCSV(Int_t num, TString name="", Char_t delim='\t');
     271     //Bool_t SaveAsXML(Int_t num, TString name="",);
    271272     Int_t  PrintPS(Int_t num, const char *p=0, const char *cmd=0, const char *tmp=0);
    272273     Bool_t PrintLog(const char *p=0, const char *c=0);
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r8989 r9067  
    394394    write->AddContainer("MMcEvt",         "Events", kFALSE);
    395395    write->AddContainer("DataType",       "Events");
    396     write->AddContainer("RunNumber",      "Events");
     396    write->AddContainer("FileId",         "Events");
    397397    write->AddContainer("EvtNumber",      "Events");
    398398    //    write->AddContainer("MMuonSearchPar", "Events", kFALSE);
     
    716716    setevtnum.SetNameParameter("EvtNumber");
    717717
    718     MParameterCalc setrunnum("MRawRunHeader.fRunNumber", "SetRunNumber");
    719     setrunnum.SetNameParameter("RunNumber");
     718    MParameterCalc setrunnum("MRawRunHeader.GetFileID", "SetFileId");
     719    setrunnum.SetNameParameter("FileId");
    720720
    721721    MFillH fill1a("MHHillasOffPre  [MHHillas]",      "MHillas",      "FillHillasPre");
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc

    r8989 r9067  
    14771477    write->AddContainer("MWeight",        "Events");
    14781478    write->AddContainer("DataType",       "Events");
    1479     write->AddContainer("RunNumber",      "Events");
     1479    write->AddContainer("FileId",         "Events");
    14801480    write->AddContainer("EvtNumber",      "Events");
    14811481}
Note: See TracChangeset for help on using the changeset viewer.