Changeset 7425


Ignore:
Timestamp:
11/22/05 17:40:37 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7424 r7425  
    6565     - updated output
    6666     - made it work properly
     67
     68   * mjobs/MJCut.cc:
     69     - added ClacDisp task to output
     70
     71   * mjobs/MJPedestal.cc:
     72     - removed an obsolete include
    6773
    6874
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r7413 r7425  
    650650    if (taskenv2.GetTask())
    651651        cont.Add(taskenv2.GetTask());
     652    if (taskenv3.GetTask())
     653        cont.Add(taskenv3.GetTask());
    652654
    653655    if (!WriteTasks(set.GetNumAnalysis(), cont))
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r7220 r7425  
    6262
    6363#include "MStatusDisplay.h"
    64 #include "MFEventSelector.h"
    6564
    6665// Other basic classes
  • trunk/MagicSoft/Mars/mranforest/MHRanForestGini.cc

    r7419 r7425  
    134134    // --- Produce some text information ---
    135135    fRules.AddText("");
    136     fRules.AddText(Form("%d trees trained with %d events", fRanForest->GetNumTrees(),
     136    fRules.AddText(Form("%s w/ %d trees of node size %d trained by %d events",
     137                        fRanForest->IsClassify()?"Classification":"Regression",
     138                        fRanForest->GetNumTrees(),
     139                        fRanForest->GetNdSize(),
    137140                        fRanForest->GetNumData()));
    138     fRules.AddText("---");
     141    fRules.AddText("---");//Form("---> %s", fRanForest->GetTargetRule().Data()));
     142
    139143    const MDataArray &arr = *fRanForest->GetRules();
     144
    140145    int i;
    141146    for (i=0; i<arr.GetNumEntries(); i++)
    142     {
    143         TString s;
    144         s += i+1;
    145         s += ") ";
    146         s += arr.GetRule(i);
    147         fRules.AddText(s);
    148     }
     147        fRules.AddText(Form("%d) %s", i+1, arr.GetRule(i).Data()));
     148
    149149    for (; i<20; i++)
    150150        fRules.AddText("");
  • trunk/MagicSoft/Mars/mranforest/MRanForest.cc

    r7424 r7425  
    201201}
    202202
     203MRanTree *MRanForest::GetTree(Int_t i) const
     204{
     205    return static_cast<MRanTree*>(fForest->UncheckedAt(i));
     206}
     207
    203208Int_t MRanForest::GetNumDim() const
    204209{
     
    372377        return kFALSE;
    373378    }
    374     fRanTree->SetName(target_rule);
     379    //fRanTree->SetName(target_rule); // Is not stored anyhow
    375380
    376381    const Int_t tryest = TMath::Nint(TMath::Sqrt(dim));
  • trunk/MagicSoft/Mars/mranforest/MRanForest.h

    r7424 r7425  
    9797    TObjArray  *GetForest() const      { return fForest; }
    9898    MRanTree   *GetCurTree() const     { return fRanTree; }
    99     MRanTree   *GetTree(Int_t i) const { return static_cast<MRanTree*>(fForest->UncheckedAt(i)); }
     99    MRanTree   *GetTree(Int_t i) const;
    100100    MDataArray *GetRules() const       { return fRules; }
    101101
     
    104104    Int_t      GetNumData()  const;
    105105    Int_t      GetNumDim()   const;
     106    Int_t      GetNdSize() const { return fNdSize; }
    106107    Int_t      GetNclass()   const;
    107108    Double_t   GetTreeHad(Int_t i) const { return fTreeHad.At(i); }
    108109    Double_t   GetUserVal() const { return fUserVal; }
    109  
     110    Bool_t     IsClassify() const { return fClassify; }
     111
    110112    // use forest to calculate hadronness of event
    111113    Double_t CalcHadroness(const TVector &event);
  • trunk/MagicSoft/Mars/mranforest/MRanForestCalc.cc

    r7424 r7425  
    311311    if (fEForests.GetEntriesFast()==1)
    312312    {
    313         MRanForest *rf = static_cast<MRanForest*>fEForests.UncheckedAt(0);
     313        MRanForest *rf = static_cast<MRanForest*>(fEForests.UncheckedAt(0));
    314314        fRFOut->SetVal(rf->CalcHadroness(event));
    315315        fRFOut->SetReadyToSave();
  • trunk/MagicSoft/Mars/mranforest/MRanForestCalc.h

    r7423 r7425  
    7171
    7272    // TObject
    73     void Print(Option_t *o="") const;
     73    void Print(Option_t *o="") const; //*MENU*
    7474
    7575    // Setter for estimation
Note: See TracChangeset for help on using the changeset viewer.