Changeset 6604 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 02/18/05 16:29:20 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6570 r6604 88 88 #include "MFTriggerPattern.h" 89 89 #include "MGeomApply.h" 90 #include "MMcPedestalCopy.h"90 //#include "MMcPedestalCopy.h" 91 91 #include "MPointingPosCalc.h" 92 92 #include "MPointingPosInterpolate.h" … … 456 456 contcos.SetInverted(); 457 457 458 MMcPedestalCopy pcopy;458 //MMcPedestalCopy pcopy; 459 459 MTaskEnv taskenv1("ExtractSignal"); 460 460 MTaskEnv taskenv2("ExtractTime"); … … 472 472 calib.SetSignalType(MCalibrateData::kPhe); 473 473 //----- WORKAROUND: Currently MC has no lo-gain switch ------ 474 if (IsUseMC()) // MC file475 {476 calib.SetCalibrationMode(MCalibrateData::kFfactor);477 calib.SetPedestalFlag(MCalibrateData::kRun);478 // FIXME: What to do for MC files???479 calib.AddPedestal("MPedestalCam", "MPedPhotFundamental");480 calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractor");481 calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractorRndm");482 }483 else484 {474 //if (IsUseMC()) // MC file 475 //{ 476 // calib.SetCalibrationMode(MCalibrateData::kFfactor); 477 // calib.SetPedestalFlag(MCalibrateData::kRun); 478 // // FIXME: What to do for MC files??? 479 // calib.AddPedestal("MPedestalCam", "MPedPhotFundamental"); 480 // calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractor"); 481 // calib.AddPedestal("MPedestalCam", "MPedPhotFromExtractorRndm"); 482 //} 483 //else 484 //{ 485 485 calib.AddPedestal("Fundamental"); 486 486 calib.AddPedestal("FromExtractor"); 487 487 calib.AddPedestal("FromExtractorRndm"); 488 488 calib.SetPedestalFlag(MCalibrateData::kEvent); 489 }489 //} 490 490 //---------------------------------------------------------- 491 491 … … 624 624 tlist2.AddToList(&merge); 625 625 //----- WORKAROUND: Currently MC has no lo-gain switch ------ 626 if (IsUseMC())627 tlist2.AddToList(&pcopy);628 else629 {626 //if (IsUseMC()) 627 // tlist2.AddToList(&pcopy); 628 //else 629 //{ 630 630 tlist2.AddToList(&pedlo1); 631 631 tlist2.AddToList(&pedlo2); 632 632 tlist2.AddToList(&pedlo3); 633 }633 //} 634 634 //----------------------------------------------------------- 635 635 if (fIsInterlaced) … … 718 718 719 719 // Print statistics 720 tlist.PrintStatistics(); 720 if (read->GetNumExecutions()>0) 721 tlist.PrintStatistics(); 721 722 722 723 // make sure owned object are deleted -
trunk/MagicSoft/Mars/mjobs/MSequence.cc
r6591 r6604 130 130 131 131 #include "MAstro.h" 132 #include "MString.h" 132 133 #include "MDirIter.h" 133 134 … … 172 173 } 173 174 175 const TString MSequence::GetStandardPath(Bool_t raw) const 176 { 177 TString d = MString::Form("/data/MAGIC/Period%03d/", fPeriod); 178 d += raw ? "rawdata/" : "rootdata/"; 179 return d; 180 } 181 174 182 UInt_t MSequence::SetupRuns(MDirIter &iter, const TArrayI &arr, const char *path, char *id, Bool_t raw) const 175 183 { … … 179 187 if (d.IsNull()) 180 188 { 181 d = Form("/data/MAGIC/Period%03d/", fPeriod); 182 d += raw ? "rawdata/" : "rootdata/"; 189 d = GetStandardPath(raw); 183 190 d += fNight.GetStringFmt("%Y_%m_%d"); 184 191 } -
trunk/MagicSoft/Mars/mjobs/MSequence.h
r6591 r6604 93 93 const TString &GetSource() const { return fSource; } 94 94 95 const TString GetStandardPath(Bool_t raw) const; 96 95 97 // Setter 96 98 void SetNight(const char*night);
Note:
See TracChangeset
for help on using the changeset viewer.