This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// \file | |
/// \ingroup tutorial_roofit | |
/// \notebook -js | |
/// 'DATA AND CATEGORIES' RooFit tutorial macro #403 | |
/// | |
/// Using weights in unbinned datasets | |
/// | |
/// \macro_image | |
/// \macro_output | |
/// \macro_code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Riostream.h" | |
// Custom two exponential pdf | |
class TwoExpPdf : public RooAbsPdf { | |
public: | |
TwoExpPdf() {}; | |
TwoExpPdf(const char *name, const char *title, | |
RooAbsReal& _t, | |
RooAbsReal& _tau1, | |
RooAbsReal& _tau2, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Riostream.h" | |
// Custom exponential PDF | |
class ExpPdf : public RooAbsPdf { | |
public: | |
ExpPdf() {}; | |
ExpPdf(const char *name, const char *title, RooAbsReal& _t, RooAbsReal& _tau); | |
ExpPdf(const ExpPdf& other, const char* name = 0); | |
virtual TObject* clone(const char* newname) const { return new ExpPdf(*this, newname); } | |
inline virtual ~ExpPdf() { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <TGClient.h> | |
#include <TGCanvas.h> | |
#include <TGListBox.h> | |
#include <TGFrame.h> | |
class MyMainFrame : public TGMainFrame { | |
public: | |
MyMainFrame(const TGWindow *p, UInt_t w, UInt_t h); | |
virtual ~MyMainFrame(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "./../AbstractPresenter.h" | |
#include "../../model/Model.h" | |
class __View; | |
class __Presenter : public AbstractPresenter<Model, __View> { | |
public: | |
__Presenter(__View* view); | |
virtual ~__Presenter(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "./../AbstractView.h" | |
#include "__Presenter.h" | |
class __Presenter; | |
class __View : public AbstractView<__Presenter> { | |
protected: | |
void initUI(); | |
void connectSignalsToPresenter(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <TQObject.h> | |
#include <RQ_OBJECT.h> | |
class A { | |
RQ_OBJECT("A") | |
private: | |
Int_t fValue1; | |
Int_t fValue2; | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "__Presenter.h" | |
#include "__View.h" | |
#include "../AbstractPresenter.h" | |
#include "../../model/Model.h" | |
#include <TGFileDialog.h> | |
__Presenter::__Presenter(__View* view) : AbstractPresenter<Model, __View>(view) { | |
model = instantinateModel(); | |
onInitModel(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "__View.h" | |
#include "__Presenter.h" | |
__View::__View(const TGWindow *w) : AbstractView<__Presenter>(w){ | |
// Build UI | |
initUI(); | |
// Instantinate presenter and connect slots | |
presenter = instantinatePresenter(); | |
connectSignalsToPresenter(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// All Linkdef.h files start with this preamble | |
#ifdef __CINT__ | |
#pragma link off all globals; | |
#pragma link off all classes; | |
#pragma link off all functions; | |
#pragma link C++ nestedclasses; | |
// List all your classes that require Dictionary generation: | |
#pragma link C++ class MyClassWithClassImpMarco1 | |
#pragma link C++ class MyClassWithClassImpMarco2 |
OlderNewer