Changeset 9351 for trunk


Ignore:
Timestamp:
02/19/09 17:53:59 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9350 r9351  
    5353   * mimage/MHHillas.cc, mimage/MMHillas.Ext.cc, mimage/MHHillasSrc.cc:
    5454     - converted default binning from mm to deg
     55
     56   * mraw/MRawRunHeader.cc:
     57     - print less when values doen't have any meaning
     58
     59   * msim/MSimAtmosphere.[h,cc]:
     60     - added
     61
     62   * msim/SimLinkDef.h, msim/Makefile:
     63     - added MSimAtmosphere
     64
     65   * mjobs/MJSimulation.cc:
     66     - added simulation of atmosphere
     67     - clean isolated pixels away before calculating image parameters
     68     - don't clean calibration runs
    5569
    5670
  • trunk/MagicSoft/Mars/NEWS

    r9349 r9351  
    7575     memory and it was never freed, so the program took this memory
    7676     until the end)
    77  
     77
     78   * Converted the code from MMCS' reflector program to MSimAtmosphere
     79     (instead of the tables build in for MAGIC Winter and Summer
     80     atmosphere we use the values written by Corsika fitted to the
     81     tabulated atmosphere given as input)
     82
     83   * For caluclating the displayed image parameters in ceres a basic
     84     image cleaning removing isolated pixels is now done.
     85
    7886 ;star
    7987
  • trunk/MagicSoft/Mars/mjobs/MJSimulation.cc

    r9343 r9351  
    8080#include "MSimMMCS.h"
    8181#include "MSimAbsorption.h"
     82#include "MSimAtmosphere.h"
    8283#include "MSimReflector.h"
    8384#include "MSimPointingPos.h"
     
    326327    MSimMMCS simmmcs;
    327328
     329    MSimAtmosphere simatm;
    328330    MSimAbsorption absapd("PhotonDetectionEfficiency");
    329331    MSimAbsorption absmir("MirrorReflectivity");
     
    511513    // -------------------------------------------------------------------
    512514
    513     // FIXME: Remove isolated pixels
    514     MImgCleanStd clean(7, 4.5);
     515    // Remove isolated pixels
     516    MImgCleanStd clean(0, 0);
     517    clean.SetCleanLvl0(0); // The level above which isolated pixels are kept
     518    clean.SetCleanRings(0);
    515519    clean.SetMethod(MImgCleanStd::kAbsolute);
    516520
     
    551555        //    if (header.IsPointRun())
    552556        //        tasks.AddToList(&stars);
    553         //tasks.AddToList(&print);
     557        if (1)
     558            tasks.AddToList(&simatm); // Here because before fillh1
    554559        tasks.AddToList(&fillh1);
    555560        tasks.AddToList(&fillG);
     
    558563            tasks.AddToList(&absapd);
    559564            tasks.AddToList(&absmir);
     565            if (0)
     566                tasks.AddToList(&simatm); // FASTER?
    560567        }
    561568        tasks.AddToList(&reflect);
     
    628635        tasks.AddToList(&fillx0a);
    629636        tasks.AddToList(&fillx0c);
    630         //tasks.AddToList(&clean);
     637        if (!header.IsCalibrationRun())
     638            tasks.AddToList(&clean);
    631639        tasks.AddToList(&hcalc);
    632640        tasks.AddToList(&fillx0d);
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r9313 r9351  
    957957    if (fFormatVersion>5)
    958958        *fLog << "Observation: '" << fObservationMode << "'" << endl;
    959     *fLog << "Source:      '" << fSourceName << "' " << "  ";
    960     *fLog << fSourceEpochChar << dec << fSourceEpochDate << endl;
     959    if (fSourceName[0]!=0 || fSourceEpochChar[0]!=0 || fSourceEpochDate!=0)
     960    {
     961        *fLog << "Source:      '" << fSourceName << "' " << "  ";
     962        *fLog << fSourceEpochChar << dec << fSourceEpochDate << endl;
     963    }
    961964    if (fRunStart)
    962965        *fLog << "Run Start:    " << fRunStart << endl;
     
    974977    else
    975978        *fLog << (fNumSamplesLoGain+fNumSamplesHiGain) * fNumBytesPerSample << "B/pix" << endl;
    976     *fLog << "Evt Counter:  " << fNumEvents;
    977     if (fFormatVersion>8)
    978         *fLog << " (read=" << fNumEventsRead << ")";
    979     *fLog << endl;
     979    if (fNumEvents>0 || fNumEventsRead>0)
     980    {
     981        *fLog << "Evt Counter:  " << fNumEvents;
     982        if (fFormatVersion>8)
     983            *fLog << " (read=" << fNumEventsRead << ")";
     984        *fLog << endl;
     985    }
    980986
    981987    if (TString(t).Contains("header", TString::kIgnoreCase))
  • trunk/MagicSoft/Mars/msim/Makefile

    r9319 r9351  
    2626           MHPhotonEvent.cc \
    2727           MSimMMCS.cc \
     28           MSimAtmosphere.cc \
    2829           MSimAbsorption.cc \
    2930           MSimPointingPos.cc
  • trunk/MagicSoft/Mars/msim/SimLinkDef.h

    r9319 r9351  
    1414#pragma link C++ class MSimPointingPos+;
    1515#pragma link C++ class MSimAbsorption+;
     16#pragma link C++ class MSimAtmosphere+;
    1617
    1718#pragma link C++ class MSimMMCS+;
Note: See TracChangeset for help on using the changeset viewer.