Changeset View
Changeset View
Standalone View
Standalone View
src/LauKMatrixProdPole.cc
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | LauComplex LauKMatrixProdPole::amplitude(const LauKinematics* kinematics) | ||||
Double_t adlerZero(1.0); | Double_t adlerZero(1.0); | ||||
if (useProdAdler_) {adlerZero = thePropagator_->getAdlerZero();} | if (useProdAdler_) {adlerZero = thePropagator_->getAdlerZero();} | ||||
amp.rescale(poleDenom*adlerZero); | amp.rescale(poleDenom*adlerZero); | ||||
return amp; | return amp; | ||||
} | } | ||||
const std::vector<LauParameter*>& LauKMatrixProdPole::getFloatingParameters() | |||||
{ | |||||
this->clearFloatingParameters(); | |||||
Int_t nChannels = thePropagator_->getNChannels(); | |||||
for (int jChannel = 0 ; jChannel < nChannels ; jChannel++) | |||||
{ | |||||
LauParameter& par_gj_ = thePropagator_->getCouplingParameter(poleIndex_, jChannel); | |||||
if ( !par_gj_.fixed() ) | |||||
this->addFloatingParameter( &par_gj_ ); | |||||
tlatham: I always prefer to have the braces, even for one-line if's or loops. | |||||
} | |||||
return this->getParameters(); | |||||
} | |||||
tlathamUnsubmitted Done Inline ActionsMight we want to provide the option to also float the pole mass? tlatham: Might we want to provide the option to also float the pole mass? | |||||
johndanAuthorUnsubmitted Done Inline ActionsYes johndan: Yes | |||||
No newline at end of file |
I always prefer to have the braces, even for one-line if's or loops.