Changeset 3810
- Timestamp:
- 04/22/04 21:49:38 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3809 r3810 121 121 - added MRawFileRead for option SetDataCheck() 122 122 123 * mjobs/MJPedestal.cc 124 - added MRawFileRead for option SetDataCheck() 123 125 124 126 -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r3718 r3810 17 17 ! 18 18 ! Author(s): Thomas Bretz, 1/2004 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! Markus Gaug ,04/2004 <mailto:markus@ifae.es> 19 20 ! 20 21 ! Copyright: MAGIC Software Development, 2000-2004 … … 53 54 54 55 #include "MReadMarsFile.h" 56 #include "MRawFileRead.h" 55 57 #include "MGeomApply.h" 56 58 #include "MBadPixelsMerge.h" … … 61 63 using namespace std; 62 64 63 MJPedestal::MJPedestal(const char *name, const char *title) : fRuns(0) 65 MJPedestal::MJPedestal(const char *name, const char *title) 66 : fRuns(0), fDataCheck(kFALSE) 67 64 68 { 65 69 fName = name ? name : "MJPedestal"; … … 226 230 void MJPedestal::DisplayResult(MParList &plist) 227 231 { 232 228 233 if (!fDisplay) 229 234 return; … … 333 338 *fLog << endl; 334 339 340 MParList plist; 341 MTaskList tlist; 342 plist.AddToList(&tlist); 343 335 344 MReadMarsFile read("Events"); 336 read.DisableAutoScheme(); 337 static_cast<MRead&>(read).AddFiles(*fRuns); 338 345 MRawFileRead rawread(""); 346 347 if (fDataCheck) 348 { 349 // rawread.AddFiles(*fRuns); 350 tlist.AddToList(&rawread); 351 } 352 else 353 { 354 read.DisableAutoScheme(); 355 static_cast<MRead&>(read).AddFiles(*fRuns); 356 tlist.AddToList(&read); 357 } 339 358 // Enable logging to file 340 359 //*fLog.SetOutputFile(lname, kTRUE); 341 360 342 361 // Setup Tasklist 343 MParList plist;344 362 plist.AddToList(&fPedestalCam); 345 363 plist.AddToList(&fBadPixels); 346 347 MTaskList tlist;348 plist.AddToList(&tlist);349 364 350 365 MGeomApply geomapl; … … 353 368 MPedCalcPedRun pedcalc; 354 369 355 tlist.AddToList(&read);356 370 tlist.AddToList(&geomapl); 357 371 // tlist.AddToList(&merge); -
trunk/MagicSoft/Mars/mjobs/MJPedestal.h
r3445 r3810 25 25 MBadPixelsCam fBadPixels; 26 26 27 Bool_t fDataCheck; // Flag if the data check is run on raw data 28 27 29 Bool_t ReadPedestalCam(); 28 30 Bool_t WriteResult(); … … 37 39 void SetOutputPath(const char *path="."); 38 40 void SetInput(MRunIter *iter) { fRuns=iter; } 41 42 // Data Check 43 void SetDataCheck(const Bool_t b=kTRUE) { fDataCheck = b; } 39 44 40 45 TString GetOutputFile() const;
Note:
See TracChangeset
for help on using the changeset viewer.