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

Legend:

Unmodified
Added
Removed
  • 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");
Note: See TracChangeset for help on using the changeset viewer.