Ignore:
Timestamp:
02/17/05 17:09:00 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
3 edited

Legend:

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

    r6475 r6569  
    3737
    3838const Int_t MJCalib::fgCheckedPixId = 100;
     39
    3940// --------------------------------------------------------------------------
    4041//
     
    5455Bool_t MJCalib::CheckEnvLocal()
    5556{
    56 
    5757    if (HasEnv("PixelCheck"))
    58       SetPixelCheck();
     58        SetPixelCheck(GetEnv("PixelCheck", fPixelCheck));
    5959
    6060    if (HasEnv("CheckedPixId"))
    61       SetCheckedPixId(GetEnv("CheckedPixId",fCheckedPixId));
     61        SetCheckedPixId(GetEnv("CheckedPixId",fCheckedPixId));
    6262
    6363    if (!HasEnv("DataType"))
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r6505 r6569  
    464464    taskenv3.SetDefault(extractor3);
    465465
    466     MCalibrateData         calib;
    467466    //
    468467    // This is new calibration to eff. photo-electrons, hard-coded as decided
     
    470469    //
    471470#warning Default calibration now in equiv. photo-electrons!
     471    MCalibrateData calib;
    472472    calib.SetSignalType(MCalibrateData::kPhe);
    473 
     473    //----- WORKAROUND: Currently MC has no lo-gain switch ------
    474474    if (IsUseMC()) // MC file
    475475    {
     
    488488        calib.SetPedestalFlag(MCalibrateData::kEvent);
    489489    }
     490    //----------------------------------------------------------
    490491
    491492    MExtractPINDiode        pinext;
     
    621622    tlist2.AddToList(&apply);
    622623    tlist2.AddToList(&merge);
     624    //----- WORKAROUND: Currently MC has no lo-gain switch ------
    623625    if (IsUseMC())
    624626        tlist2.AddToList(&pcopy);
     
    629631        tlist2.AddToList(&pedlo3);
    630632    }
     633    //-----------------------------------------------------------
    631634    if (fIsInterlaced)
    632       {
     635    {
    633636        pinext.SetFilter(&fcalib);
    634637        bldext.SetFilter(&fcalib);
     
    655658        if (fIsRelTimesUpdate)
    656659          tlist2.AddToList(&recalc);
    657       }
     660    }
    658661
    659662    tlist2.AddToList(&conttp);
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r6553 r6569  
    791791   
    792792    if (HasEnv("UseData"))
    793       fExtractType = GetEnv("UseData",kFALSE) ? kUseData : kUsePedRun;
     793        fExtractType = GetEnv("UseData",kFALSE) ? kUseData : kUsePedRun;
     794
     795    if (IsUseMC() && fExtractType==kUseData)
     796    {
     797        // The reason is, that the standard data files contains empty
     798        // (untriggered) events. If we would loop over the default 500
     799        // first events of the data file you would calculate the
     800        // pedestal from only some single events...
     801        *fLog << inf;
     802        *fLog << "Sorry, you cannot extract the starting pedestal from the first" << endl;
     803        *fLog << "events in your data files... using pedestal file instead.  The" << endl;
     804        *fLog << "result should not differ..." << endl;
     805        fExtractType = kUsePedRun;
     806    }
     807
    794808
    795809    if (HasEnv("UseHists"))
     
    10021016   
    10031017    if (fIsUseHists)
    1004       {
     1018    {
    10051019        pedcalc.SetIntermediateStorage();
    10061020        pedlogain.SetIntermediateStorage();
     
    10091023        //        plist.AddToList(&fPedestalHist);
    10101024        tlist.AddToList(&fillped);
    1011       }
     1025    }
    10121026
    10131027    pedcalc.SetPedestalsIn(&fPedestalCamIn);
    10141028    pedlogain.SetPedestalsIn(&fPedestalCamIn);
     1029
    10151030    pedcalc.SetPedestalsInter(&pedinter);
    10161031    pedlogain.SetPedestalsInter(&pedinter);
     
    11351150        DisplayResult(plist);
    11361151
    1137     if (fExtractionType!=kFundamental)
    1138       fExtractor->SetFilter(0);
    1139 
    11401152    if (!WriteResult())
    11411153        return kFALSE;
Note: See TracChangeset for help on using the changeset viewer.