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