Changeset 7099 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 05/27/05 16:33:19 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r7071 r7099 777 777 SetNoStorage(GetEnv("DisableOutput", IsNoStorage())); 778 778 779 // Setup an environment task 779 780 MTaskEnv tenv("ExtractSignal"); 780 781 tenv.SetDefault(fExtractor); 781 782 782 if (tenv.ReadEnv(*GetEnv(), GetEnvPrefix()+".ExtractSignal", GetEnvDebug()>2)==kERROR) 783 // check the resource file for it 784 if (CheckEnv(tenv)==kERROR) 783 785 return kFALSE; 784 786 787 // if (tenv.ReadEnv(*GetEnv(), GetEnvPrefix()+".ExtractSignal", GetEnvDebug()>2)==kERROR) 788 // return kFALSE; 789 790 // If the resource file didn't change the default we are done 785 791 if (fExtractor==tenv.GetTask()) 786 792 return kTRUE; 787 793 794 // If it changed the default check its inheritance... 788 795 if (!tenv.GetTask()->InheritsFrom(MExtractor::Class())) 789 796 { … … 792 799 } 793 800 801 // ..and store it 794 802 SetExtractor((MExtractor*)tenv.GetTask()); 795 803 … … 973 981 } 974 982 975 *fLog << inf;976 fLog->Separator(GetDescriptor());977 *fLog << "Calculate pedestal from Sequence #";978 *fLog << fSequence.GetSequence() << endl << endl;979 980 if (!CheckEnv())981 return kFALSE;982 983 983 // -------------------------------------------------------------------------------- 984 984 … … 992 992 993 993 // -------------------------------------------------------------------------------- 994 995 if (!CheckEnv()) 996 return kFALSE; 994 997 995 998 MParList plist; … … 1087 1090 return kFALSE; 1088 1091 1092 // The requested setup might have been overwritten 1093 if (CheckEnv(*fExtractor)==kERROR) 1094 return kFALSE; 1095 1089 1096 *fLog << all; 1090 *fLog << underline << "Signal Extractor found in calibration file :" << endl;1097 *fLog << underline << "Signal Extractor found in calibration file and setup:" << endl; 1091 1098 fExtractor->Print(); 1092 1099 *fLog << endl; -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r7094 r7099 170 170 fLog->Separator("Initialize energy weighting"); 171 171 172 MParList l; 173 l.AddToList(&w); 174 if (!CheckEnv(l)) 172 if (!CheckEnv(w)) 175 173 { 176 174 *fLog << err << "ERROR - Reading resources for MMcSpectrumWeight failed." << endl; -
trunk/MagicSoft/Mars/mjobs/MJob.cc
r7096 r7099 47 47 #include "MLogManip.h" 48 48 49 #include "MParList.h" 49 50 #include "MEvtLoop.h" 50 51 … … 195 196 } 196 197 198 //------------------------------------------------------------------------ 199 // 200 // Returns the result of c.ReadEnv(*fEnv, fEnvPrefix, fEnvDebug>2) 201 // By adding the container first to a MParList it is ensured that 202 // all levels are checked. 203 // 197 204 Bool_t MJob::CheckEnv(MParContainer &c) const 198 205 { … … 200 207 return kTRUE; 201 208 202 return c.ReadEnv(*fEnv, fEnvPrefix, fEnvDebug>2); 209 // Make sure that all levels are checked 210 MParList l; 211 l.AddToList(&c); 212 return l.ReadEnv(*fEnv, fEnvPrefix+".", fEnvDebug>2); 203 213 } 204 214 -
trunk/MagicSoft/Mars/mjobs/Makefile
r6993 r7099 23 23 -I../mbadpixels -I../msignal -I../mraw -I../mpedestal -I../mtools \ 24 24 -I../mimage -I../mpointing -I../mastro -I../mfbase -I../mhvstime \ 25 -I../mtrigger -I../mmuon 25 -I../mtrigger -I../mmuon -I../mmc 26 26 27 27 SRCFILES = MSequence.cc \
Note:
See TracChangeset
for help on using the changeset viewer.