Changeset View
Changeset View
Standalone View
Standalone View
examples/GenFit3K.cc
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | int main( int argc, char** argv ) | ||||
res->fixWidth(kFALSE); | res->fixWidth(kFALSE); | ||||
res = sigModel->addResonance("NonReson", 0, LauAbsResonance::FlatNR); | res = sigModel->addResonance("NonReson", 0, LauAbsResonance::FlatNR); | ||||
// Reset the maximum signal DP ASq value | // Reset the maximum signal DP ASq value | ||||
// This will be automatically adjusted to avoid bias or extreme | // This will be automatically adjusted to avoid bias or extreme | ||||
// inefficiency if you get the value wrong but best to set this by | // inefficiency if you get the value wrong but best to set this by | ||||
// hand once you've found the right value through some trial and error. | // hand once you've found the right value through some trial and error. | ||||
sigModel->setASqMaxValue(15.8); | //sigModel->setASqMaxValue(15.8); | ||||
sigModel->autoSetASqMaxValue(); | |||||
// Create the fit model | // Create the fit model | ||||
LauSimpleFitModel* fitModel = new LauSimpleFitModel(sigModel); | LauSimpleFitModel* fitModel = new LauSimpleFitModel(sigModel); | ||||
// Create the complex coefficients for the isobar model | // Create the complex coefficients for the isobar model | ||||
// Here we're using the form with real and imaginary parts: | // Here we're using the form with real and imaginary parts: | ||||
// c_j = x_j + i * y_j | // c_j = x_j + i * y_j | ||||
std::vector<LauAbsCoeffSet*> coeffset; | std::vector<LauAbsCoeffSet*> coeffset; | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |