Changeset View
Changeset View
Standalone View
Standalone View
examples/GenFit3K.cc
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | int main( int argc, char** argv ) | ||||
res = sigModel->addResonance("f'_2(1525)", 1, LauAbsResonance::RelBW); | res = sigModel->addResonance("f'_2(1525)", 1, LauAbsResonance::RelBW); | ||||
// Float the mass and width parameters | // Float the mass and width parameters | ||||
res->fixMass(kFALSE); | res->fixMass(kFALSE); | ||||
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 | // Set the maximum signal DP ASq value | ||||
// This will be automatically adjusted to avoid bias or extreme | // If you do not provide a value, one will be determined automatically, | ||||
// inefficiency if you get the value wrong but best to set this by | // which should be close to the true maximum but is not guaranteed to | ||||
// hand once you've found the right value through some trial and error. | // be optimal. | ||||
// Any value, whether manually provided or automatically determined, | |||||
// will be automatically adjusted to avoid bias or extreme inefficiency | |||||
// but it is best to set this by hand once you've found the right value | |||||
// through some trial and error. | |||||
sigModel->setASqMaxValue(15.8); | sigModel->setASqMaxValue(15.8); | ||||
// 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 | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |