Changeset 6313 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 02/09/05 16:36:50 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r6281 r6313 1801 1801 fTimeExtractor = &timehigh; 1802 1802 1803 const Bool_t istimecharge = fExtractor->InheritsFrom("MExtractTimeAndCharge"); 1803 1804 // 1804 1805 // Look if the extractor is a pure charge or also a time extractor 1805 1806 // 1806 if ( fExtractor->InheritsFrom("MExtractTimeAndCharge"))1807 if (istimecharge) 1807 1808 { 1808 1809 if (fExtractorCam.GetSize() == pedcam.GetSize()) … … 1842 1843 1843 1844 MTaskEnv taskenv2("ExtractTime"); 1844 if (! fExtractor->InheritsFrom("MExtractTimeAndCharge"))1845 { 1846 1847 1848 1849 1845 if (!istimecharge) 1846 { 1847 taskenv2.SetDefault(fTimeExtractor); 1848 1849 if (IsRelTimes()) 1850 tlist.AddToList(&taskenv2); 1850 1851 } 1851 1852 … … 1894 1895 } 1895 1896 1896 if (!WriteTasks(taskenv.GetTask(), IsRelTimes() ? taskenv2.GetTask() : 0))1897 if (!WriteTasks(taskenv.GetTask(), istimecharge ? 0 : taskenv2.GetTask())) 1897 1898 return kFALSE; 1898 1899 … … 1900 1901 if (!evtloop.Eventloop()) 1901 1902 { 1902 //DisplayResult(plist);1903 //WriteResult(plist);1904 1905 1903 DisplayResult(plist); 1904 WriteResult(plist); 1905 *fLog << err << GetDescriptor() << ": Failed." << endl; 1906 return kFALSE; 1906 1907 } 1907 1908 1908 1909 tlist.PrintStatistics(); 1909 1910 1910 /*1911 1912 MHCalibrationRelTimeCam *hcam = (MHCalibrationRelTimeCam*)plist.FindObject("MHCalibrationRelTimeCam");1913 MHCalibrationPix &pix1 = (*hcam)[100];1914 pix1.DrawClone("");1915 gPad->SaveAs("test_time_100.ps");1916 1917 1911 MHCalibrationChargeCam *hccam = (MHCalibrationChargeCam*)plist.FindObject("MHCalibrationChargeCam"); 1918 MHCalibrationPix &pix11 = (*hccam)[ 100];1912 MHCalibrationPix &pix11 = (*hccam)[0]; 1919 1913 pix11.DrawClone(""); 1920 gPad->SaveAs("test_charge_100.ps"); 1921 1922 MHCalibrationPix &pix2 = (MHCalibrationPix&)(*hcam)[400]; 1923 pix2.DrawClone(""); 1924 gPad->SaveAs("test_time_400.ps"); 1925 1926 MHCalibrationPix &pix22 = (*hccam)[400]; 1927 pix22.DrawClone(""); 1928 gPad->SaveAs("test_charge_400.ps"); 1929 1930 *fLog << err << "Blackout 100: " << fRelTimeCam[100].GetNumBlackout() << endl; 1931 *fLog << err << "Picup 100: " << fRelTimeCam[100].GetNumPickup () << endl; 1932 *fLog << err << "Blackout 400: " << fRelTimeCam[400].GetNumBlackout() << endl; 1933 *fLog << err << "Picup 400: " << fRelTimeCam[400].GetNumPickup () << endl; 1934 1935 */ 1914 gPad->SaveAs("test_charge_0.ps"); 1936 1915 1937 1916 if (!fCalibrationPINDiode.IsValid())
Note:
See TracChangeset
for help on using the changeset viewer.