Add choice for preselection
We might want to add a feature for convenience: Users should be able to choose whether they want to apply the preselection or not to save the hassle of commenting it out (and, in the worst case, forgetting to comment back in later). Currently, the preselection is handled at https://gitlab.cern.ch/HiggsDNA-project/HiggsDNA/-/blob/master/higgs_dna/workflows/base.py?ref_type=heads#L453-454.
I would suggest the following three options for a command-line switch --treatPreselection
:
-
apply
: As it is currently, apply the preselection and remove photons that do not pass. -
addFlag
: This might not be so easy to implement, but we could try to implement a flag for photons to indicate whether they passed the preselection or not. Then, when the chosen diphoton candidate is built with at least one photon that failed the preselection, we could add an event-level flag that indicates that normally, this event would have failed the preselection. Maybe this needs more thought but it would be a nice feature to have...? -
skip
: Do not apply any part of the photon preselection (referring to https://gitlab.cern.ch/HiggsDNA-project/HiggsDNA/-/blob/master/higgs_dna/selections/photon_selections.py?ref_type=heads). Photons that would fail this preselection are retained.