Changeset 3300 for trunk/MagicSoft/Mars
- Timestamp:
- 02/25/04 14:13:12 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/ONOFFAnalysis.C
r3296 r3300 371 371 outNameImage += "Hillas"; 372 372 outNameImage += typeInput; 373 outNameImage += "1 b.root";373 outNameImage += "1e.root"; 374 374 gLog << "padded data to be written onto : " << outNameImage << endl; 375 375 … … 766 766 MWriteRootFile write(outNameImage); 767 767 768 write.AddContainer("MRawRunHeader", "RunHeaders");768 //write.AddContainer("MRawRunHeader", "RunHeaders"); 769 769 //write.AddContainer("MMcRunHeader", "RunHeaders", kFALSE); 770 770 //write.AddContainer("MTime", "Events"); … … 1820 1820 // file to be updated (either ON or MC) 1821 1821 1822 TString typeInput = "ON";1823 //TString typeInput = "OFF";1822 //TString typeInput = "ON"; 1823 TString typeInput = "OFF"; 1824 1824 //TString typeInput = "MC"; 1825 1825 gLog << "typeInput = " << typeInput << endl; 1826 1826 1827 if (typeInput == "ON") 1828 TString file(onfile); 1829 else if (typeInput == "OFF") 1830 TString file(offfile); 1831 else if (typeInput == "MC") 1832 TString file(mcfile); 1833 1827 1834 // name of input root file 1828 1835 TString filenameData = outPath; 1829 filenameData += onfile;1836 filenameData += file; 1830 1837 filenameData += "Hillas"; 1831 1838 filenameData += typeInput; 1832 filenameData += "1 b.root";1839 filenameData += "1c.root"; 1833 1840 gLog << "filenameData = " << filenameData << endl; 1834 1841 1835 1842 // name of output root file 1836 1843 TString outNameImage = outPath; 1837 outNameImage += onfile;1844 outNameImage += file; 1838 1845 outNameImage += "Hillas"; 1839 1846 outNameImage += typeInput; 1840 outNameImage += "2 b.root";1847 outNameImage += "2c.root"; 1841 1848 1842 1849 -
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.