Changeset 1474 for trunk/MagicSoft/Mars/mdata/MDataChain.cc
- Timestamp:
- 08/02/02 09:32:34 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdata/MDataChain.cc
r1465 r1474 448 448 } 449 449 450 /* 450 451 void MDataChain::Print(Option_t *opt) const 451 452 { 453 *fLog << GetRule() << flush; 452 454 Bool_t bracket = fOperatorType!=kENoop && !fMember->InheritsFrom(MDataList::Class()); 453 455 … … 483 485 if (bracket) 484 486 *fLog << ")" << flush; 485 } 487 } 488 */ 489 490 TString MDataChain::GetRule() const 491 { 492 TString str; 493 494 Bool_t bracket = fOperatorType!=kENoop && !fMember->InheritsFrom(MDataList::Class()); 495 496 switch (fOperatorType) 497 { 498 case kEAbs: str += "abs" ; break; 499 case kELog: str += "log" ; break; 500 case kELog10: str += "log10" ; break; 501 case kESin: str += "sin" ; break; 502 case kECos: str += "cos" ; break; 503 case kETan: str += "tan" ; break; 504 case kESinH: str += "sinh" ; break; 505 case kECosH: str += "cosh" ; break; 506 case kETanH: str += "tanh" ; break; 507 case kEASin: str += "asin" ; break; 508 case kEACos: str += "acos" ; break; 509 case kEATan: str += "atan" ; break; 510 case kESqrt: str += "sqrt" ; break; 511 case kEExp: str += "exp" ; break; 512 case kEPow10: str += "pow10" ; break; 513 case kESgn: str += "sgn" ; break; 514 case kENegative: str += "-" ; break; 515 case kEPositive: str += "+" ; break; 516 case kENoop: 517 break; 518 } 519 520 if (bracket) 521 str += "("; 522 523 str += fMember->GetRule(); 524 525 if (bracket) 526 str += ")"; 527 528 return str; 529 }
Note:
See TracChangeset
for help on using the changeset viewer.