174 def __init__ (self) :
175 super().__init__()
176 self.setBlockName('TauWorkingPointSelection')
177 self.addOption ('containerName', '', type=str,
178 noneAction='error',
179 info="the name of the input container.",
180 meta={'role':'containerRef'})
181 self.addOption ('selectionName', '', type=str,
182 noneAction='error',
183 info="the name of the tau-jet selection to define (e.g. `tight` or "
184 "`loose`).",
185 meta={'role':'selection'})
186 self.addOption ('postfix', None, type=str,
187 info="a postfix to apply to decorations and algorithm names. "
188 "Typically not needed here as selectionName is used internally.")
189 self.addOption ('quality', None, type=str,
190 info="the ID WP to use. Supported ID WPs: `Tight`, `Medium`, "
191 "`Loose`, `VeryLoose`, `Baseline`, `BaselineForFakes`.",
192 meta={'choices':(['Tight','Medium','Loose','VeryLoose','Baseline','BaselineForFakes'],1)})
193 self.addOption ('use_eVeto', False, type=bool,
194 info="use selection with or without eVeto combined with TauID. "
195 "Recommendations: set it to `True` if electrons mis-reconstructed as tau-jets are a large background for your analysis.")
196 self.addOption ('use_muonOLR', False, type=bool,
197 info="use selection with or without muonOLR with TauID. "
198 "Recommendations: set it to `True` if muons mis-reconstructed as tau-jets are a large background for your analysis.")
199 self.addOption ('useGNTau', False, type=bool,
200 info="use GNTau-based ID instead of RNNTau ID. "
201 "Recommendations: experimental feature and might become default soon.",
202 expertMode=True)
203 self.addOption ('dropPtCut', False, type=bool,
204 info=r"select tau-jets without an explicit minimum $p_\mathrm{T}$ cut. For PHYS/PHYSLITE, this would mean selecting tau-jets starting from 13 GeV. "
205 "Recommendations: experimental feature and not supported for all combinations of ID/eVeto WPs.",
206 expertMode=True)
207 self.addOption ('useLowPt', False, type=bool,
208 info="select taus starting from 15 GeV instead of the default 20 GeV cut "
209 "recommendations: experimental feature and not supported for all combinations of ID/eVeto WPs.",
210 expertMode=True)
211 self.addOption ('useSelectionConfigFile', True, type=bool,
212 info="use pre-defined configuration files for selecting tau-jets. "
213 "Recommendations: set this to `False` only if you want to test/optimise the tau-jet selection for selections not already provided through config files.")
214 self.addOption ('manual_sel_minpt', 20.0, type=float,
215 info=r"minimum $p_\mathrm{T}$ cut (in GeV) used for tau-jet selection when `useSelectionConfigFile` is set to `False`.")
216 self.addOption ('manual_sel_absetaregion', [0, 1.37, 1.52, 2.5], type=list,
217 info=r"$\vert\eta\vert$ regions cut used for tau-jet selection when `useSelectionConfigFile` is set to `False`.")
218 self.addOption ('manual_sel_abscharges', [1,], type=list,
219 info="charge of the tau-jet cut used for tau-jet selection when `useSelectionConfigFile` is set to `False`.")
220 self.addOption ('manual_sel_ntracks', [1,3], type=list,
221 info="number of tau-jet tracks used for tau-jet selection when `useSelectionConfigFile` is set to `False`.")
222 self.addOption ('manual_sel_minrnnscore', -1, type=float,
223 info="minimum RNN score cut used for tau-jet selection when `useSelectionConfigFile` is set to `False`.")
224 self.addOption ('manual_sel_mingntauscore', -1, type=float,
225 info="minimum GNTau score selection when `useSelectionConfigFile` is set to `False`.")
226 self.addOption ('manual_sel_rnnwp', None, type=str,
227 info="RNN working point used for tau-jet selection when `useSelectionConfigFile` is set to `False`.")
228 self.addOption ('manual_sel_gntauwp', None, type=str,
229 info="GNTau working point used for tau-jet selection when `useSelectionConfigFile` is set to `False`.")
230 self.addOption ('manual_sel_evetowp', None, type=str,
231 info="eveto working point used for tau-jet selection when `useSelectionConfigFile` is set to `False`.")
232 self.addOption ('manual_sel_muonolr', False, type=bool,
233 info="use `muonolr` for tau-jet selection when `useSelectionConfigFile` is set to `False`.")
234 self.addOption ('addSelectionToPreselection', True, type=bool,
235 info="whether to retain only tau-jets satisfying the working point "
236 "requirements.")
237