Changeset 8245 for trunk/MagicSoft
- Timestamp:
- 01/11/07 15:25:39 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8244 r8245 68 68 - use return value of MDataSet::AddFilesOn/Off for a sanity check 69 69 70 * mjobs/MJob.[h,cc]: 71 - removed obsolete fPathData and stuff 72 73 * callisto.cc, star.cc: 74 - removed obsolete calls to MJob::SetPathData 75 76 * callisto.rc, star.rc: 77 - removed obsolete examples for "PathData"-resource 78 79 * mjobs/MJCalibTest.cc, mjobs/MJCalibrateSignal.cc, 80 mjobs/MJCalibration.cc, mjobs/MJPedestal.cc, mjobs/MJStar.cc: 81 - removed obsolete reference to fPathData 82 70 83 71 84 -
trunk/MagicSoft/Mars/NEWS
r8239 r8245 38 38 treatment is not done for it anymore because it has never been used. 39 39 40 - callisto: Fixed a bug in the seuqence handling which caused the 41 light condition to be ignored 42 40 43 - optim: fixed a problem with the optim-macros which was due to a bug 41 44 in the new phrase parsing … … 51 54 macros could run with less files found than expected from the 52 55 sequence-files. No the execution is stopped in this case. 56 57 - ganymed: now stores the dataset in the output file with all information 58 contained (as sequence number, sequence path, data path) so that the 59 used dataset file can be recreated complete from the output 53 60 54 61 - sponde: now also allows the uasge of random forest -
trunk/MagicSoft/Mars/callisto.cc
r8088 r8245 283 283 // Setup sequence and check its validity 284 284 // 285 MSequence seq(kSequence );285 MSequence seq(kSequence, kInpathD); 286 286 if (kPrintSeq) 287 287 { … … 372 372 job1.SetDisplay(d); 373 373 job1.SetOverwrite(kOverwrite); 374 job1.SetPathData(kInpathD);375 374 job1.SetDataType(kDataType); 376 375 job1.SetUseHists(kMoon); … … 403 402 job2.SetDisplay(d);; 404 403 job2.SetOverwrite(kOverwrite); 405 job2.SetPathData(kInpathD);406 404 job2.SetDataType(kDataType); 407 405 job2.SetUseHists(kMoon); … … 440 438 job3.SetOverwrite(kOverwrite); 441 439 job3.SetPathOut(kOutpathC); 442 job3.SetPathData(kInpathD);443 440 job3.SetDataType(kDataType); 444 441 // job2.SetPathIn(kInpathC); // not yet needed … … 473 470 job4.SetOverwrite(kOverwrite); 474 471 job4.SetPathOut(kOutpathC); 475 job4.SetPathData(kInpathD);476 472 job4.SetDataType(kDataType); 477 473 … … 508 504 job1.SetNoDisplay(); 509 505 job1.SetOverwrite(kOverwrite); 510 job1.SetPathData(kInpathD);511 506 job1.SetPathIn(kInpathY); // --> READ Extractor from calib-file 512 507 job1.SetDataType(kDataType); … … 539 534 job2.SetNoDisplay(); 540 535 job2.SetOverwrite(kOverwrite); 541 job2.SetPathData(kInpathD);542 536 job2.SetPathIn(kInpathY); 543 537 job2.SetDataType(kDataType); … … 596 590 job3.SetNoDisplay(); 597 591 job3.SetOverwrite(kOverwrite); 598 job3.SetPathData(kInpathD);599 592 job3.SetPathIn(kInpathY); 600 593 job3.SetDataType(kDataType); … … 632 625 job4.SetPathIn(kInpathY); 633 626 job4.SetPathOut(kOutpathY); 634 job4.SetPathData(kInpathD);635 627 job4.SetDataType(kDataType); 636 628 if (kDataType!=MJCalib::kIsUseMC) -
trunk/MagicSoft/Mars/callisto.rc
r8011 r8245 42 42 # ------------------------------------------------------------------------- 43 43 #MJCalibration.PathOut: calped 44 45 # -------------------------------------------------------------------------46 # Use this to define where the program should search for the pedestal47 # and calibration files defined in the sequence. To use the local48 # directory use '.' If nothing is specified the default path in the49 # datacenter is used. (overwrites command line options)50 # -------------------------------------------------------------------------51 #MJPedestalC1.PathData: /data/MAGIC/Period016/52 #MJPedestalC2.PathData: /data/MAGIC/Period016/53 #MJCalibration.PathData: /data/MAGIC/Period016/54 44 55 45 # ------------------------------------------------------------------------- … … 288 278 #MJPedestalY2.PathOut: . 289 279 #MJPedestalY3.PathOut: . 290 #MJPedestalY1.PathData: /data/MAGIC/Period016/291 #MJPedestalY2.PathData: /data/MAGIC/Period016/292 #MJPedestalY3.PathData: /data/MAGIC/Period016/293 #MJCalibrateSignal.PathData: /data/MAGIC/Period016/294 280 #MJCalibrateSignal.PathIn: . 295 281 -
trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc
r8220 r8245 287 287 if (fSequence.IsValid()) 288 288 { 289 if (fSequence.SetupCalRuns(iter, fPathData, IsUseRawData())<=0)289 if (fSequence.SetupCalRuns(iter, 0, IsUseRawData())<=0) 290 290 return kFALSE; 291 291 } -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r8220 r8245 246 246 if (fSequence.IsValid()) 247 247 { 248 if (fSequence.SetupDatRuns(iter, fPathData, IsUseRawData())<=0)248 if (fSequence.SetupDatRuns(iter, 0, IsUseRawData())<=0) 249 249 return kFALSE; 250 250 } -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r8220 r8245 1698 1698 1699 1699 MDirIter iter; 1700 if (fSequence.SetupCalRuns(iter, fPathData, IsUseRawData())<=0)1700 if (fSequence.SetupCalRuns(iter, 0, IsUseRawData())<=0) 1701 1701 return kFALSE; 1702 1702 -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r8220 r8245 1003 1003 fLog->Separator(GetDescriptor()); 1004 1004 *fLog << "Calculate MPedestalCam from " << type << "-runs "; 1005 *fLog << fSequence.Get Name() << endl;1005 *fLog << fSequence.GetFileName() << endl; 1006 1006 *fLog << endl; 1007 1007 … … 1023 1023 { 1024 1024 const Int_t n0 = IsUseData() 1025 ? fSequence.SetupDatRuns(iter, fPathData, IsUseRawData())1026 : fSequence.SetupPedRuns(iter, fPathData, IsUseRawData());1025 ? fSequence.SetupDatRuns(iter, 0, IsUseRawData()) 1026 : fSequence.SetupPedRuns(iter, 0, IsUseRawData()); 1027 1027 1028 1028 if (n0<=0) -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r8244 r8245 142 142 143 143 MDirIter iter; 144 if (fSequence.SetupDatRuns(iter, MSequence::kCalibrated , fPathData)<=0)144 if (fSequence.SetupDatRuns(iter, MSequence::kCalibrated)<=0) 145 145 return kFALSE; 146 146 -
trunk/MagicSoft/Mars/mjobs/MJob.cc
r7358 r8245 140 140 } 141 141 142 void MJob::SetPathData(const char *path)143 {144 fPathData = path;145 FixPath(fPathData);146 }147 148 142 const TEnv *MJob::GetEnv() const 149 143 { … … 184 178 if (!p.IsNull()) 185 179 SetPathIn(p); 186 187 p = GetEnv("PathData", "");188 if (!p.IsNull())189 SetPathData(p);190 180 191 181 SetMaxEvents(GetEnv("MaxEvents", fMaxEvents)); -
trunk/MagicSoft/Mars/mjobs/MJob.h
r7358 r8245 24 24 TString fPathOut; // Directory to write output file to (eg. calib*.root) 25 25 TString fPathIn; // Directory to read output from (eg. calib*.root) 26 TString fPathData; // Directory to read data files from (2004*.root)27 26 28 27 Bool_t fOverwrite; // Allow overwriting output files … … 58 57 void SetPathOut(const char *path="."); 59 58 void SetPathIn(const char *path="."); 60 void SetPathData(const char *path=".");61 59 62 60 void SetOverwrite(Bool_t b=kTRUE) { fOverwrite=b; } … … 71 69 TString GetPathOut() const { return fPathOut; } 72 70 TString GetPathIn() const { return fPathIn; } 73 TString GetPathData() const { return fPathData; }74 71 75 72 // Others -
trunk/MagicSoft/Mars/mjobs/MSequence.h
r7380 r8245 26 26 }; 27 27 private: 28 TString fFileName; 29 TString fDataPath; 30 28 31 UInt_t fSequence; 29 32 … … 63 66 MSequence() : fSequence((UInt_t)-1), fLastRun((UInt_t)-1), 64 67 fNumEvents((UInt_t)-1), fPeriod((UInt_t)-1) { } 65 MSequence(const char *fname );68 MSequence(const char *fname, const char *path=""); 66 69 MSequence(const MSequence &s) : fSequence(s.fSequence), fStart(s.fStart), 67 70 fLastRun(s.fLastRun), fNumEvents(s.fNumEvents), fPeriod(s.fPeriod), … … 114 117 const TString GetStandardPath() const { return "/magic/data/"; } 115 118 119 const TString &GetFileName() const { return fFileName; } 120 const TString &GetDataPath() const { return fDataPath; } 121 116 122 // Setter 117 123 void SetNight(const char*night); -
trunk/MagicSoft/Mars/star.cc
r8088 r8245 179 179 // Setup sequence and check its validity 180 180 // 181 MSequence seq(kSequence );181 MSequence seq(kSequence, kInpath); 182 182 if (kPrintSeq) 183 183 { … … 244 244 job.SetOverwrite(kOverwrite); 245 245 job.SetPathOut(kOutpath); 246 job.SetPathData(kInpath);247 246 // job.SetPathIn(kInpath); // not yet needed 248 247 if (kNoMuons) -
trunk/MagicSoft/Mars/star.rc
r7225 r8245 29 29 #MJStar.PathOut: . 30 30 #MJStar.PathIn: . 31 32 # -------------------------------------------------------------------------33 # Use this to define where the program should search for the pedestal34 # and calibration files defined in the sequence. To use the local35 # directory use '.' If nothing is specified the default path in the36 # datacenter is used. (overwrites command line options)37 # -------------------------------------------------------------------------38 #MJStar.PathData: /data/MAGIC/Period016/39 31 40 32 # -------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.