Ignore:
Timestamp:
06/02/08 09:52:26 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MDirIter.cc

    r7808 r8907  
    1818!   Author(s): Thomas Bretz, 6/2003 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2003
     20!   Copyright: MAGIC Software Development, 2000-2008
    2121!
    2222!
     
    6565#include <iostream>
    6666
     67#include <TList.h>
    6768#include <TNamed.h>
    6869#include <TRegexp.h>
  • trunk/MagicSoft/Mars/mbase/MEnv.cc

    r8741 r8907  
    4949#include <Gtypes.h>
    5050#include <TObjString.h>
     51#include <TObjArray.h>
    5152
    5253#include <TPave.h>
     
    594595    case kFullDotMedium:    val = "fulldotmedium";
    595596    case kFullDotLarge:     val = "fulldotlarge";
    596     case kOpenTriangleDown: val = "opentriangledown";
    597     case kFullCross:        val = "fullcross";
     597//    case kOpenTriangleDown: val = "opentriangledown";
     598//    case kFullCross:        val = "fullcross";
    598599    case kFullCircle:       val = "fullcircle";
    599600    case kFullSquare:       val = "fullsquare";
  • trunk/MagicSoft/Mars/mbase/MFilter.cc

    r6892 r8907  
    1818!   Author(s): Thomas Bretz, 07/2001 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2004
     20!   Copyright: MAGIC Software Development, 2000-2008
    2121!
    2222!
     
    7171/////////////////////////////////////////////////////////////////////////////
    7272#include "MFilter.h"
     73
     74#include <TMath.h>
    7375
    7476#include "MLog.h"
  • trunk/MagicSoft/Mars/mbase/MGMap.cc

    r7808 r8907  
    1818!   Author(s): Thomas Bretz, 05/2004 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2002-2004
     20!   Copyright: MAGIC Software Development, 2002-2008
    2121!
    2222!
     
    3939#include "MGMap.h"
    4040
    41 #include <limits.h>  // INT_MAX
     41//#include <limits.h>  // INT_MAX
     42
     43#include <TMath.h>
    4244
    4345#include <TPad.h>    // gPad, TPad::GetMaxDistance()
  • trunk/MagicSoft/Mars/mbase/MGTask.cc

    r2206 r8907  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  11/2001 <mailto:tbretz@uni-sw.gwdg.de>
     18!   Author(s): Thomas Bretz  11/2001 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2001
     20!   Copyright: MAGIC Software Development, 2000-2008
    2121!
    2222!
     
    3333#include "MGTask.h"
    3434
     35#include <TClass.h>
    3536#include <TMethod.h>
    3637
  • trunk/MagicSoft/Mars/mbase/MRunIter.cc

    r7808 r8907  
    1919!   Author(s): Javier Rico,  4/2004 <mailto:jrico@ifae.es>
    2020!
    21 !   Copyright: MAGIC Software Development, 2000-2004
     21!   Copyright: MAGIC Software Development, 2000-2008
    2222!
    2323!
     
    3535#include "MRunIter.h"
    3636
     37#include <iostream>
     38
     39#include <TMath.h>
    3740#include <TSystem.h>
    38 #include <iostream>
    3941
    4042ClassImp(MRunIter);
    4143
    4244using namespace std;
     45
     46void MRunIter::SortRuns()
     47{
     48    const int n = GetNumRuns();
     49
     50    TArrayI idx(n);
     51    TMath::Sort(n, fRuns.GetArray(), idx.GetArray(), kFALSE);
     52
     53    for (int i=0; i<n; i++)
     54        idx[i] = fRuns[idx[i]];
     55
     56    fRuns = idx;
     57}
    4358
    4459Int_t MRunIter::AddRun(UInt_t run, const char *path)
  • trunk/MagicSoft/Mars/mbase/MRunIter.h

    r5469 r8907  
    2828    }
    2929
    30     void SortRuns()
    31     {
    32         const int n = GetNumRuns();
    33 
    34         TArrayI idx(n);
    35         TMath::Sort(n, fRuns.GetArray(), idx.GetArray(), kFALSE);
    36 
    37         for (int i=0; i<n; i++)
    38             idx[i] = fRuns[idx[i]];
    39 
    40         fRuns = idx;
    41     }
     30    void SortRuns();
    4231
    4332public:
  • trunk/MagicSoft/Mars/mbase/MTask.cc

    r8642 r8907  
    9898#include <fstream>
    9999
     100#include <TClass.h>
    100101#include <TBaseClass.h> // OverwritesProcess
    101102#include <TStopwatch.h> // TStopwatch
  • trunk/MagicSoft/Mars/mbase/MTime.cc

    r8765 r8907  
    1818!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2003
     20!   Copyright: MAGIC Software Development, 2000-2008
    2121!
    2222!
     
    510510    return fmod(sum, 1)*TMath::TwoPi();//+TMath::TwoPi();
    511511}
     512
     513// --------------------------------------------------------------------------
     514//
     515// Return Day of the week: Sun=0, Mon=1, ..., Sat=6
     516//
     517Byte_t MTime::WeekDay() const
     518{
     519    return TMath::FloorNint(GetMjd()+3)%7;
     520}
    512521
    513522// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mbase/MTime.h

    r8765 r8907  
    2121#include <TTime.h>
    2222#endif
     23
     24#include <TMath.h>
    2325
    2426struct timeval;
     
    131133    UInt_t Month() const    { UShort_t y; Byte_t m, d; GetDate(y,m,d); return m; }
    132134    UInt_t Day() const      { UShort_t y; Byte_t m, d; GetDate(y,m,d); return d; }
    133     Byte_t WeekDay() const  { return TMath::Nint(TMath::Floor(GetMjd()+3))%7; } // Return Day of the week: Sun=0, Mon=1, ..., Sat=6
     135    Byte_t WeekDay() const; // { return TMath::FloorNint(GetMjd()+3)%7; } // Return Day of the week: Sun=0, Mon=1, ..., Sat=6
    134136    UInt_t Hour() const     { Byte_t h, m, s; GetTime(h,m,s); return h; }
    135137    UInt_t Min() const      { Byte_t h, m, s; GetTime(h,m,s); return m; }
Note: See TracChangeset for help on using the changeset viewer.