Infer HLT level (stage) automatically for analysis scripts