Changeset 6464


Ignore:
Timestamp:
02/14/05 17:50:24 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6460 r6464  
    9191     - changed default values
    9292     - 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
    9397
    9498
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r6463 r6464  
    274274}
    275275
    276 Bool_t MJCut::ProcessFile(const MDataSet &seq)
    277 {
    278     if (!seq.IsValid())
    279     {
    280         *fLog << err << "ERROR - Sequences invalid!" << endl;
     276Bool_t MJCut::ProcessFile(const MDataSet &set)
     277{
     278    if (!set.IsValid())
     279    {
     280        *fLog << err << "ERROR - DataSet invalid!" << endl;
    281281        return kFALSE;
    282282    }
     
    288288    *fLog << inf;
    289289    fLog->Separator(GetDescriptor());
    290     *fLog << "Perform cuts for sequences " << seq.GetName() << endl;
     290    *fLog << "Perform cuts for data set " << set.GetName() << endl;
    291291    *fLog << endl;
    292292
     
    342342    readoff.AddTree("Drive");
    343343    readoff.AddTree("EffectiveOnTime");
    344     seq.AddFilesOff(readoff);
     344    set.AddFilesOff(readoff);
    345345
    346346    const TString path(Form("%s/", fPathOut.Data()));
    347347    TString fname0(path);
    348348    TString fname1(path);
    349     fname0 += fNameSummary.IsNull() ? Form("ganymed%08d-summary.root", seq.GetNumAnalysis()) : fNameSummary;
    350     fname1 += fNameResult.IsNull()  ? Form("ganymed%08d-result.root",  seq.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;
    351351
    352352    MWriteRootFile write0(fPathOut.IsNull()?0:fname0.Data(), fOverwrite?"RECREATE":"NEW");
     
    414414        return kFALSE;
    415415
    416     if (seq.HasOffSequences())
     416    if (set.HasOffSequences())
    417417    {
    418418        // Execute first analysis
     
    437437    readon.AddTree("Drive");
    438438    readon.AddTree("EffectiveOnTime");
    439     seq.AddFilesOn(readon);
     439    set.AddFilesOn(readon);
    440440
    441441    MFillH fill1b("MHHillasOnPre  [MHHillas]", "MHillas", "FillHillasPre");
     
    443443    fill1b.SetNameTab("PreCut");
    444444    fill2b.SetNameTab("PostCut");
    445     fill1b.SetDrawOption(seq.HasOffSequences()?"same":"");
    446     fill2b.SetDrawOption(seq.HasOffSequences()?"same":"");
     445    fill1b.SetDrawOption(set.HasOffSequences()?"same":"");
     446    fill2b.SetDrawOption(set.HasOffSequences()?"same":"");
    447447
    448448    MFillH falpha2("MHAlpha", "MHillasSrc", "FillAlpha");
     
    470470        cont.Add(taskenv2.GetTask());
    471471
    472     if (!WriteTasks(seq.GetNumAnalysis(), cont))
     472    if (!WriteTasks(set.GetNumAnalysis(), cont))
    473473        return kFALSE;
    474474
     
    484484    // FIXME: Perform fit and plot energy dependant alpha plots
    485485    // and fit result to new tabs!
    486     if (!WriteResult(seq.GetNumAnalysis()))
     486    if (!WriteResult(set.GetNumAnalysis()))
    487487        return kFALSE;
    488488
  • trunk/MagicSoft/Mars/mjobs/MJCut.h

    r6453 r6464  
    2626    TString GetOutputFile(UInt_t num) const;
    2727    Bool_t  CheckEnvLocal();
    28     void    SetupWriter(MWriteRootFile &write) const;
     28    void    SetupWriter(MWriteRootFile &write, const char *name) const;
    2929    Bool_t  WriteTasks(UInt_t num, TObjArray &cont) const;
    3030    Bool_t  WriteResult(UInt_t num) const;
     
    3737    ~MJCut();
    3838
    39     Bool_t ProcessFile(const MDataSet &seq);
     39    Bool_t ProcessFile(const MDataSet &set);
    4040
    4141    void EnableStorageOfSummary(Bool_t b=kTRUE)  { fStoreSummary = b; } // See SetNameSummary
Note: See TracChangeset for help on using the changeset viewer.