Changeset 7517 for trunk/MagicSoft


Ignore:
Timestamp:
02/17/06 10:15:31 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7516 r7517  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20 2006/02/17 Thomas Bretz
     21
     22   * showplot.cc:
     23     - fixed path inflation in case of ganymed
     24
     25   * mjobs/MDataSet.cc:
     26     - return kFALSE if requested source wasn't found in catalog
     27
     28   * mjobs/MJCut.cc:
     29     - reformatted output of source to fit in one line
     30
     31   * mpointing/MPointingPos.[h,cc]:
     32     - output source name (title) in Print() if set
     33
     34
     35
    2036 2006/02/16 Daniela Dorner
    2137
  • trunk/MagicSoft/Mars/NEWS

    r7500 r7517  
    33 *** Version  <cvs>
    44
     5   - showplot: path inflation for ganymed files was broken
     6
     7   - ganymed: now stops in requested source isn't found in catalog file
    58
    69
  • trunk/MagicSoft/Mars/mjobs/MDataSet.cc

    r7462 r7517  
    421421        line.ReadLine(fin);
    422422        if (!fin)
    423             break;
     423        {
     424            gLog << err << "ERROR - Source '" << fNameSource << "' not found in " << catalog << "." << endl;
     425            return kFALSE;
     426        }
    424427
    425428        n++;
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r7432 r7517  
    338338//   "MHillas"      to  "Events"
    339339//   "MHillasSrc"   to  "Events"
    340 //   "MHadronness"  to  "Events"       yes
     340//   "Hadronness"   to  "Events"       yes
    341341//   "MEnergyEst"   to  "Events"       yes
    342342//   "DataType"     to  "Events"
     
    365365    write->AddContainer("MMcEvt",         "Events", kFALSE);
    366366    write->AddContainer("DataType",       "Events");
     367    //    write->AddContainer("MMuonSearchPar", "Events", kFALSE);
     368    //    write->AddContainer("MMuonCalibPar",  "Events", kFALSE);
    367369}
    368370
     
    465467            return kFALSE;
    466468        plist.AddToList(&source);
    467         *fLog << all << "Using Source Position: ";
     469        *fLog << all;
    468470        source.Print("RaDec");
    469471    }
  • trunk/MagicSoft/Mars/mpointing/MPointingPos.cc

    r7389 r7517  
    5454using namespace std;
    5555
     56const TString MPointingPos::gsDefName  = "MPointingPos";
     57const TString MPointingPos::gsDefTitle = "Container storing the (corrected) telescope pointing position";
     58
    5659// --------------------------------------------------------------------------
    5760//
     
    8992        opt = "radeczdaz";
    9093
    91     *fLog << GetDescriptor() << ": ";
     94    *fLog << GetDescriptor() << ":";
    9295
    9396    if (opt.Contains("ra", TString::kIgnoreCase))
     
    101104    if (opt.Contains("az", TString::kIgnoreCase))
    102105        *fLog << " Az=" << MAstro::GetStringDeg(fAz);
     106
     107    if (fTitle!=gsDefTitle)
     108        *fLog << " <" << fTitle << ">";
     109
    103110    *fLog << endl;
    104111}
  • trunk/MagicSoft/Mars/mpointing/MPointingPos.h

    r7389 r7517  
    1818{
    1919private:
     20    static const TString gsDefName;
     21    static const TString gsDefTitle;
     22
    2023    Double_t fZd;  // [deg] Zenith distance (ZA)
    2124    Double_t fAz;  // [deg] Azimuth
     
    2831    MPointingPos(const char *name=0, const char *title=0) : fZd(0), fAz(0), fRa(0), fHa(0), fDec(0)
    2932    {
    30         fName  = name ? name   : "MPointingPos";
    31         fTitle = title ? title : "Container storing the (corrected) telescope pointing position";
     33        fName  = name  ? (TString)name  : gsDefName;
     34        fTitle = title ? (TString)title : gsDefTitle;
    3235    }
    3336    MPointingPos(const MPointingPos &p) : MParContainer(p),
  • trunk/MagicSoft/Mars/showplot.cc

    r7444 r7517  
    159159    //
    160160    TString kInput = arg.GetArgumentStr(0);
     161    kInput.ToLower();
    161162
    162163    //
     
    177178            break;
    178179        }
    179         file += Form("/%04d/%08d/", num/10000, num);
     180        file += kInput==(TString)"ganymed" ? Form("/%05d", num/100000) : Form("/%04d", num/10000);
     181        file += Form("/%08d/", num);
    180182        file += kInput;
    181183        file += Form("%08d.root", num);
Note: See TracChangeset for help on using the changeset viewer.