source: trunk/MagicSoft/Mars/mjoptim/MJOptimizeCuts.h@ 8641

Last change on this file since 8641 was 7152, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MJOptimizeCuts
2#define MARS_MJOptimizeCuts
3
4#ifndef MARS_MJOptimize
5#include "MJOptimize.h"
6#endif
7
8class MHAlpha;
9
10class MJOptimizeCuts : public MJOptimize
11{
12private:
13 TString fNameHist;
14
15 MHAlpha *CreateNewHist(const char *name=0) const;
16
17 Bool_t RunOnCore(MHAlpha &hist, const char *fname, MFilter *filter, MAlphaFitter *fit);
18 Bool_t RunOnOffCore(MHAlpha &histon, MHAlpha &histoff, const char *fname, MFilter *filter, MAlphaFitter *fit, const char *tree);
19
20public:
21 MJOptimizeCuts(const char *name="MHAlpha") : MJOptimize(), fNameHist(name) { }
22
23 // Optimization On-Off/Wobble
24 Bool_t RunOnOff(const char *fname, MFilter *filter, MAlphaFitter *fit=0, const char *tree="Events");
25 Bool_t RunOnOff(const char *fname, MAlphaFitter *fit=0, const char *tree="Events")
26 {
27 return RunOnOff(fname, 0, fit, tree);
28 }
29 Bool_t RunOnOff(MFilter *filter, MAlphaFitter *fit=0, const char *tree="Events")
30 {
31 return RunOnOff(0, filter, fit, tree);
32 }
33 Bool_t RunOnOff(MAlphaFitter *fit=0, const char *tree="Events")
34 {
35 return RunOnOff(fit, tree);
36 }
37
38 // Optimization On-only
39 Bool_t RunOn(const char *fname, MFilter *filter, MAlphaFitter *fit=0);
40 Bool_t RunOn(const char *fname, MAlphaFitter *fit=0)
41 {
42 return RunOn(fname, 0, fit);
43 }
44
45 Bool_t RunOn(MFilter *filter, MAlphaFitter *fit=0)
46 {
47 return RunOn(0, filter, fit);
48 }
49 Bool_t RunOn(MAlphaFitter *fit=0)
50 {
51 return RunOn(0, 0, fit);
52 }
53
54 ClassDef(MJOptimizeCuts, 0) // Class for optimization of the Supercuts
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.