Changeset 3300 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 02/25/04 14:13:12 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.cc
r3296 r3300 433 433 *fLog << all << "MSourcePosfromStarPos::ReInit; run = " << run << endl; 434 434 435 // define default values 436 Double_t xSource_def = 51.0; 437 Double_t ySource_def = -59.0; 438 Double_t theta_def = 25.0; 439 Double_t phi_def = 0.0; 440 435 441 //------------------------------------------------------------------- 436 442 // search this run in the list … … 449 455 450 456 *fLog << all << "theta, phi = " << thetarad*kRad2Deg << ", " 451 << phirad*kRad2Deg << endl;457 << phirad*kRad2Deg << " deg" << endl; 452 458 453 459 //----------------------------------------- … … 485 491 fSrcPos->SetReadyToSave(); 486 492 } 493 else 494 { 495 // set default values 496 fxSource = xSource_def; 497 fySource = ySource_def; 498 fSrcPos->SetXY(fxSource, fySource); 499 fSrcPos->SetReadyToSave(); 500 501 *fLog << warn << "MSourcePosfromStarPos::ReInit; no information on source position for run number = " 502 << run << endl; 503 *fLog << warn << " set xSource, ySource = " << fxSource << ", " 504 << fySource << " mm" << endl; 505 } 487 506 488 507 … … 491 510 } 492 511 //------------------------------------------------------------------- 493 *fLog << warn << "MSourcePosfromStarPos::ReInit; no information for run number = " 494 << run << endl; 495 496 Double_t thetadeg = 25.0; 512 513 // set default values 514 fxSource = xSource_def; 515 fySource = ySource_def; 516 fSrcPos->SetXY(fxSource, fySource); 517 fSrcPos->SetReadyToSave(); 518 519 Double_t thetadeg = theta_def; 497 520 Double_t thetarad = thetadeg / kRad2Deg; 498 521 fMcEvt->SetTelescopeTheta(thetarad); 499 522 500 Double_t phideg = 0.0;523 Double_t phideg = phi_def; 501 524 Double_t phirad = phideg / kRad2Deg; 502 525 fMcEvt->SetTelescopePhi(phirad); 503 526 fMcEvt->SetReadyToSave(); 527 528 *fLog << warn << "MSourcePosfromStarPos::ReInit; no information on theta, phi and source position for run number = " 529 << run << endl; 530 *fLog << warn << " set xSource, ySource = " << fxSource << ", " 531 << fySource << " mm" << endl; 532 *fLog << warn << " set theta, phi = " << thetadeg << ", " 533 << phideg << " deg" << endl; 534 504 535 505 536 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.