source: trunk/Mars/mjoptim/MJOptimizeCuts.h@ 19824

Last change on this file since 19824 was 19008, checked in by tbretz, 7 years ago
This function just calls itself... to be fixed.
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/*
34 Bool_t RunOnOff(MAlphaFitter *fit=0, const char *tree="Events")
35 {
36 return RunOnOff(fit, tree);
37 }
38*/
39 // Optimization On-only
40 Bool_t RunOn(const char *fname, MFilter *filter, MAlphaFitter *fit=0);
41 Bool_t RunOn(const char *fname, MAlphaFitter *fit=0)
42 {
43 return RunOn(fname, 0, fit);
44 }
45
46 Bool_t RunOn(MFilter *filter, MAlphaFitter *fit=0)
47 {
48 return RunOn(0, filter, fit);
49 }
50 Bool_t RunOn(MAlphaFitter *fit=0)
51 {
52 return RunOn(0, 0, fit);
53 }
54
55 ClassDef(MJOptimizeCuts, 0) // Class for optimization of the Supercuts
56};
57
58#endif
Note: See TracBrowser for help on using the repository browser.