Enum in RooWorkspace

Hello,
is there a way to pass an enum argument to the “embedded” constructor of a RooAbsPdf inside a RooWorkspace::factory call? Specifically, I get an error when trying to pass a value for RooKeysPdf::Mirror:

Enrico