first templated version that compiles both the TrackIPProducer and CandIPProducer