Changeset 8704 for trunk/MagicSoft/Mars/mjtrain/MJTrainEnergy.h
- Timestamp:
- 08/24/07 09:37:31 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjtrain/MJTrainEnergy.h
r7412 r8704 10 10 class MJTrainEnergy : public MJTrainRanForest 11 11 { 12 private: 13 TString fTrainParameter; 14 TString fResultFunction; 15 12 16 public: 13 MJTrainEnergy() { } 17 MJTrainEnergy() { SetTrainLin(); } 18 19 void SetTrainLog() { SetTrainFunc("log10(MMcEvt.fEnergy)", "pow(10, x)"); } 20 void SetTrainLin() { SetTrainFunc("MMcEvt.fEnergy", "x"); } 21 22 void SetTrainFunc(const char *par, const char *res) 23 { 24 fTrainParameter = par; 25 fResultFunction = res; 26 } 27 14 28 Bool_t Train(const char *out, const MDataSet &set, Int_t num); 15 29
Note:
See TracChangeset
for help on using the changeset viewer.