Changeset 8310 for trunk


Ignore:
Timestamp:
02/09/07 09:02:23 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8308 r8310  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
     21 2007/02/09 Thomas Bretz
     22
     23   * star.rc:
     24     - added new options
     25     - reordering
     26
     27   * mbase/MStatusDisplay.cc:
     28     - updated from 2006 to 2007
     29
     30   * mfbase/MFDataPhrase.cc:
     31     - fixed ReadEnv to correctly return true/false
     32
     33   * mjobs/MJStar.cc:
     34     - added new tabs "Spakless" and "Sparks" dividing the average
     35       signal tab into two distributions by a SparkCut
     36     - replaced all MF by MFDataPhrase
     37
     38
     39
    2140 2007/02/06 Thomas Bretz
    2241
  • trunk/MagicSoft/Mars/NEWS

    r8304 r8310  
    4545     + the hi-gain window was extended to slice 16. This allows extraction
    4646       of very late pulses in single pixels or of huge hadron showers.
     47     + Now uses the lo-gain extraction range for pedestal extraction,
     48       not the hi-gain range in the lo-gain
    4749
    4850   - callisto: New hi-/lo-gain calibration constants have been produced
     
    6062   - callisto: Fixed a bug in the seuqence handling which caused the
    6163     light condition to be ignored
     64
     65   - star: Added two new tabs "Sparkless" and "Sparks" these tabs show
     66     basically the same as "Cleaned" but the distribution devided into
     67     the events fullfilling a spark cut or being rejected by it.
     68     This cut can be changed from star.rc (see example inside) by
     69     the "SparkCut" directive
    6270
    6371   - optim: fixed a problem with the optim-macros which was due to a bug
  • trunk/MagicSoft/Mars/mfbase/MFDataPhrase.cc

    r8276 r8310  
    1818!   Author(s): Thomas Bretz  01/2002 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2005
     20!   Copyright: MAGIC Software Development, 2000-2007
    2121!
    2222!
     
    273273Int_t MFDataPhrase::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
    274274{
    275     Int_t rc = MFilter::ReadEnv(env, prefix, print);
    276     if (rc==kERROR)
     275    Int_t rc1 = MFilter::ReadEnv(env, prefix, print);
     276    if (rc1==kERROR)
    277277        return kERROR;
    278278
     
    329329            *fLog << endl;
    330330        }
     331
     332        rc1 = kTRUE;
    331333    }
    332334    else
     
    340342    }
    341343
    342     if (fData->ReadEnv(env, prefix, print)==kERROR)
     344    const Int_t rc2 = fData->ReadEnv(env, prefix, print);
     345    if (rc2==kERROR)
    343346        return kERROR;
    344347
     
    351354            SetInverted(kFALSE);*/
    352355
    353     return kTRUE;
    354 }
     356    return rc1 || rc2;
     357}
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r8300 r8310  
    465465        // The window size of the extractor is not yet initialized,
    466466        // so we have to stick to the extraction range
    467         const Int_t f = extractor1->GetHiGainFirst();
    468         const Int_t l = extractor1->GetHiGainLast();
    469         const Int_t w = (l-f+1)&~1;
     467        //
     468        // Even if we would like to use a range comparable to the
     469        // hi-gain extraction we use the lo-gain range to make
     470        // sure that exclusions (eg. due to switching noise)
     471        // are correctly handled.
     472        //
     473        const Int_t f = extractor1->GetLoGainFirst();
     474        const Int_t l = extractor1->GetLoGainLast();
     475        const Int_t w = (l-f+1);
     476        //const Int_t f = extractor1->GetHiGainFirst();
     477        //const Int_t l = extractor1->GetHiGainLast();
     478        //const Int_t w = (l-f+1)&~1;
    470479
    471480        pedlo1.SetExtractWindow(f, w);
  • trunk/MagicSoft/Mars/mjobs/MJStar.cc

    r8280 r8310  
    1818!   Author(s): Thomas Bretz, 1/2004 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2004
     20!   Copyright: MAGIC Software Development, 2000-2007
    2121!
    2222!
     
    5151#include "MReadReports.h"
    5252#include "MReadMarsFile.h"
    53 #include "MF.h"
     53#include "MFDataPhrase.h"
     54#include "MFilterList.h"
    5455#include "MFDataMember.h"
    5556#include "MFDeltaT.h"
     
    209210    // ------------------ Setup histograms and fill tasks ----------------
    210211    MHCamEvent evt0a(0, "Cleaned", "Signal after Cleaning;;S [\\gamma]");
     212    MHCamEvent evt0c(0, "Cleaned", "Signal after Cleaning and Spark cuts;;S [\\gamma]");
     213    MHCamEvent evt0d(0, "Cleaned", "Signal after Cleaning for Spark cuts;;S [\\gamma]");
    211214    MHCamEvent evt0b(0, "UsedPix", "Fraction of Events in which Pixels are used;;Fraction");
    212215    evt0a.SetErrorSpread(kFALSE);
    213216    evt0b.SetErrorSpread(kFALSE);
     217    evt0c.SetErrorSpread(kFALSE);
     218    evt0d.SetErrorSpread(kFALSE);
    214219    evt0b.SetThreshold(0);
    215220
     
    223228    MFillH fill0a(&evt0a,             "MSignalCam",      "FillSignalCam");
    224229    MFillH fill0b(&evt0b,             "MSignalCam",      "FillCntUsedPixels");
     230    MFillH fill0c(&evt0c,             "MSignalCam",      "FillSignalCamSparkless");
     231    MFillH fill0d(&evt0d,             "MSignalCam",      "FillSignalCamSparks");
    225232    MFillH fill1("MHHillas",          "MHillas",         "FillHillas");
    226233    MFillH fill2("MHHillasExt",       "",                "FillHillasExt");
     
    232239    //fillvs.SetNameTab("Rate");
    233240    fill9.SetNameTab("EffOnTime");
     241    fill0c.SetNameTab("Sparkless");
     242    fill0d.SetNameTab("Sparks");
    234243
    235244    // ------------------ Setup write task ----------------
     
    327336        tlist2.AddToList(&writet);
    328337    }
     338
     339    // Spark cut
     340    MFDataPhrase fsparks("log10(MNewImagePar.fConc1) < (-0.371)*log10(MHillas.fSize) + 0.596", "SparkCut");
     341    fill0c.SetFilter(&fsparks);
     342
     343    // Inverted spark cut (need not to be a member of the task list
     344    // because it fsparks is
     345    MFilterList fnsparks(&fsparks);
     346    fill0d.SetFilter(&fnsparks);
     347
    329348    tlist2.AddToList(&clean);
    330     tlist2.AddToList(&fill0a);
    331     tlist2.AddToList(&fill0b);
    332349    tlist2.AddToList(&poscalc);
    333350    tlist2.AddToList(&hcalc);
     351    tlist2.AddToList(&fsparks);
     352    tlist2.AddToList(&fill0a);
     353    tlist2.AddToList(&fill0c);
     354    tlist2.AddToList(&fill0d);
     355    tlist2.AddToList(&fill0b);
    334356    tlist2.AddToList(&fill1);
    335357    tlist2.AddToList(&fill2);
     
    340362    // ----------------------- Muon Analysis ----------------------
    341363    // Filter to start muon analysis
    342     MF fmuon1("MHillas.fSize>150", "MuonPreCut");
     364    MFDataPhrase fmuon1("MHillas.fSize>150", "MuonPreCut");
    343365    // Filter to calculate further muon parameters
    344     MF fmuon2("(MMuonSearchPar.fRadius>180) && (MMuonSearchPar.fRadius<400) &&"
    345               "(MMuonSearchPar.fDeviation<45)", "MuonSearchCut");
     366    MFDataPhrase fmuon2("(MMuonSearchPar.fRadius>180) && (MMuonSearchPar.fRadius<400) &&"
     367                        "(MMuonSearchPar.fDeviation<45)", "MuonSearchCut");
    346368    // Filter to fill the MHMuonPar
    347     MF fmuon3("(MMuonCalibPar.fArcPhi>190) && (MMuonSearchPar.fDeviation<35) &&"
    348               "(MMuonCalibPar.fArcWidth<0.20) && (MMuonCalibPar.fArcWidth>0.04)",
    349               "MuonFinalCut");
     369    MFDataPhrase fmuon3("(MMuonCalibPar.fArcPhi>190) && (MMuonSearchPar.fDeviation<35) &&"
     370                        "(MMuonCalibPar.fArcWidth<0.20) && (MMuonCalibPar.fArcWidth>0.04)",
     371                        "MuonFinalCut");
    350372    // Filter to write Muons to Muon tree
    351373    MFDataMember fmuon4("MMuonCalibPar.fArcPhi", '>', -0.5, "MuonWriteCut");
  • trunk/MagicSoft/Mars/star.rc

    r8245 r8310  
    4444
    4545# -------------------------------------------------------------------------
     46# Setup the image cleaning here
     47# -------------------------------------------------------------------------
     48MImgCleanStd.CleanLevel1: 8.5
     49MImgCleanStd.CleanLevel2: 4.0
     50MImgCleanStd.CleanMethod: Absolute
     51#MImgCleanStd.CleanRings: 1
     52#MImgCleanStd.KeepSinglePixels: No
     53
     54# -------------------------------------------------------------------------
     55# Setup the cut applied to the Sparkless tab
     56# -------------------------------------------------------------------------
     57
     58# This is the simple default
     59#SparkCut.Condition: log10(MNewImagePar.fConc1) < (-0.371)*log10(MHillas.fSize) + 0.596
     60
     61# This is the more complicated cut from ganymed.rc
     62#SparkCut.Condition: ({0} || {1}) && {2}
     63#SparkCut.0: MImagePar.fNumSatPixelsHG < 1
     64#SparkCut.1: MHillas.GetArea*(MGeomCam.fConvMm2Deg^2) > (0.003*MImagePar.fNumSatPixelsHG) + 0.0325
     65#SparkCut.2: log10(MNewImagePar.fConc1) < (-0.371)*log10(MHillas.fSize) + 0.596
     66
     67# -------------------------------------------------------------------------
     68# setup the image parameter calculation here
     69# -------------------------------------------------------------------------
     70#MHillasCalc.IdxIsland: 0
     71
     72# -------------------------------------------------------------------------
    4673# Setup or switch off the muon analysis here
    4774# -------------------------------------------------------------------------
     
    6289#MuonSearcCut.Condition: (MMuonSearchPar.fRadius>180) && (MMuonSearchPar.fRadius<400) && (MMuonSearchPar.fDeviation<45)
    6390#MuonFinalCut.Condition: (MMuonCalibPar.fArcPhi>190)  && (MMuonSearchPar.fDeviation<35) && (MMuonCalibPar.fArcWidth<0.20) && (MMuonCalibPar.fArcWidth>0.04)
    64 
    65 # -------------------------------------------------------------------------
    66 # Setup the image cleaning here
    67 # -------------------------------------------------------------------------
    68 MImgCleanStd.CleanLevel1: 8.5
    69 MImgCleanStd.CleanLevel2: 4.0
    70 MImgCleanStd.CleanMethod: Absolute
    71 #MImgCleanStd.KeepSinglePixels: No
    72 
    73 # -------------------------------------------------------------------------
    74 # setup the image parameter calculation here
    75 # -------------------------------------------------------------------------
    76 #MHillasCalc.IdxIsland: 0
    77 
Note: See TracChangeset for help on using the changeset viewer.