Changeset 7535 for trunk/MagicSoft


Ignore:
Timestamp:
02/27/06 11:44:49 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7533 r7535  
    2727     - added showing the axis range of the time evolution histogram
    2828
     29   * macros/train/trainseparation.C:
     30     - replaced outdated MTTrainRFSeparate by MJTrainSeparation
     31
     32   * mastro/MAstro.h:
     33     - added conversion constants for pc-m and pc-ly
     34
     35   * mhflux/MMcSpectrumWeight.cc:
     36     - fixed typo in comment
     37
     38   * mimage/MImagePar.h:
     39     - minor changes to layout
     40
     41   * mranforest/MRanForest.[h,cc]:
     42     - the initialization of fTreeHad was done at the wrong moment
     43     - replaced a cast int(x+.5) by TMath::Nint
     44     - added some additional warning output
     45     - added "!" to fTreeHad - it is only for temporary storage used
     46       in the histogram classes
     47
     48   * mranforest/MRanForestGrow.h:
     49     - added GetForest
     50
    2951
    3052
  • trunk/MagicSoft/Mars/macros/train/trainseparation.C

    r7413 r7535  
    66    settst.SetNumAnalysis(2);
    77
    8     MTTrainRFSeparate opt;
     8    MJTrainSeparation opt;
    99    //opt.SetDebug();
    1010
  • trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc

    r7408 r7535  
    448448//   MMcSpectrumWeight.NewSlope: -2.6
    449449//   MMcSpectrumWeight.Norm:      1.0
    450 //   MMcSpectrumWeight.Formula:  pow(MMcEvt.fEnergy, -2.6)
     450//   MMcSpectrumWeight.Formula:  pow(X, -2.6)
    451451//
    452452Int_t MMcSpectrumWeight::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
  • trunk/MagicSoft/Mars/mimage/MImagePar.h

    r6855 r7535  
    3030    Short_t GetNumIslands() const { return fNumIslands; }
    3131
    32     Short_t GetNumSatPixelsHG() const { return fNumSatPixelsHG; }
    33     Short_t GetNumSatPixelsLG() const { return fNumSatPixelsLG; }
    34     Short_t GetNumSinglePixels() const { return fNumSinglePixels; }
     32    Short_t GetNumSatPixelsHG() const   { return fNumSatPixelsHG; }
     33    Short_t GetNumSatPixelsLG() const   { return fNumSatPixelsLG; }
     34    Short_t GetNumSinglePixels() const  { return fNumSinglePixels; }
    3535    Float_t GetSizeSinglePixels() const { return fSizeSinglePixels; }
    36     Float_t GetSizeSubIslands() const { return fSizeSubIslands; }
    37     Float_t GetSizeMainIsland() const { return fSizeMainIsland; }
     36    Float_t GetSizeSubIslands() const   { return fSizeSubIslands; }
     37    Float_t GetSizeMainIsland() const   { return fSizeMainIsland; }
    3838
    3939    void Print(Option_t *opt=NULL) const;
  • trunk/MagicSoft/Mars/mranforest/MRanForest.cc

    r7425 r7535  
    164164    //at least 1 tree
    165165    fNumTrees=TMath::Max(n,1);
    166     fTreeHad.Set(fNumTrees);
    167     fTreeHad.Reset();
    168166}
    169167
     
    250248        // classes directly given
    251249        for (Int_t j=0;j<numdata;j++)
    252             fClass[j] = int(fHadTrue[j]+0.5);
     250            fClass[j] = TMath::Nint(fHadTrue[j]);
    253251    }
    254252}
     
    264262Double_t MRanForest::CalcHadroness(const TVector &event)
    265263{
     264    fTreeHad.Set(fNumTrees);
     265
    266266    Double_t hadroness=0;
    267     Int_t ntree=0;
     267    Int_t    ntree    =0;
    268268
    269269    TIter Next(fForest);
     
    341341    // setup rules to be used for classification/regression
    342342    const MDataArray *allrules=(MDataArray*)mat->GetColumns();
    343     if(allrules==NULL)
     343    if (allrules==NULL)
    344344    {
    345345        *fLog << err <<"Rules of matrix == null, exiting"<< endl;
     
    347347    }
    348348
     349    if (allrules->GetNumEntries()!=dim+1)
     350    {
     351        *fLog << err <<"Rules of matrix " << allrules->GetNumEntries() << " mismatch dimension+1 " << dim+1 << "...exiting."<< endl;
     352        return kFALSE;
     353    }
     354
    349355    if (fRules)
    350356        delete fRules;
     357
    351358    fRules = new MDataArray();
    352359    fRules->Reset();
  • trunk/MagicSoft/Mars/mranforest/MRanForest.h

    r7425 r7535  
    6161
    6262    // estimates for classification error of growing forest
    63     TArrayD fTreeHad;      // Hadronness values
     63    TArrayD fTreeHad;      //! Hadronness values (buffer for MHRanForest)
    6464
    6565    Double_t fUserVal;     // A user value describing this tree (eg E-mc)
  • trunk/MagicSoft/Mars/mranforest/MRanForestGrow.h

    r7398 r7535  
    3434    MRanForestGrow(const char *name=NULL, const char *title=NULL);
    3535
     36    MRanForest *GetForest() const { return fRanForest; }
     37
    3638    //     void SetNumTrees(Int_t n=-1) { fNumTrees=n>0?n:100; }
    3739    //     void SetNumTry(Int_t   n=-1) { fNumTry  =n>0?n:  3; }
Note: See TracChangeset for help on using the changeset viewer.