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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/BaseLinkDef.h

    r1116 r1353  
    55#pragma link off all functions;
    66
     7#pragma link C++ enum ParticleId_t;
     8
    79#pragma link C++ global kCONTINUE;
    8 #pragma link C++ global kGAMMA;
    9 #pragma link C++ global kPROTON;
    10 #pragma link C++ global kHELIUM;
    11 #pragma link C++ global kOXIGEN;
    12 #pragma link C++ global kIRON;
    1310#pragma link C++ global kPI;
    1411#pragma link C++ global kRad2Deg;
  • trunk/MagicSoft/Mars/mbase/MAGIC.h

    r1337 r1353  
    2222//     ParticleId for Monte Carlo simulation
    2323//
    24 const Int_t kGAMMA  =    1;
    25 const Int_t kPROTON =   14;
    26 const Int_t kHELIUM =  402;
    27 const Int_t kOXIGEN = 1608;
    28 const Int_t kIRON   = 5626;
     24typedef enum
     25{
     26    kGAMMA  =    1,
     27    kPROTON =   14,
     28    kHELIUM =  402,
     29    kOXYGEN = 1608,
     30    kIRON   = 5626
     31} ParticleId_t;
    2932
    3033const Double_t kPI      = 3.1415926535897932384626433832795028841971693993751;
  • trunk/MagicSoft/Mars/mbase/MGList.cc

    r1218 r1353  
    9999    //
    100100#if ROOT_VERSION_CODE < ROOT_VERSION(3,02,07)
    101     if (!obj->IsA()->InheritsFrom(TGWidget::Class()))
     101    if (!obj->InheritsFrom(TGWidget::Class()))
    102102        return NULL;
    103103#endif
  • trunk/MagicSoft/Mars/mbase/MWriteAsciiFile.cc

    r1348 r1353  
    5050#include <fstream.h>
    5151
    52 #include <TClass.h>      // IsA
    5352#include <TMethodCall.h> // TMethodCall, AsciiWrite
    5453
     
    247246        // MData is the highest class in the inheritance tree
    248247        //
    249         if (obj->IsA()->InheritsFrom(MData::Class()))
     248        if (obj->InheritsFrom(MData::Class()))
    250249        {
    251250            if (!((MData*)obj)->PreProcess(plist))
     
    257256        // MParContainer is the next class in the inheritance tree
    258257        //
    259         if (obj->IsA()->InheritsFrom(MParContainer::Class()))
     258        if (obj->InheritsFrom(MParContainer::Class()))
    260259            continue;
    261260
     
    287286    Int_t num = fList.GetEntries();
    288287
    289     *fLog << all << "CHECK&WRITE " << num << endl;
    290 
    291288    TIter Next(&fList);
    292289    while ((obj=(MParContainer*)Next()))
    293290    {
    294         *fLog << all << endl << obj->IsA()->GetName() << ": 0..." << flush;
    295 
    296291        if (!obj->IsReadyToSave())
    297292            continue;
    298293
    299         *fLog << all << "1..." << flush;
    300 
    301294        if (!obj->AsciiWrite(*fOut))
    302295            continue;
    303296
    304         *fLog << all << "2..." << flush;
    305 
    306297        written = kTRUE;
    307298
Note: See TracChangeset for help on using the changeset viewer.