restructure createTrigTrackingPassFlags to avoid code duplication in ITk
the code in createTrigTrackingPassFlags and createTrigTrackingPassFlagsITk was duplicated. Restructure to allow code sharing. Tagging @ewatton and EFTRACK-133
fix ATR-27119 and FTF monitoring
fix ATR-27136
fix ATR-27106
Edited by Jiri Masik