Since the automatic sweep failed, merging the changes to the HGTD_DetectorFactory by hand.
Tagging @tadej @cohm @dshope