- Timestamp:
- 03/16/05 17:38:52 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6831 r6838 25 25 * callisto.cc: 26 26 - set changed extractor in MJCalibrateSignal from MJPedestal 27 - don't process 'range finding' for MonteCarlo data 27 28 28 29 * callisto.rc: … … 31 32 * mjobs/MJCalibrateSignal.[h,cc]: 32 33 - removed obsolete flag for ModifiedExtractWin 34 - allow also NULL for SetExtractor 35 - rearanged the too MWriteRootFile instantiations otherwise 36 callisto crashes in MWriteRootFile::ChangeFile 33 37 34 38 * mdata/MDataChain.cc: -
trunk/MagicSoft/Mars/callisto.cc
r6829 r6838 507 507 job2.SetPathIn(kInpathY); 508 508 job2.SetDataType(kDataType); 509 job2.SetPulsePosCheck( );509 job2.SetPulsePosCheck(kDataType!=MJCalib::kIsUseMC); 510 510 job2.SetPathOut(kOutpathY); // for updating the extractor 511 511 … … 576 576 job4.SetPathData(kInpathD); 577 577 job4.SetDataType(kDataType); 578 job4.SetExtractor(*job2.GetExtractor()); 578 if (kDataType!=MJCalib::kIsUseMC) 579 job4.SetExtractor(job2.GetExtractor()); 579 580 580 581 // Where to search for calibration files -
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.