30 def __init__ (self) :
31 super ().__init__ ()
32 self.addOption ('triggerChainsPerYear', {}, type=dict,
33 info="a dictionary with key (string) the year and value (list of "
34 "strings) the trigger chains. You can also use `||` within a string "
35 "to enforce an OR of triggers without looking up the individual "
36 "triggers. Used for both trigger selection and SFs.")
37 self.addOption ('multiTriggerChainsPerYear', {}, type=dict,
38 info="a dictionary with key (string) a trigger set name and value a "
39 "`triggerChainsPerYear` dictionary, following the previous convention. "
40 "Relevant for analyses using different triggers in different categories, "
41 "where the trigger global scale factors shouldn't be combined.")
42 self.addOption ('triggerChainsForSelection', [], type=list,
43 info="a list of trigger chains (list of strings) to be used for "
44 "trigger selection. Only set it if you need a different setup "
45 "than for trigger SFs.")
46 self.addOption ('triggerChainsForDecoration', [], type=list,
47 info="a list of trigger chains (list of strings) to be used for "
48 "trigger decoration, if it needs to be different from the selection one.")
49 self.addOption ('prescaleDecoration', 'prescale', type=str,
50 info="name of the decoration for trigger prescales.")
51 self.addOption ('prescaleLumiCalcFiles', [], type=list,
52 info="a list of lumicalc files (list of strings) to calculate "
53 "trigger prescales. Mutually "
54 "exclusive with `prescaleLumiCalcFilesPerYear`.")
55 self.addOption ('prescaleLumiCalcFilesPerYear', {}, type=dict,
56 info="a dicrionary with key (string) the year and value (list of "
57 "strings) the list of lumicalc files to calculate trigger prescales "
58 "for an individual data year. "
59 "Mutually exclusive with `prescaleLumiCalcFiles`.")
60 self.addOption ('prescaleTriggersFormula', '', type=str,
61 info="a formula used in (un)prescaling, producing overall prescale "
62 "factor instead of prescale per trigger.")
63 self.addOption ('prescaleMC', False, type=bool,
64 info="output trigger prescales when running on MC.")
65 self.addOption ('unprescaleData', False, type=bool,
66 info="output trigger prescales when running on Data.")
67 self.addOption ('prescaleIncludeAllYearsPerRun', False, type=bool,
68 info="trigger prescales will include all configured years "
69 "from `prescaleLumiCalcFilesPerYear` in all jobs.")
70 self.addOption ('splitPerLHCRun', False, type=bool,
71 info="trigger branches will only be processed for the current LHC run.")
72 self.addOption ('noFilter', False, type=bool,
73 info="do not apply an event filter (i.e. keep events not passing trigger selection or matching).")
74 self.addOption ('noL1', False, type=bool,
75 info="toggle off the L1 trigger decision. This flag is required e.g. for running the algorithm on TLA stream data.")
76