- std::cerr << "ERROR in LauKMatrixPropagator constructor. The rowIndex, which is set to "
- << rowIndex << ", must be between 1 and the number of channels "
- << nChannels_ << std::endl;
+ // Set default value of spin-dependent centrifugal-barrier-factor parameter
+ for( Int_t iCh = 0; iCh < nChannels_; iCh++ )
+ {
+ switch(L_[iCh]) {
+ case 0:
+ a_[iCh] = 0;
+ break;
+ case 1:
+ a_[iCh] = 1;
+ break;
+ case 2:
+ a_[iCh] = 3;
+ break;
+ default:
+ std::cerr << "ERROR in LauKMatrixPropagator constructor. Centrifugal barrier factor and angular-momentum terms of K-matrix are only defined for S-, P-, or D-wave. "
+ << std::endl;
+ gSystem->Exit(EXIT_FAILURE);
+ }
+ }
+
+
+ // Check that the index is OK
+ if (index_ < 0 || index_ >= nChannels_) {
+ std::cerr << "ERROR in LauKMatrixPropagator constructor. The rowIndex, which is set to "
+ << rowIndex << ", must be between 1 and the number of channels "