"alifold.hh" is the complement to the single fold version.
It basically provides the function basepair to decide if two columns of the alignment are considered to form a base-pair. To judge about beeing paired, the covariance (covscore) defined in alignment.hh of these two columns is computed.