Changeset 7535 for trunk/MagicSoft
- Timestamp:
- 02/27/06 11:44:49 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7533 r7535 27 27 - added showing the axis range of the time evolution histogram 28 28 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 29 51 30 52 -
trunk/MagicSoft/Mars/macros/train/trainseparation.C
r7413 r7535 6 6 settst.SetNumAnalysis(2); 7 7 8 M TTrainRFSeparateopt;8 MJTrainSeparation opt; 9 9 //opt.SetDebug(); 10 10 -
trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc
r7408 r7535 448 448 // MMcSpectrumWeight.NewSlope: -2.6 449 449 // MMcSpectrumWeight.Norm: 1.0 450 // MMcSpectrumWeight.Formula: pow( MMcEvt.fEnergy, -2.6)450 // MMcSpectrumWeight.Formula: pow(X, -2.6) 451 451 // 452 452 Int_t MMcSpectrumWeight::ReadEnv(const TEnv &env, TString prefix, Bool_t print) -
trunk/MagicSoft/Mars/mimage/MImagePar.h
r6855 r7535 30 30 Short_t GetNumIslands() const { return fNumIslands; } 31 31 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; } 35 35 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; } 38 38 39 39 void Print(Option_t *opt=NULL) const; -
trunk/MagicSoft/Mars/mranforest/MRanForest.cc
r7425 r7535 164 164 //at least 1 tree 165 165 fNumTrees=TMath::Max(n,1); 166 fTreeHad.Set(fNumTrees);167 fTreeHad.Reset();168 166 } 169 167 … … 250 248 // classes directly given 251 249 for (Int_t j=0;j<numdata;j++) 252 fClass[j] = int(fHadTrue[j]+0.5);250 fClass[j] = TMath::Nint(fHadTrue[j]); 253 251 } 254 252 } … … 264 262 Double_t MRanForest::CalcHadroness(const TVector &event) 265 263 { 264 fTreeHad.Set(fNumTrees); 265 266 266 Double_t hadroness=0; 267 Int_t ntree=0;267 Int_t ntree =0; 268 268 269 269 TIter Next(fForest); … … 341 341 // setup rules to be used for classification/regression 342 342 const MDataArray *allrules=(MDataArray*)mat->GetColumns(); 343 if (allrules==NULL)343 if (allrules==NULL) 344 344 { 345 345 *fLog << err <<"Rules of matrix == null, exiting"<< endl; … … 347 347 } 348 348 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 349 355 if (fRules) 350 356 delete fRules; 357 351 358 fRules = new MDataArray(); 352 359 fRules->Reset(); -
trunk/MagicSoft/Mars/mranforest/MRanForest.h
r7425 r7535 61 61 62 62 // estimates for classification error of growing forest 63 TArrayD fTreeHad; // Hadronness values63 TArrayD fTreeHad; //! Hadronness values (buffer for MHRanForest) 64 64 65 65 Double_t fUserVal; // A user value describing this tree (eg E-mc) -
trunk/MagicSoft/Mars/mranforest/MRanForestGrow.h
r7398 r7535 34 34 MRanForestGrow(const char *name=NULL, const char *title=NULL); 35 35 36 MRanForest *GetForest() const { return fRanForest; } 37 36 38 // void SetNumTrees(Int_t n=-1) { fNumTrees=n>0?n:100; } 37 39 // void SetNumTry(Int_t n=-1) { fNumTry =n>0?n: 3; }
Note:
See TracChangeset
for help on using the changeset viewer.