Changeset 3862 for trunk/MagicSoft/Mars/mjobs/MJExtractCalibTest.cc
- Timestamp:
- 04/28/04 11:15:08 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJExtractCalibTest.cc
r3854 r3862 54 54 #include "MReadMarsFile.h" 55 55 #include "MGeomApply.h" 56 #include "MExtractSignal.h" 56 #include "MExtractSlidingWindow.h" 57 #include "MExtractor.h" 57 58 #include "MFillH.h" 58 59 #include "MCalibrate.h" … … 65 66 66 67 using namespace std; 67 68 MJExtractCalibTest::MJExtractCalibTest(const char *name, const char *title) : fRuns(0) 68 // -------------------------------------------------------------------------- 69 // 70 // Default constructor. 71 // 72 // Sets fRuns to 0, fExtractor to NULL 73 // 74 MJExtractCalibTest::MJExtractCalibTest(const char *name, const char *title) 75 : fRuns(NULL), fExtractor(NULL) 69 76 { 70 77 fName = name ? name : "MJExtractCalibTest"; … … 93 100 94 101 // Create histograms to display 95 MHCamera disp1 (geomcam, " Cal;Photons", "Mean of calibrated Photons");96 MHCamera disp2 (geomcam, " Cal;SigmaPhotons", "Sigma of calibrated photons");97 MHCamera disp3 (geomcam, " Cal;PhotonsPerArea", "MeanPhotons per Area");98 MHCamera disp4 (geomcam, " Cal;SigmaPhotPerArea", "SigmaPhotons per Area");102 MHCamera disp1 (geomcam, "Test;Photons", "Mean of calibrated Photons"); 103 MHCamera disp2 (geomcam, "Test;SigmaPhotons", "Sigma of calibrated photons"); 104 MHCamera disp3 (geomcam, "Test;PhotonsPerArea", "Equiv. Cherenkov Photons per Area"); 105 MHCamera disp4 (geomcam, "Test;SigmaPhotPerArea", "Sigma equiv. Cher. Photons per Area"); 99 106 100 107 // Fitted charge means and sigmas … … 199 206 static_cast<MRead&>(read).AddFiles(*fRuns); 200 207 201 MGeomApply apply; // Only necessary to craete geometry202 MExtractS ignal extract;203 MCalibrate photcalc;208 MGeomApply apply; // Only necessary to craete geometry 209 MExtractSlidingWindow extract2; 210 MCalibrate photcalc; 204 211 photcalc.SetCalibrationMode(MCalibrate::kFfactor); 205 212 … … 223 230 tlist.AddToList(&read); 224 231 tlist.AddToList(&apply); 225 tlist.AddToList(&extract); 232 233 if (fExtractor) 234 tlist.AddToList(fExtractor); 235 else 236 { 237 *fLog << warn << GetDescriptor() 238 << ": No extractor has been chosen, take default MExtractSlidingWindow " << endl; 239 tlist.AddToList(&extract2); 240 } 241 226 242 if (TestBit(kEnableGraphicalOutput)) 227 243 tlist.AddToList(&fill); … … 328 344 plist.AddToList(&tlist); 329 345 330 MGeomApply apply; // Only necessary to craete geometry331 MExtractS ignal extract;332 MCalibrate calib;333 MPedPhotCalc calc;346 MGeomApply apply; // Only necessary to craete geometry 347 MExtractSlidingWindow extract2; 348 MCalibrate calib; 349 MPedPhotCalc calc; 334 350 335 351 MHCamEvent evt1("ExtOffset"); … … 342 358 tlist.AddToList(&read); 343 359 tlist.AddToList(&apply); 344 tlist.AddToList(&extract); 360 361 if (fExtractor) 362 tlist.AddToList(fExtractor); 363 else 364 { 365 *fLog << warn << GetDescriptor() 366 << ": No extractor has been chosen, take default MExtractSlidingWindow " << endl; 367 tlist.AddToList(&extract2); 368 } 369 345 370 if (TestBit(kEnableGraphicalOutput)) 346 371 tlist.AddToList(&fill1);
Note:
See TracChangeset
for help on using the changeset viewer.