Changeset 8245 for trunk/MagicSoft


Ignore:
Timestamp:
01/11/07 15:25:39 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8244 r8245  
    6868     - use return value of MDataSet::AddFilesOn/Off for a sanity check
    6969
     70   * mjobs/MJob.[h,cc]:
     71     - removed obsolete fPathData and stuff
     72
     73   * callisto.cc, star.cc:
     74     - removed obsolete calls to MJob::SetPathData
     75
     76   * callisto.rc, star.rc:
     77     - removed obsolete examples for "PathData"-resource
     78
     79   * mjobs/MJCalibTest.cc, mjobs/MJCalibrateSignal.cc,
     80     mjobs/MJCalibration.cc, mjobs/MJPedestal.cc, mjobs/MJStar.cc:
     81     - removed obsolete reference to fPathData
     82
    7083
    7184
  • trunk/MagicSoft/Mars/NEWS

    r8239 r8245  
    3838     treatment is not done for it anymore because it has never been used.
    3939
     40   - callisto: Fixed a bug in the seuqence handling which caused the
     41     light condition to be ignored
     42
    4043   - optim: fixed a problem with the optim-macros which was due to a bug
    4144     in the new phrase parsing
     
    5154     macros could run with less files found than expected from the
    5255     sequence-files. No the execution is stopped in this case.
     56
     57   - ganymed: now stores the dataset in the output file with all information
     58     contained (as sequence number, sequence path, data path) so that the
     59     used dataset file can be recreated complete from the output
    5360
    5461   - sponde: now also allows the uasge of random forest
  • trunk/MagicSoft/Mars/callisto.cc

    r8088 r8245  
    283283    // Setup sequence and check its validity
    284284    //
    285     MSequence seq(kSequence);
     285    MSequence seq(kSequence, kInpathD);
    286286    if (kPrintSeq)
    287287    {
     
    372372        job1.SetDisplay(d);
    373373        job1.SetOverwrite(kOverwrite);
    374         job1.SetPathData(kInpathD);
    375374        job1.SetDataType(kDataType);
    376375        job1.SetUseHists(kMoon);
     
    403402        job2.SetDisplay(d);;
    404403        job2.SetOverwrite(kOverwrite);
    405         job2.SetPathData(kInpathD);
    406404        job2.SetDataType(kDataType);
    407405        job2.SetUseHists(kMoon);
     
    440438        job3.SetOverwrite(kOverwrite);
    441439        job3.SetPathOut(kOutpathC);
    442         job3.SetPathData(kInpathD);
    443440        job3.SetDataType(kDataType);
    444441        // job2.SetPathIn(kInpathC); // not yet needed
     
    473470            job4.SetOverwrite(kOverwrite);
    474471            job4.SetPathOut(kOutpathC);
    475             job4.SetPathData(kInpathD);
    476472            job4.SetDataType(kDataType);
    477473
     
    508504        job1.SetNoDisplay();
    509505        job1.SetOverwrite(kOverwrite);
    510         job1.SetPathData(kInpathD);
    511506        job1.SetPathIn(kInpathY);   // --> READ Extractor from calib-file
    512507        job1.SetDataType(kDataType);
     
    539534        job2.SetNoDisplay();
    540535        job2.SetOverwrite(kOverwrite);
    541         job2.SetPathData(kInpathD);
    542536        job2.SetPathIn(kInpathY);
    543537        job2.SetDataType(kDataType);
     
    596590        job3.SetNoDisplay();
    597591        job3.SetOverwrite(kOverwrite);
    598         job3.SetPathData(kInpathD);
    599592        job3.SetPathIn(kInpathY);
    600593        job3.SetDataType(kDataType);
     
    632625        job4.SetPathIn(kInpathY);
    633626        job4.SetPathOut(kOutpathY);
    634         job4.SetPathData(kInpathD);
    635627        job4.SetDataType(kDataType);
    636628        if (kDataType!=MJCalib::kIsUseMC)
  • trunk/MagicSoft/Mars/callisto.rc

    r8011 r8245  
    4242# -------------------------------------------------------------------------
    4343#MJCalibration.PathOut: calped
    44 
    45 # -------------------------------------------------------------------------
    46 # Use this to define where the program should search for the pedestal
    47 # and calibration files defined in the sequence. To use the local
    48 # directory use '.' If nothing is specified the default path in the
    49 # datacenter is used. (overwrites command line options)
    50 # -------------------------------------------------------------------------
    51 #MJPedestalC1.PathData:   /data/MAGIC/Period016/
    52 #MJPedestalC2.PathData:   /data/MAGIC/Period016/
    53 #MJCalibration.PathData:  /data/MAGIC/Period016/
    5444
    5545# -------------------------------------------------------------------------
     
    288278#MJPedestalY2.PathOut:        .
    289279#MJPedestalY3.PathOut:        .
    290 #MJPedestalY1.PathData:      /data/MAGIC/Period016/
    291 #MJPedestalY2.PathData:      /data/MAGIC/Period016/
    292 #MJPedestalY3.PathData:      /data/MAGIC/Period016/
    293 #MJCalibrateSignal.PathData: /data/MAGIC/Period016/
    294280#MJCalibrateSignal.PathIn:   .
    295281
  • trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc

    r8220 r8245  
    287287  if (fSequence.IsValid())
    288288    {
    289         if (fSequence.SetupCalRuns(iter, fPathData, IsUseRawData())<=0)
     289        if (fSequence.SetupCalRuns(iter, 0, IsUseRawData())<=0)
    290290            return kFALSE;
    291291    }
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r8220 r8245  
    246246    if (fSequence.IsValid())
    247247    {
    248         if (fSequence.SetupDatRuns(iter, fPathData, IsUseRawData())<=0)
     248        if (fSequence.SetupDatRuns(iter, 0, IsUseRawData())<=0)
    249249            return kFALSE;
    250250    }
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r8220 r8245  
    16981698
    16991699    MDirIter iter;
    1700     if (fSequence.SetupCalRuns(iter, fPathData, IsUseRawData())<=0)
     1700    if (fSequence.SetupCalRuns(iter, 0, IsUseRawData())<=0)
    17011701        return kFALSE;
    17021702
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r8220 r8245  
    10031003    fLog->Separator(GetDescriptor());
    10041004    *fLog << "Calculate MPedestalCam from " << type << "-runs ";
    1005     *fLog << fSequence.GetName() << endl;
     1005    *fLog << fSequence.GetFileName() << endl;
    10061006    *fLog << endl;
    10071007
     
    10231023    {
    10241024        const Int_t n0 = IsUseData()
    1025             ? fSequence.SetupDatRuns(iter, fPathData, IsUseRawData())
    1026             : fSequence.SetupPedRuns(iter, fPathData, IsUseRawData());
     1025            ? fSequence.SetupDatRuns(iter, 0, IsUseRawData())
     1026            : fSequence.SetupPedRuns(iter, 0, IsUseRawData());
    10271027
    10281028        if (n0<=0)
  • trunk/MagicSoft/Mars/mjobs/MJStar.cc

    r8244 r8245  
    142142
    143143    MDirIter iter;
    144     if (fSequence.SetupDatRuns(iter, MSequence::kCalibrated, fPathData)<=0)
     144    if (fSequence.SetupDatRuns(iter, MSequence::kCalibrated)<=0)
    145145        return kFALSE;
    146146
  • trunk/MagicSoft/Mars/mjobs/MJob.cc

    r7358 r8245  
    140140}
    141141
    142 void MJob::SetPathData(const char *path)
    143 {
    144     fPathData = path;
    145     FixPath(fPathData);
    146 }
    147 
    148142const TEnv *MJob::GetEnv() const
    149143{
     
    184178    if (!p.IsNull())
    185179        SetPathIn(p);
    186 
    187     p = GetEnv("PathData", "");
    188     if (!p.IsNull())
    189         SetPathData(p);
    190180
    191181    SetMaxEvents(GetEnv("MaxEvents", fMaxEvents));
  • trunk/MagicSoft/Mars/mjobs/MJob.h

    r7358 r8245  
    2424    TString   fPathOut;       // Directory to write output file to (eg. calib*.root)
    2525    TString   fPathIn;        // Directory to read output from (eg. calib*.root)
    26     TString   fPathData;      // Directory to read  data files from (2004*.root)
    2726
    2827    Bool_t    fOverwrite;     // Allow overwriting output files
     
    5857    void   SetPathOut(const char *path=".");
    5958    void   SetPathIn(const char *path=".");
    60     void   SetPathData(const char *path=".");
    6159
    6260    void   SetOverwrite(Bool_t b=kTRUE) { fOverwrite=b; }
     
    7169    TString GetPathOut() const  { return fPathOut; }
    7270    TString GetPathIn() const   { return fPathIn; }
    73     TString GetPathData() const { return fPathData; }
    7471
    7572    // Others
  • trunk/MagicSoft/Mars/mjobs/MSequence.h

    r7380 r8245  
    2626    };
    2727private:
     28    TString fFileName;
     29    TString fDataPath;
     30
    2831    UInt_t fSequence;
    2932
     
    6366    MSequence() : fSequence((UInt_t)-1), fLastRun((UInt_t)-1),
    6467        fNumEvents((UInt_t)-1), fPeriod((UInt_t)-1) { }
    65     MSequence(const char *fname);
     68    MSequence(const char *fname, const char *path="");
    6669    MSequence(const MSequence &s) : fSequence(s.fSequence), fStart(s.fStart),
    6770        fLastRun(s.fLastRun), fNumEvents(s.fNumEvents), fPeriod(s.fPeriod),
     
    114117    const TString GetStandardPath() const { return "/magic/data/"; }
    115118
     119    const TString &GetFileName() const { return fFileName; }
     120    const TString &GetDataPath() const { return fDataPath; }
     121
    116122    // Setter
    117123    void SetNight(const char*night);
  • trunk/MagicSoft/Mars/star.cc

    r8088 r8245  
    179179    // Setup sequence and check its validity
    180180    //
    181     MSequence seq(kSequence);
     181    MSequence seq(kSequence, kInpath);
    182182    if (kPrintSeq)
    183183    {
     
    244244        job.SetOverwrite(kOverwrite);
    245245        job.SetPathOut(kOutpath);
    246         job.SetPathData(kInpath);
    247246        // job.SetPathIn(kInpath); // not yet needed
    248247        if (kNoMuons)
  • trunk/MagicSoft/Mars/star.rc

    r7225 r8245  
    2929#MJStar.PathOut: .
    3030#MJStar.PathIn: .
    31 
    32 # -------------------------------------------------------------------------
    33 # Use this to define where the program should search for the pedestal
    34 # and calibration files defined in the sequence. To use the local
    35 # directory use '.' If nothing is specified the default path in the
    36 # datacenter is used. (overwrites command line options)
    37 # -------------------------------------------------------------------------
    38 #MJStar.PathData:   /data/MAGIC/Period016/
    3931
    4032# -------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.