Changeset 1353 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 06/10/02 09:01:08 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/BaseLinkDef.h
r1116 r1353 5 5 #pragma link off all functions; 6 6 7 #pragma link C++ enum ParticleId_t; 8 7 9 #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;13 10 #pragma link C++ global kPI; 14 11 #pragma link C++ global kRad2Deg; -
trunk/MagicSoft/Mars/mbase/MAGIC.h
r1337 r1353 22 22 // ParticleId for Monte Carlo simulation 23 23 // 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; 24 typedef enum 25 { 26 kGAMMA = 1, 27 kPROTON = 14, 28 kHELIUM = 402, 29 kOXYGEN = 1608, 30 kIRON = 5626 31 } ParticleId_t; 29 32 30 33 const Double_t kPI = 3.1415926535897932384626433832795028841971693993751; -
trunk/MagicSoft/Mars/mbase/MGList.cc
r1218 r1353 99 99 // 100 100 #if ROOT_VERSION_CODE < ROOT_VERSION(3,02,07) 101 if (!obj->I sA()->InheritsFrom(TGWidget::Class()))101 if (!obj->InheritsFrom(TGWidget::Class())) 102 102 return NULL; 103 103 #endif -
trunk/MagicSoft/Mars/mbase/MWriteAsciiFile.cc
r1348 r1353 50 50 #include <fstream.h> 51 51 52 #include <TClass.h> // IsA53 52 #include <TMethodCall.h> // TMethodCall, AsciiWrite 54 53 … … 247 246 // MData is the highest class in the inheritance tree 248 247 // 249 if (obj->I sA()->InheritsFrom(MData::Class()))248 if (obj->InheritsFrom(MData::Class())) 250 249 { 251 250 if (!((MData*)obj)->PreProcess(plist)) … … 257 256 // MParContainer is the next class in the inheritance tree 258 257 // 259 if (obj->I sA()->InheritsFrom(MParContainer::Class()))258 if (obj->InheritsFrom(MParContainer::Class())) 260 259 continue; 261 260 … … 287 286 Int_t num = fList.GetEntries(); 288 287 289 *fLog << all << "CHECK&WRITE " << num << endl;290 291 288 TIter Next(&fList); 292 289 while ((obj=(MParContainer*)Next())) 293 290 { 294 *fLog << all << endl << obj->IsA()->GetName() << ": 0..." << flush;295 296 291 if (!obj->IsReadyToSave()) 297 292 continue; 298 293 299 *fLog << all << "1..." << flush;300 301 294 if (!obj->AsciiWrite(*fOut)) 302 295 continue; 303 296 304 *fLog << all << "2..." << flush;305 306 297 written = kTRUE; 307 298
Note:
See TracChangeset
for help on using the changeset viewer.