- 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
+ switch(L_) {
+ case 0:
+ a_ = 0;
+ break;
+ case 1:
+ a_ = 1;
+ break;
+ case 2:
+ a_ = 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 "