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