Changeset 5570 for trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
- Timestamp:
- 12/08/04 18:02:12 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r5557 r5570 151 151 Bool_t MJPedestal::ReadPedestalCam() 152 152 { 153 if (IsNoStorage())154 return kFALSE;155 156 153 const TString fname = GetOutputFile(); 157 154 158 if (gSystem->AccessPathName(fname, kFileExists)) 159 { 160 *fLog << warn << "Input file " << fname << " doesn't exist, will create it." << endl; 161 return kFALSE; 162 } 163 164 *fLog << inf << "Reading from file: " << fname << endl; 155 *fLog << inf << "Reading pedestals from file: " << fname << endl; 165 156 166 157 TFile file(fname, "READ"); … … 198 189 const TString fname = Form("%s/calib%06d.root",fPathIn.Data(), fSequence.GetSequence()); 199 190 200 *fLog << inf << "Reading from file: " << fname << endl;191 *fLog << inf << "Reading extractor from file: " << fname << endl; 201 192 202 193 TFile file(fname, "READ"); … … 213 204 return NULL; 214 205 } 215 return o ? (MExtractor*)o->Clone() : NULL; 206 207 return o ? (MExtractor*)o->Clone("ExtractSignal") : NULL; 216 208 } 217 209 … … 684 676 if (fExtractor) 685 677 delete fExtractor; 686 fExtractor = ext ? (MExtractor*)ext->Clone( ) : NULL;678 fExtractor = ext ? (MExtractor*)ext->Clone(ext->GetName()) : NULL; 687 679 } 688 680 … … 721 713 SetNoStorage(GetEnv("DisableOutput", IsNoStorage())); 722 714 723 MTaskEnv tenv ;715 MTaskEnv tenv("ExtractSignal"); 724 716 tenv.SetDefault(fExtractor); 725 717 … … 737 729 738 730 SetExtractor((MExtractor*)tenv.GetTask()); 731 739 732 return kTRUE; 740 733 } … … 816 809 } 817 810 818 //if (!CheckEnv()) 819 // return kFALSE; 820 821 CheckEnv(); 811 if (!CheckEnv()) 812 return kFALSE; 822 813 823 814 // -------------------------------------------------------------------------------- … … 944 935 } 945 936 937 /* 946 938 if (!fPathIn.IsNull()) 947 939 { … … 949 941 fExtractor = 0; 950 942 } 951 952 // 953 // Check that the extractor has the bit Noise Calculation() set which 954 // means that the each "sliding" of the sliding window is not applied 955 // 956 if (fExtractor) 957 fExtractor->SetNoiseCalculation(fExtractorResolution); 958 943 */ 959 944 // 960 945 // Execute the eventloop
Note:
See TracChangeset
for help on using the changeset viewer.