Changeset 5144 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
09/28/04 18:30:48 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5143 r5144  
    8484   * msignal/MArrivalTime.cc:
    8585     - fixed GetPixelContent
     86
     87   * mastro/MAstroCamera.cc:
     88     - replaced "unknown" by "n/a"
     89
     90   * mbase/MDirIter.[h,cc]:
     91     - added Sort function (not yet fully tested)
     92
     93   * mgeom/MGeomCam.cc:
     94     - removed automatic setting of ReadyToSave in constructor
     95       PLEASE contact me if you have trouble with this
     96
     97   * mraw/MRawFileRead.cc:
     98     - SetReadyToSave for run-header after reading
     99
     100   * msignal/MExtractSlidingWindow.cc:
     101     - fixed ReInit-output
    86102
    87103
  • trunk/MagicSoft/Mars/mastro/MAstroCamera.cc

    r4715 r5144  
    299299// Otherwise a new object is created.
    300300//
     301// FIXME: Add Project functionand change treating MHCamera and
     302//        TH2D accordingly
     303//
    301304void MAstroCamera::AddPrimitives(TString o)
    302305{
     
    469472      // Do _not_ remove this, name needs to be
    470473      // transferred to the starpos.
    471       TString name = radec->GetName();
    472       if (name.Length()==0) {
    473         starpos->SetName("unknown");
    474       } else {
    475         starpos->SetName(radec->GetName());
    476       }
     474      const TString name = radec->GetName();
     475      starpos->SetName(name.IsNull() ? "n/a" : name.Data());
    477476
    478477      const TVector3 spot = fMirror0->GetReflection(star, fGeom->GetCameraDist())*1000;
  • trunk/MagicSoft/Mars/mbase/MDirIter.cc

    r4966 r5144  
    350350    }
    351351}
     352
     353// --------------------------------------------------------------------------
     354//
     355// Loop over all contents (files). Sort the files alphabetically.
     356// Delete the contents of this DirIter and add all sorted files
     357// to this DirIter.
     358//
     359void MDirIter::Sort()
     360{
     361    MDirIter Next(*this);
     362
     363    TList l;
     364    l.SetOwner();
     365
     366    TString name;
     367    while (!(name=Next()).IsNull())
     368        l.Add(new TNamed(name.Data(), ""));
     369
     370    l.Sort();
     371
     372    fList.Delete();
     373    Close();
     374    fFilter = "";
     375
     376    TIter NextN(&l);
     377    TObject *o=0;
     378    while ((o=NextN()))
     379           AddDirectory(o->GetName());
     380}
  • trunk/MagicSoft/Mars/mbase/MDirIter.h

    r4966 r5144  
    4848    }
    4949
     50    void Sort();
     51
    5052    Int_t AddDirectory(const char *dir, const char *filter="", Int_t recursive=0);
    5153    void  Add(const MDirIter &iter);
  • trunk/MagicSoft/Mars/mgeom/MGeomCam.cc

    r3666 r5144  
    9494    for (UInt_t i=0; i<npix; i++)
    9595        fPixels[i] = new MGeomPix;
    96 
    97     SetReadyToSave();
    9896}
    9997
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.cc

    r4738 r5144  
    202202    fNumEvents += fRawRunHeader->GetNumEvents();
    203203
     204    fRawRunHeader->SetReadyToSave();
     205
    204206    //
    205207    // Give the run header information to the 'sub-classes'
  • trunk/MagicSoft/Mars/msignal/MExtractSlidingWindow.cc

    r4899 r5144  
    1717!
    1818!   Author(s): Thomas Bretz, 02/2004 <mailto:tbretz@astro.uni-wuerzburg.de>
    19 !             Hendrik Bartko, 01/2004 <mailto:hbartko@mppmu.mpg.de>
    20 !              Markus Gaug   , 04/2004 <mailto:markus@ifae.es>
     19!   Author(s): Hendrik Bartko, 01/2004 <mailto:hbartko@mppmu.mpg.de>
     20!   Author(s): Markus Gaug, 04/2004 <mailto:markus@ifae.es>
    2121!
    2222!   Copyright: MAGIC Software Development, 2000-2004
     
    130130
    131131
    132   *fLog << endl;
    133   *fLog << inf << GetDescriptor() << ": Taking " << fNumHiGainSamples
    134         << " HiGain samples from a window starting with slice " << (Int_t)fHiGainFirst
     132  *fLog << dec << endl;
     133  *fLog << inf << "Taking " << fNumHiGainSamples
     134        << " HiGain samples starting with slice " << (Int_t)fHiGainFirst
    135135        << " to " << (Int_t)(fHiGainLast+fHiLoLast) << " incl" << endl;
    136   *fLog << inf << GetDescriptor() << ": Taking " << fNumLoGainSamples
    137         << " LoGain samples from a window starting with slice " << (Int_t)fLoGainFirst
     136  *fLog << inf << "Taking " << fNumLoGainSamples
     137        << " LoGain samples starting with slice " << (Int_t)fLoGainFirst
    138138        << " to " << (Int_t)fLoGainLast << " incl" << endl;
    139139
Note: See TracChangeset for help on using the changeset viewer.