Changeset 6464
- Timestamp:
- 02/14/05 17:50:24 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6460 r6464 91 91 - changed default values 92 92 - added a pattern independant trigger algorithm 93 94 * mjobs/MJCut.cc: 95 - made sure both MWriteRootFile have different names 96 - don't use "same" option if no off-data 93 97 94 98 -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r6463 r6464 274 274 } 275 275 276 Bool_t MJCut::ProcessFile(const MDataSet &se q)277 { 278 if (!se q.IsValid())279 { 280 *fLog << err << "ERROR - Sequencesinvalid!" << endl;276 Bool_t MJCut::ProcessFile(const MDataSet &set) 277 { 278 if (!set.IsValid()) 279 { 280 *fLog << err << "ERROR - DataSet invalid!" << endl; 281 281 return kFALSE; 282 282 } … … 288 288 *fLog << inf; 289 289 fLog->Separator(GetDescriptor()); 290 *fLog << "Perform cuts for sequences " << seq.GetName() << endl;290 *fLog << "Perform cuts for data set " << set.GetName() << endl; 291 291 *fLog << endl; 292 292 … … 342 342 readoff.AddTree("Drive"); 343 343 readoff.AddTree("EffectiveOnTime"); 344 se q.AddFilesOff(readoff);344 set.AddFilesOff(readoff); 345 345 346 346 const TString path(Form("%s/", fPathOut.Data())); 347 347 TString fname0(path); 348 348 TString fname1(path); 349 fname0 += fNameSummary.IsNull() ? Form("ganymed%08d-summary.root", se q.GetNumAnalysis()) : fNameSummary;350 fname1 += fNameResult.IsNull() ? Form("ganymed%08d-result.root", se q.GetNumAnalysis()) : fNameResult;349 fname0 += fNameSummary.IsNull() ? Form("ganymed%08d-summary.root", set.GetNumAnalysis()) : fNameSummary; 350 fname1 += fNameResult.IsNull() ? Form("ganymed%08d-result.root", set.GetNumAnalysis()) : fNameResult; 351 351 352 352 MWriteRootFile write0(fPathOut.IsNull()?0:fname0.Data(), fOverwrite?"RECREATE":"NEW"); … … 414 414 return kFALSE; 415 415 416 if (se q.HasOffSequences())416 if (set.HasOffSequences()) 417 417 { 418 418 // Execute first analysis … … 437 437 readon.AddTree("Drive"); 438 438 readon.AddTree("EffectiveOnTime"); 439 se q.AddFilesOn(readon);439 set.AddFilesOn(readon); 440 440 441 441 MFillH fill1b("MHHillasOnPre [MHHillas]", "MHillas", "FillHillasPre"); … … 443 443 fill1b.SetNameTab("PreCut"); 444 444 fill2b.SetNameTab("PostCut"); 445 fill1b.SetDrawOption(se q.HasOffSequences()?"same":"");446 fill2b.SetDrawOption(se q.HasOffSequences()?"same":"");445 fill1b.SetDrawOption(set.HasOffSequences()?"same":""); 446 fill2b.SetDrawOption(set.HasOffSequences()?"same":""); 447 447 448 448 MFillH falpha2("MHAlpha", "MHillasSrc", "FillAlpha"); … … 470 470 cont.Add(taskenv2.GetTask()); 471 471 472 if (!WriteTasks(se q.GetNumAnalysis(), cont))472 if (!WriteTasks(set.GetNumAnalysis(), cont)) 473 473 return kFALSE; 474 474 … … 484 484 // FIXME: Perform fit and plot energy dependant alpha plots 485 485 // and fit result to new tabs! 486 if (!WriteResult(se q.GetNumAnalysis()))486 if (!WriteResult(set.GetNumAnalysis())) 487 487 return kFALSE; 488 488 -
trunk/MagicSoft/Mars/mjobs/MJCut.h
r6453 r6464 26 26 TString GetOutputFile(UInt_t num) const; 27 27 Bool_t CheckEnvLocal(); 28 void SetupWriter(MWriteRootFile &write ) const;28 void SetupWriter(MWriteRootFile &write, const char *name) const; 29 29 Bool_t WriteTasks(UInt_t num, TObjArray &cont) const; 30 30 Bool_t WriteResult(UInt_t num) const; … … 37 37 ~MJCut(); 38 38 39 Bool_t ProcessFile(const MDataSet &se q);39 Bool_t ProcessFile(const MDataSet &set); 40 40 41 41 void EnableStorageOfSummary(Bool_t b=kTRUE) { fStoreSummary = b; } // See SetNameSummary
Note:
See TracChangeset
for help on using the changeset viewer.