Delay the #include until after the selection.
Split typedefs (needed by name NormContext and thus genreflex) from rest.
Use the proper ROOT include path; only minimal includes for genreflex.