Changeset 6838 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 03/16/05 17:38:52 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6828 r6838 140 140 } 141 141 142 void MJCalibrateSignal::SetExtractor(const MExtractor &ext)142 void MJCalibrateSignal::SetExtractor(const MExtractor *ext) 143 143 { 144 144 if (fExtractor) 145 145 delete fExtractor; 146 146 147 fExtractor = (MExtractor*)ext.Clone();147 fExtractor = ext ? (MExtractor*)ext->Clone() : NULL; 148 148 } 149 149 … … 647 647 MTaskEnv fillflorian("FinalFantasy"); 648 648 fillflorian.SetDefault(); 649 650 // Write the special MC tree 651 MWriteRootFile writemc(2, fname, fOverwrite?"RECREATE":"NEW"); 652 writemc.SetName("WriteMC"); 653 writemc.AddContainer("MMcEvtBasic", "OriginalMC"); 649 654 650 655 // The second rule is for the case reading raw-files! … … 695 700 write.AddContainer("MTimeCC", "CC", kFALSE); 696 701 697 // Write the special MC tree698 MWriteRootFile writemc(2, fname, fOverwrite?"RECREATE":"NEW");699 writemc.SetName("WriteMC");700 writemc.AddContainer("MMcEvtBasic", "OriginalMC");701 702 702 // Now setup tasklist for events 703 703 MTaskList tlist2; -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.h
r6828 r6838 47 47 void SetRelTimesUpdate ( const Bool_t b=kTRUE ) { fIsRelTimesUpdate = b; } 48 48 49 void SetExtractor(const MExtractor &ext);49 void SetExtractor(const MExtractor *ext=NULL); 50 50 51 51 ClassDef(MJCalibrateSignal, 0) // Tool to create a pedestal file (MPedestalCam) -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r6821 r6838 1273 1273 if (newlast+wshigain > data->GetNumHiGainSamples()+data->GetNumLoGainSamples()-1) 1274 1274 { 1275 *fLog << err << "Pulse is too much to the right, cannot go beyond limits! " 1276 1275 *fLog << err << "Pulse is too much to the right, cannot go beyond limits! " << endl; 1276 *fLog << " Cannot extract at all! ... " << endl; 1277 1277 return kFALSE; 1278 1278 } 1279 1279 if (newlast+wslogain > data->GetNumLoGainSamples()) 1280 1280 { 1281 *fLog << err << "Pulse is too much to the right, cannot go beyond logai elimits! " << endl;1281 *fLog << err << "Pulse is too much to the right, cannot go beyond logain limits! " << endl; 1282 1282 *fLog << endl; 1283 1283 *fLog << "Try to use a different extractor (e.g. with a window size of only 4 sl.) or:" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.