int MEPdfPartialB::TryParameters(RooDataSet *ds){
  FixAll();
  pdf_part->fitTo(*ds,Verbose(),Timer(true));
  Draw(ds);
  PrintParameters();
  return 0;
}
Beispiel #2
0
CWaveLayers::CWaveLayers(QWidget *parent) :
    QFrame(parent),
    ui(new Ui::CWaveLayers)
{
    ui->setupUi(this);
    connect(ui->VolSpin,SIGNAL(valueChanged(int)),this,SLOT(UpdateGraph()));
    connect(ui->TransposeSpin,SIGNAL(valueChanged(int)),this,SLOT(UpdateGraph()));
    connect(ui->TuneSpin,SIGNAL(valueChanged(int)),this,SLOT(UpdateGraph()));
    connect(ui->LowVelFullSpin,SIGNAL(valueChanged(int)),this,SLOT(UpdateGraph()));
    connect(ui->HighVelFullSpin,SIGNAL(valueChanged(int)),this,SLOT(UpdateGraph()));
    connect(ui->LowVelXSpin,SIGNAL(valueChanged(int)),this,SLOT(UpdateGraph()));
    connect(ui->HighVelXSpin,SIGNAL(valueChanged(int)),this,SLOT(UpdateGraph()));
    connect(ui->ADSRWidget,SIGNAL(Changed(CADSR::ADSRParams)),this,SLOT(UpdateADSRs(CADSR::ADSRParams)));
    connect(ui->LayersControl,SIGNAL(CurrentLayerChanged(CLayer::LayerParams)),this,SLOT(UpdateControls(CLayer::LayerParams)));
    connect(ui->LayersControl,SIGNAL(LayerIndexChanged(int)),this,SLOT(SelectLayer(int)));
    connect(ui->LayersControl,SIGNAL(Add(int,int)),this,SLOT(AddLayer(int,int)));
    //connect(ui->KeyLayoutControl,SIGNAL(ReleaseLoop()),this,SLOT(ReleaseLoop()));
    connect(ui->FixLayerButton,SIGNAL(clicked()),this,SLOT(FixLayer()));
    connect(ui->FixAllButton,SIGNAL(clicked()),this,SLOT(FixAll()));
    connect(ui->PitchLayerButton,SIGNAL(clicked()),this,SLOT(PitchLayer()));
    connect(ui->PitchAllButton,SIGNAL(clicked()),this,SLOT(PitchAll()));

    connect(ui->DeleteLayerButton,SIGNAL(clicked()),this,SLOT(DeleteLayer()));

    MD=false;
    Working=false;
    //Update();
}
MEPdfPartialB::MEPdfPartialB(RooRealVar *m_de, RooRealVar *m_mbc, const int mode, const int h0mode){
  cout << "MEPdfPartialB constructor..." << endl;
  de = m_de; mbc = m_mbc;
  cuts = new MyParams();
  ggflag = h0mode == 10 ? true : false;
  m_mode = mode; m_h0mode = h0mode;
  InitParams(mode,h0mode);
  FixAll();
  cout << "MEPdfPartialB constructor done." << endl;
}