Of course, the settings of the detectors have to be known by the simulation code and also in the real experiment to be able to analyze it. That's in the very foundations of QT, and that's at the heart of all these interpretation issues: You need to know both the prepared quantum state and the setup of the experiment (i.e., knowledge about what's measured) to get the probabilities according to Born's rule, no matter when you choose the setup of the measurement devices (often also using a random choice in post-selection mode, but of course, to test QT you need to know which choice has been made in the coincidence measurements to be able to analyze the experiment in comparison to QT, i.e., the measurement protocol must contain for each event the randomly chosen orientation of the polarizers and the like).