Ignore:
Timestamp:
02/18/05 16:29:20 (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/MJCalibrateSignal.cc

    r6570 r6604  
    8888#include "MFTriggerPattern.h"
    8989#include "MGeomApply.h"
    90 #include "MMcPedestalCopy.h"
     90//#include "MMcPedestalCopy.h"
    9191#include "MPointingPosCalc.h"
    9292#include "MPointingPosInterpolate.h"
     
    456456    contcos.SetInverted();
    457457
    458     MMcPedestalCopy pcopy;
     458    //MMcPedestalCopy pcopy;
    459459    MTaskEnv taskenv1("ExtractSignal");
    460460    MTaskEnv taskenv2("ExtractTime");
     
    472472    calib.SetSignalType(MCalibrateData::kPhe);
    473473    //----- WORKAROUND: Currently MC has no lo-gain switch ------
    474     if (IsUseMC()) // MC file
    475     {
    476         calib.SetCalibrationMode(MCalibrateData::kFfactor);
    477         calib.SetPedestalFlag(MCalibrateData::kRun);
    478         // FIXME: What to do for MC files???
    479         calib.AddPedestal("MPedestalCam", "MPedPhotFundamental");
    480         calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractor");
    481         calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractorRndm");
    482     }
    483     else
    484     {
     474    //if (IsUseMC()) // MC file
     475    //{
     476    //    calib.SetCalibrationMode(MCalibrateData::kFfactor);
     477    //    calib.SetPedestalFlag(MCalibrateData::kRun);
     478    //    // FIXME: What to do for MC files???
     479    //    calib.AddPedestal("MPedestalCam", "MPedPhotFundamental");
     480    //    calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractor");
     481    //    calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractorRndm");
     482    //}
     483    //else
     484    //{
    485485        calib.AddPedestal("Fundamental");
    486486        calib.AddPedestal("FromExtractor");
    487487        calib.AddPedestal("FromExtractorRndm");
    488488        calib.SetPedestalFlag(MCalibrateData::kEvent);
    489     }
     489    //}
    490490    //----------------------------------------------------------
    491491
     
    624624    tlist2.AddToList(&merge);
    625625    //----- WORKAROUND: Currently MC has no lo-gain switch ------
    626     if (IsUseMC())
    627         tlist2.AddToList(&pcopy);
    628     else
    629     {
     626    //if (IsUseMC())
     627    //    tlist2.AddToList(&pcopy);
     628    //else
     629    //{
    630630        tlist2.AddToList(&pedlo1);
    631631        tlist2.AddToList(&pedlo2);
    632632        tlist2.AddToList(&pedlo3);
    633     }
     633    //}
    634634    //-----------------------------------------------------------
    635635    if (fIsInterlaced)
     
    718718
    719719    // Print statistics
    720     tlist.PrintStatistics();
     720    if (read->GetNumExecutions()>0)
     721        tlist.PrintStatistics();
    721722
    722723    // make sure owned object are deleted
  • trunk/MagicSoft/Mars/mjobs/MSequence.cc

    r6591 r6604  
    130130
    131131#include "MAstro.h"
     132#include "MString.h"
    132133#include "MDirIter.h"
    133134
     
    172173}
    173174
     175const TString MSequence::GetStandardPath(Bool_t raw) const
     176{
     177    TString d = MString::Form("/data/MAGIC/Period%03d/", fPeriod);
     178    d += raw ? "rawdata/" : "rootdata/";
     179    return d;
     180}
     181
    174182UInt_t MSequence::SetupRuns(MDirIter &iter, const TArrayI &arr, const char *path, char *id, Bool_t raw) const
    175183{
     
    179187    if (d.IsNull())
    180188    {
    181         d  = Form("/data/MAGIC/Period%03d/", fPeriod);
    182         d += raw ? "rawdata/" : "rootdata/";
     189        d = GetStandardPath(raw);
    183190        d += fNight.GetStringFmt("%Y_%m_%d");
    184191    }
  • trunk/MagicSoft/Mars/mjobs/MSequence.h

    r6591 r6604  
    9393    const TString &GetSource() const { return fSource; }
    9494
     95    const TString GetStandardPath(Bool_t raw) const;
     96
    9597    // Setter
    9698    void SetNight(const char*night);
Note: See TracChangeset for help on using the changeset viewer.