Changeset 8222
- Timestamp:
- 12/11/06 15:05:11 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r7986 r8222 467 467 read.AddTree("EffectiveOnTime"); 468 468 469 set.AddFilesOn(read); 469 if (!set.AddFilesOn(read)) 470 return kFALSE; 470 471 471 472 MFillH fill(&hsrcpos, "MSrcPosCam", "FillSrcPosCam"); … … 632 633 633 634 MRead &readoff = fIsMonteCarlo ? (MRead&)readoffmc : (MRead&)readoffdata; 634 if (fIsWobble) 635 set.AddFilesOn(readoff); 636 else 637 set.AddFilesOff(readoff); 635 const Bool_t setrc = fIsWobble ? set.AddFilesOn(readoff) : set.AddFilesOff(readoff); 636 if (!setrc) 637 return kFALSE; 638 638 639 639 const TString path(Form("%s/", fPathOut.Data())); … … 798 798 799 799 MRead &readon = fIsMonteCarlo ? (MRead&)readonmc : (MRead&)readondata; 800 set.AddFilesOn(readon); 800 if (!set.AddFilesOn(readon)) 801 return kFALSE; 801 802 802 803 scalc.SetMode(MSrcPosCalc::kDefault); -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r8173 r8222 190 190 // Read the first corsika RunHeader from the MC files 191 191 TChain chain("RunHeaders"); 192 set.AddFilesOn(chain); 192 if (!set.AddFilesOn(chain)) 193 return kFALSE; 193 194 194 195 MMcCorsikaRunHeader *h=0; … … 292 293 // Create chain 293 294 TChain chain("OriginalMC"); 294 set.AddFilesOn(chain); 295 if (!set.AddFilesOn(chain)) 296 return kFALSE; 295 297 296 298 // Prepare histogram … … 507 509 MReadMarsFile readmc("OriginalMC"); 508 510 //readmc.DisableAutoScheme(); 509 set.AddFilesOn(readmc); 511 if (!set.AddFilesOn(readmc)) 512 return kFALSE; 513 510 514 readmc.EnableBranch("MMcEvtBasic.fTelescopeTheta"); 511 515 readmc.EnableBranch("MMcEvtBasic.fEnergy"); … … 1140 1144 MReadMarsFile read("Events"); 1141 1145 read.DisableAutoScheme(); 1142 set.AddFilesOn(read); 1146 if (!set.AddFilesOn(read)) 1147 return kFALSE; 1143 1148 1144 1149 // Selector to get correct (final) theta-distribution -
trunk/MagicSoft/Mars/mjobs/MSequence.cc
r8221 r8222 296 296 { 297 297 *fLog << err; 298 *fLog < "ERROR - No input files for sequence #" << GetSequence() << endl;298 *fLog << "ERROR - No input files for sequence #" << GetSequence() << endl; 299 299 *fLog << " read from " << GetName() << endl; 300 300 *fLog << " found in" << (def?" default-path ":" ") << d << endl;
Note:
See TracChangeset
for help on using the changeset viewer.