Changeset 6234
- Timestamp:
- 02/03/05 13:39:19 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc
r6229 r6234 294 294 { 295 295 TString dat = GetEnv("DataType", ""); 296 dat = dat.Strip(TString::kBoth); 296 297 if (dat.BeginsWith("raw", TString::kIgnoreCase)) 297 298 { -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r6191 r6234 1384 1384 const char* MJCalibration::GetOutputFileName() const 1385 1385 { 1386 if (fSequence.IsValid()) 1387 return Form("calib%08d.root", fSequence.GetSequence()); 1388 if (!fRuns) 1389 return ""; 1390 1391 return Form("%s-F1.root", (const char*)fRuns->GetRunsAsFileName()); 1386 1387 if (fSequence.IsValid()) 1388 return Form("calib%08d.root", fSequence.GetSequence()); 1389 if (!fRuns) 1390 return ""; 1391 1392 return Form("%s-F1.root", (const char*)fRuns->GetRunsAsFileName()); 1392 1393 } 1393 1394 … … 1422 1423 { 1423 1424 TString dat = GetEnv("DataType", ""); 1425 dat = dat.Strip(TString::kBoth); 1424 1426 if (dat.BeginsWith("raw", TString::kIgnoreCase)) 1425 1427 { … … 1879 1881 1880 1882 tlist.PrintStatistics(); 1881 1883 1882 1884 /* 1885 1883 1886 MHCalibrationRelTimeCam *hcam = (MHCalibrationRelTimeCam*)plist.FindObject("MHCalibrationRelTimeCam"); 1884 MHCalibrationPix &pix1 = (*hcam) (100);1887 MHCalibrationPix &pix1 = (*hcam)[100]; 1885 1888 pix1.DrawClone(""); 1886 1889 gPad->SaveAs("test_time_100.ps"); 1887 1890 1888 1891 MHCalibrationChargeCam *hccam = (MHCalibrationChargeCam*)plist.FindObject("MHCalibrationChargeCam"); 1889 MHCalibrationPix &pix11 = (*hccam) (100);1892 MHCalibrationPix &pix11 = (*hccam)[100]; 1890 1893 pix11.DrawClone(""); 1891 1894 gPad->SaveAs("test_charge_100.ps"); 1892 1895 1893 MHCalibrationPix &pix2 = (MHCalibrationPix&)(*hcam) (400);1896 MHCalibrationPix &pix2 = (MHCalibrationPix&)(*hcam)[400]; 1894 1897 pix2.DrawClone(""); 1895 1898 gPad->SaveAs("test_time_400.ps"); 1896 1899 1897 MHCalibrationPix &pix22 = (*hccam) (400);1900 MHCalibrationPix &pix22 = (*hccam)[400]; 1898 1901 pix22.DrawClone(""); 1899 1902 gPad->SaveAs("test_charge_400.ps"); … … 1903 1906 *fLog << err << "Blackout 400: " << fRelTimeCam[400].GetNumBlackout() << endl; 1904 1907 *fLog << err << "Picup 400: " << fRelTimeCam[400].GetNumPickup () << endl; 1908 1905 1909 */ 1906 1910 -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r6191 r6234 94 94 // 95 95 // Sets: 96 // - fRuns to 0,97 96 // - fExtractor to NULL, 98 97 // - fExtractType to kUsePedRun … … 748 747 { 749 748 TString dat = GetEnv("DataType", ""); 749 dat = dat.Strip(TString::kBoth); 750 750 if (dat.BeginsWith("raw", TString::kIgnoreCase)) 751 751 { … … 766 766 767 767 if (HasEnv("UseData")) 768 768 fExtractType = GetEnv("UseData",kFALSE) ? kUseData : kUsePedRun; 769 769 770 770 if (HasEnv("UseHists")) 771 772 773 771 if (GetEnv("UseHists",kFALSE)) 772 fExtractType = kUseHists; 773 774 774 SetNoStorage(GetEnv("DisableOutput", IsNoStorage())); 775 775 … … 889 889 if (fSequence.IsValid()) 890 890 { 891 const Int_t n0 = IsUseData() ? fSequence.SetupDatRuns(iter, fPathData, "D", IsUseRawData()) : fSequence.SetupPedRuns(iter, fPathData, "P", IsUseRawData()); 892 const Int_t n1 = IsUseData() ? fSequence.GetNumDatRuns() : fSequence.GetNumPedRuns(); 891 const Int_t n0 = IsUseData() 892 ? fSequence.SetupDatRuns(iter, fPathData, "D", IsUseRawData()) 893 : fSequence.SetupPedRuns(iter, fPathData, "P", IsUseRawData()); 894 const Int_t n1 = IsUseData() 895 ? fSequence.GetNumDatRuns() 896 : fSequence.GetNumPedRuns(); 893 897 if (n0==0) 894 898 { 895 *fLog << err << "ERROR - No " << type << " input files of sequence found in " << (fPathData.IsNull()?"<defaul >":fPathData.Data()) << endl;899 *fLog << err << "ERROR - No " << type << " input files of sequence found in " << (fPathData.IsNull()?"<default>":fPathData.Data()) << endl; 896 900 return kFALSE; 897 901 } 898 902 if (n0!=n1) 899 903 { 900 *fLog << err << "ERROR - Number of " << type << " files found (" << n0 << ") in " << (fPathData.IsNull()?"<defaul >":fPathData.Data()) << " doesn't match number of files in sequence (" << n1 << ")" << endl;904 *fLog << err << "ERROR - Number of " << type << " files found (" << n0 << ") in " << (fPathData.IsNull()?"<default>":fPathData.Data()) << " doesn't match number of files in sequence (" << n1 << ")" << endl; 901 905 return kFALSE; 902 906 } … … 913 917 read.DisableAutoScheme(); 914 918 if (fRuns || fSequence.IsValid()) 915 919 read.AddFiles(fSequence.IsValid() ? iter : *fRuns); 916 920 tlist.AddToList(&read); 917 921 }
Note:
See TracChangeset
for help on using the changeset viewer.