Changeset 6604 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
02/18/05 16:29:20 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6598 r6604  
    2929
    3030
     31
    3132 2005/02/18 Thomas Bretz
    3233
     
    4041     - added Add*Runs member function
    4142     - with this changes MSequence can replace MRunIter now
     43     - allow requesting of standard path from outside
     44       (GetStandardPath)
     45
     46   * Makefile:
     47     - added sinope
     48
     49   * sinope.cc:
     50     - added (small tool to check contents of run for datacenter)
     51
     52   * callisto.cc:
     53     - added background information about Callisto
     54
     55   * ganymed.cc:
     56     - added background information about Ganymed
     57
     58   * mjobs/MJCalibrateSignal.cc:
     59     - removed special MC code. The MC files now have a lo-gain
     60       switch and we can extract the pedestal rms from lo-gain
     61     - don't print statistics if nothing was executed
    4262
    4363
  • trunk/MagicSoft/Mars/Makefile

    r6459 r6604  
    2020#
    2121#PROGRAMS = readraw merpp mars test mona status
    22 PROGRAMS = readdaq merpp readraw callisto star ganymed showlog showplot mars mona
     22PROGRAMS = readdaq merpp readraw sinope callisto star ganymed showlog showplot mars mona
    2323SOLIB    = libmars.so
    2424CINT     = M
  • trunk/MagicSoft/Mars/callisto.cc

    r6569 r6604  
    102102    gLog << " showplot or MStatusDisplay in the interpreter.  A description  of  a" << endl;
    103103    gLog << " sequence-file can be found in the class reference of MSequence." << endl << endl;
     104    gLog << "Background:" << endl;
     105    gLog << " Callisto is a large,  icy,  dark-colored,  low-density outer moon of" << endl;
     106    gLog << " Jupiter that is scarred with  impact craters  and  ejecta.  It has a" << endl;
     107    gLog << " diameter of about 4800km, the second-largest moon of Jupiter;  it is" << endl;
     108    gLog << " roughly the size of  Mercury.  Callisto has the largest-known impact" << endl;
     109    gLog << " crater in the Solar System, Valhalla, which has a bright patch 600km" << endl;
     110    gLog << " across  and  rings that go out  to almost  3000km.  Callisto  orbits" << endl;
     111    gLog << " Jupiter at a mean distance of 1,883,000km. Its mass is 1.1e23 kg. It" << endl;
     112    gLog << " takes Callisto  16.7 days to orbit  Jupiter  in a synchronous orbit." << endl;
     113    gLog << " Jupiter's moon Callisto was discovered independantly by  Galileo and" << endl;
     114    gLog << " S.Marius in 1610." << endl << endl;
    104115    gLog << "Example:" << endl;
    105116    gLog << " callisto -f --outc=mycal/ --outy=mysignal/ --log sequence02345.txt" << endl;
  • trunk/MagicSoft/Mars/ganymed.cc

    r6553 r6604  
    6969    gLog << endl;
    7070    gLog << "   --version, -V             Show startup message with version number" << endl;
    71     gLog << "   -?, -h, --help            This help" << endl;
    72     gLog << endl;
     71    gLog << "   -?, -h, --help            This help" << endl << endl;
     72    gLog << "Background:" << endl;
     73    gLog << " Ganymed is the largest moon of Jupiter, a large, icy, outer moon that" << endl;
     74    gLog << " is scarred  with impact craters  and  many parallel faults.  It has a" << endl;
     75    gLog << " diameter of about  5268km  and orbits  Jupiter  at a mean distance of" << endl;
     76    gLog << " 1,070,000km.  It has a magnetic field  and probably has a molten iron" << endl;
     77    gLog << " core.  It takes  Ganymed  7.15 days to  orbit  Jupiter.  Its mass  is" << endl;
     78    gLog << " 1.5e23kg. It was independently discovered by  Galileo and S.Marius in"<< endl;
     79    gLog << " 1610.  Ganymed is  the largest moon  in the solar system;  it is also" << endl;
     80    gLog << " larger than the planets Mercury and Pluto." << endl << endl;
    7381}
    7482
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r6570 r6604  
    8888#include "MFTriggerPattern.h"
    8989#include "MGeomApply.h"
    90 #include "MMcPedestalCopy.h"
     90//#include "MMcPedestalCopy.h"
    9191#include "MPointingPosCalc.h"
    9292#include "MPointingPosInterpolate.h"
     
    456456    contcos.SetInverted();
    457457
    458     MMcPedestalCopy pcopy;
     458    //MMcPedestalCopy pcopy;
    459459    MTaskEnv taskenv1("ExtractSignal");
    460460    MTaskEnv taskenv2("ExtractTime");
     
    472472    calib.SetSignalType(MCalibrateData::kPhe);
    473473    //----- WORKAROUND: Currently MC has no lo-gain switch ------
    474     if (IsUseMC()) // MC file
    475     {
    476         calib.SetCalibrationMode(MCalibrateData::kFfactor);
    477         calib.SetPedestalFlag(MCalibrateData::kRun);
    478         // FIXME: What to do for MC files???
    479         calib.AddPedestal("MPedestalCam", "MPedPhotFundamental");
    480         calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractor");
    481         calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractorRndm");
    482     }
    483     else
    484     {
     474    //if (IsUseMC()) // MC file
     475    //{
     476    //    calib.SetCalibrationMode(MCalibrateData::kFfactor);
     477    //    calib.SetPedestalFlag(MCalibrateData::kRun);
     478    //    // FIXME: What to do for MC files???
     479    //    calib.AddPedestal("MPedestalCam", "MPedPhotFundamental");
     480    //    calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractor");
     481    //    calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractorRndm");
     482    //}
     483    //else
     484    //{
    485485        calib.AddPedestal("Fundamental");
    486486        calib.AddPedestal("FromExtractor");
    487487        calib.AddPedestal("FromExtractorRndm");
    488488        calib.SetPedestalFlag(MCalibrateData::kEvent);
    489     }
     489    //}
    490490    //----------------------------------------------------------
    491491
     
    624624    tlist2.AddToList(&merge);
    625625    //----- WORKAROUND: Currently MC has no lo-gain switch ------
    626     if (IsUseMC())
    627         tlist2.AddToList(&pcopy);
    628     else
    629     {
     626    //if (IsUseMC())
     627    //    tlist2.AddToList(&pcopy);
     628    //else
     629    //{
    630630        tlist2.AddToList(&pedlo1);
    631631        tlist2.AddToList(&pedlo2);
    632632        tlist2.AddToList(&pedlo3);
    633     }
     633    //}
    634634    //-----------------------------------------------------------
    635635    if (fIsInterlaced)
     
    718718
    719719    // Print statistics
    720     tlist.PrintStatistics();
     720    if (read->GetNumExecutions()>0)
     721        tlist.PrintStatistics();
    721722
    722723    // make sure owned object are deleted
  • trunk/MagicSoft/Mars/mjobs/MSequence.cc

    r6591 r6604  
    130130
    131131#include "MAstro.h"
     132#include "MString.h"
    132133#include "MDirIter.h"
    133134
     
    172173}
    173174
     175const TString MSequence::GetStandardPath(Bool_t raw) const
     176{
     177    TString d = MString::Form("/data/MAGIC/Period%03d/", fPeriod);
     178    d += raw ? "rawdata/" : "rootdata/";
     179    return d;
     180}
     181
    174182UInt_t MSequence::SetupRuns(MDirIter &iter, const TArrayI &arr, const char *path, char *id, Bool_t raw) const
    175183{
     
    179187    if (d.IsNull())
    180188    {
    181         d  = Form("/data/MAGIC/Period%03d/", fPeriod);
    182         d += raw ? "rawdata/" : "rootdata/";
     189        d = GetStandardPath(raw);
    183190        d += fNight.GetStringFmt("%Y_%m_%d");
    184191    }
  • trunk/MagicSoft/Mars/mjobs/MSequence.h

    r6591 r6604  
    9393    const TString &GetSource() const { return fSource; }
    9494
     95    const TString GetStandardPath(Bool_t raw) const;
     96
    9597    // Setter
    9698    void SetNight(const char*night);
Note: See TracChangeset for help on using the changeset viewer.