Ignore:
Timestamp:
04/24/07 15:28:08 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r8441 r8442  
    1818!   Author(s): Thomas Bretz, 1/2005 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2005
     20!   Copyright: MAGIC Software Development, 2000-2007
    2121!
    2222!
     
    2626//
    2727//  MJCut
    28 //
    29 // FIXME: Preparation for wobble mode missing
    3028//
    3129/////////////////////////////////////////////////////////////////////////////
     
    8684//
    8785// Default constructor.  Set defaults for fStoreSummary, fStoreresult,
    88 // fWriteOnly, fIsWobble and fFullDisplay to kFALSE and initialize
     86// fWriteOnly, fFullDisplay to kFALSE and initialize
    8987// /*fEstimateEnergy and*/ fCalcHadronness with NULL.
    9088//
    9189MJCut::MJCut(const char *name, const char *title)
    9290    : fStoreSummary(kFALSE), fStoreResult(kTRUE), fWriteOnly(kFALSE),
    93     fIsWobble(kFALSE), fFullDisplay(kTRUE),
     91    fFullDisplay(kTRUE),
    9492    fRndmSrcPos(kFALSE), fNameHist("MHThetaSq"), fCalcHadronness(0), fCalcDisp(0)
    9593{
     
    330328    EnableStorageOfSummary(GetEnv("SummaryFile", fStoreSummary));
    331329    EnableStorageOfResult(GetEnv("ResultFile", fStoreResult));
    332     EnableWobbleMode(GetEnv("WobbleMode", fIsWobble));
    333330    EnableFullDisplay(GetEnv("FullDisplay", fFullDisplay));
    334331    EnableRandomSrcPos(GetEnv("RandomSourcePosition", fRndmSrcPos));
     
    551548    MParList plist;
    552549
    553     MHSrcPosCam hsrcpos(fIsWobble);
    554     if (!fIsWobble && source.IsInitialized() && fRndmSrcPos)
     550    MHSrcPosCam hsrcpos(set.IsWobbleMode());
     551    if (!set.IsWobbleMode() && source.IsInitialized() && fRndmSrcPos)
    555552    {
    556553        if (!FillSrcPosCam(set, source, hsrcpos))
     
    614611    MAlphaFitter fit;
    615612    plist.AddToList(&fit);
    616     if (fIsWobble)
     613    if (set.IsWobbleMode())
    617614        fit.SetScaleMode(MAlphaFitter::kNone);
    618615
     
    643640
    644641    MRead &readoff = set.IsMonteCarlo() ? (MRead&)readoffmc : (MRead&)readoffdata;
    645     const Bool_t setrc = fIsWobble ? set.AddFilesOn(readoff) : set.AddFilesOff(readoff);
     642    const Bool_t setrc = set.IsWobbleMode() ? set.AddFilesOn(readoff) : set.AddFilesOff(readoff);
    646643    if (!setrc && set.HasOffSequences())
    647644    {
    648         *fLog << err << "MDataSet::AddFiles" << (fIsWobble?"On":"Off") << " failed." << endl;
     645        *fLog << err << "MDataSet::AddFiles" << (set.IsWobbleMode()?"On":"Off") << " failed." << endl;
    649646        return kFALSE;
    650647    }
     
    699696    // How to get source position from off- and on-data?
    700697    MSrcPosCalc scalc;
    701     scalc.SetMode(fIsWobble?MSrcPosCalc::kWobble:MSrcPosCalc::kOffData); /********************/
     698    scalc.SetMode(set.IsWobbleMode()?MSrcPosCalc::kWobble:MSrcPosCalc::kOffData); /********************/
    702699
    703700    MSrcPosCorrect scor;
     
    716713    tlist2.AddToList(&scor);
    717714    tlist2.AddToList(&srcrndm);
    718     //if (fRndmSrcPos && !fIsWobble)
     715    //if (fRndmSrcPos && !set.IsWobbleMode())
    719716    //   tlist2.AddToList(&fill0a);
    720717    tlist2.AddToList(&hcalc);
    721     if (fIsWobble)
     718    if (set.IsWobbleMode())
    722719        tlist2.AddToList(&hcalc2);
    723720    //tlist2.AddToList(&taskenv1);
     
    732729        tlist2.AddToList(&fill1a);
    733730    tlist2.AddToList(&cont1);
    734     if (!fWriteOnly && (!fIsWobble || !fNameHistFS.IsNull()))
     731    if (!fWriteOnly && (!set.IsWobbleMode() || !fNameHistFS.IsNull()))
    735732        tlist2.AddToList(&ffs);
    736733    tlist2.AddToList(&cont2);
     
    796793        return kFALSE;
    797794
    798     if (set.HasOffSequences() || fIsWobble)
     795    if (set.HasOffSequences() || set.IsWobbleMode())
    799796    {
    800797        // Execute first analysis
     
    852849    fill7b.SetNameTab("NewPar");
    853850    //fill9b.SetNameTab("EffOnT");
    854     fill1b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":"");
    855     fill2b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":"");
    856     fill3b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":"");
    857     fill4b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":"");
    858     fill5b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":"");
    859     fill6b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":"");
    860     fill7b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":"");
     851    fill1b.SetDrawOption(set.HasOffSequences()||set.IsWobbleMode()?"same":"");
     852    fill2b.SetDrawOption(set.HasOffSequences()||set.IsWobbleMode()?"same":"");
     853    fill3b.SetDrawOption(set.HasOffSequences()||set.IsWobbleMode()?"same":"");
     854    fill4b.SetDrawOption(set.HasOffSequences()||set.IsWobbleMode()?"same":"");
     855    fill5b.SetDrawOption(set.HasOffSequences()||set.IsWobbleMode()?"same":"");
     856    fill6b.SetDrawOption(set.HasOffSequences()||set.IsWobbleMode()?"same":"");
     857    fill7b.SetDrawOption(set.HasOffSequences()||set.IsWobbleMode()?"same":"");
    861858
    862859    //fill9b.SetFilter(&fbin);
     
    903900
    904901    tlist.Replace(&readon);
    905     if (fRndmSrcPos && !fIsWobble)
     902    if (fRndmSrcPos && !set.IsWobbleMode())
    906903    {
    907904//        tlist2.RemoveFromList(&fill0a);
     
    911908    MFillH fillsrc(&hsrcpos, "MSrcPosCam", "FillSrcPosCam");
    912909    fillsrc.SetNameTab("SrcPos");
    913     if (fIsWobble)
     910    if (set.IsWobbleMode())
    914911        tlist2.AddToListBefore(&fillsrc, &hcalc);
    915912
     
    936933        //if (!fIsMonteCarlo)
    937934        //    tlist2.Replace(&fill9b);
    938         if (!fIsWobble || !fNameHist.IsNull())
     935        if (!set.IsWobbleMode() || !fNameHist.IsNull())
    939936            tlist2.Replace(&ffs2);
    940         if (fIsWobble)
     937        if (set.IsWobbleMode())
    941938        {
    942939            tlist2.AddToListAfter(&fillphi, &falpha2);
Note: See TracChangeset for help on using the changeset viewer.