This function returns the class of the canonical bundle of the flag variety in the cohomology ring given as argument (or the last ring defined with setupCotangent if no argument is given).
The object canonicalClass is a method function with options.