Ignore:
Timestamp:
02/23/10 10:43:20 (15 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
3 edited

Legend:

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

    r9518 r9552  
    4040bool MARS::CheckRootVer()
    4141{
    42     if (strcmp(gROOT->GetVersion(), "5.22/00")>0)
     42    if (strcmp(gROOT->GetVersion(), "5.22/00")>0 && strcmp(gROOT->GetVersion(), "5.26/00")<0)
    4343    {
    4444        cout << "WARNING - Especially root 5.24/00 has a severe bug in projection 2D histograms" << endl;
  • trunk/MagicSoft/Mars/mbase/MGMap.cc

    r9195 r9552  
    158158void MGMap::Delete(Option_t *)
    159159{
     160#if ROOT_VERSION_CODE < ROOT_VERSION(5,26,00)
    160161    Long_t key, val;
     162#else
     163    Long64_t key, val;
     164#endif
     165
    161166    TExMapIter map(this);
    162167    while (map.Next(key, val))
     
    424429void MGMap::Paint(Option_t *)
    425430{
     431#if ROOT_VERSION_CODE < ROOT_VERSION(5,26,00)
    426432    Long_t key, val;
     433#else
     434    Long64_t key, val;
     435#endif
     436
    427437    TExMapIter map(this);
    428438    while (map.Next(key, val))
     
    441451    scale /= TMath::Hypot((float)w, (float)h)/2;
    442452
     453#if ROOT_VERSION_CODE < ROOT_VERSION(5,26,00)
    443454    Long_t key, val;
     455#else
     456    Long64_t key, val;
     457#endif
     458
    444459    TExMapIter map(this);
    445460    while (map.Next(key, val))
     
    458473TObject *MGMap::PickObject(Int_t px, Int_t py, TString &str) const
    459474{
     475#if ROOT_VERSION_CODE < ROOT_VERSION(5,26,00)
    460476    Long_t key, val;
     477#else
     478    Long64_t key, val;
     479#endif
     480
    461481    TExMapIter map(this);
    462482    while (map.Next(key, val))
     
    500520    Int_t min = INT_MAX;
    501521
     522#if ROOT_VERSION_CODE < ROOT_VERSION(5,26,00)
    502523    Long_t key, val;
     524#else
     525    Long64_t key, val;
     526#endif
     527
    503528    TExMapIter map(this);
    504529    while (map.Next(key, val))
  • trunk/MagicSoft/Mars/mbase/MObjLookup.cc

    r8930 r9552  
    4444    TExMapIter iter(&fMap);
    4545
    46     Long_t key;
    47     Long_t value;
     46#if ROOT_VERSION_CODE < ROOT_VERSION(5,26,00)
     47    Long_t key, value;
     48#else
     49    Long64_t key, value;
     50#endif
    4851
    4952    while (iter.Next(key, value))
Note: See TracChangeset for help on using the changeset viewer.