As I recall, the determiner for wearing a head cover indoors is whether or not you are "under arms". sword, fire arm, bag pipe, part of a color guard,... If not under arms, remove cover.