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 "The default is {} (empty dictionary).")
32 self.addOption ('multiTriggerChainsPerYear', {}, type=None,
33 info="a dictionary with key (string) a trigger set name and value a "
34 "triggerChainsPerYear dictionary, following the previous convention. "
35 "Relevant for analyses using different triggers in different categories, "
36 "where the trigger global scale factors shouldn't be combined. "
37 "The default is {} (empty dictionary).")
38 self.addOption ('triggerChainsForSelection', [], type=None,
39 info="a list of trigger chains (list of strings) to be used for "
40 "trigger selection. Only set it if you need a different setup "
41 "than for trigger SFs. The default is [] (empty list).")
42 self.addOption ('triggerChainsForDecoration', [], type=None,
43 info="a list of trigger chains (list of strings) to be used for "
44 "trigger decoration, if it needs to be different from the selection one. "
45 "The default is [] (empty list).")
46 self.addOption ('prescaleDecoration', 'prescale', type=str,
47 info="name (prefix) of decoration for trigger prescales.")
48 self.addOption ('prescaleLumiCalcFiles', [], type=None,
49 info="a list of lumical files (list of strings) to calculate "
50 "trigger prescales. The default is [] (empty list). Mutually "
51 "exclusive with prescaleLumiCalcFilesPerYear")
52 self.addOption ('prescaleLumiCalcFilesPerYear', {}, type=None,
53 info="a dicrionary with key (string) the year and value (list of "
54 "strings) the list of lumicalc files to calculate trigger prescales "
55 "for an individual data year. The default is {} (empty dictionary). "
56 "Mutually exclusive with prescaleLumiCalcFiles")
57 self.addOption ('prescaleTriggersFormula', '', type=str,
58 info="a formula used in (un)prescaling, producing overall prescale "
59 "factor instead of prescale per trigger.")
60 self.addOption ('prescaleMC', False, type=bool,
61 info="ouput trigger prescales when running on MC. The default is False.")
62 self.addOption ('unprescaleData', False, type=bool,
63 info="ouput trigger prescales when running on Data. The default is False.")
64 self.addOption ('prescaleIncludeAllYearsPerRun', False, type=bool,
65 info="if True, trigger prescales will include all configured years "
66 "from prescaleLumiCalcFilesPerYear in all jobs. The default is False.")
67 self.addOption ('splitPerLHCRun', False, type=bool,
68 info="if True, trigger branches will only be processed for the current LHC run.")
69 self.addOption ('noFilter', False, type=bool,
70 info="do not apply an event filter. The default is False, i.e. "
71 "remove events not passing trigger selection and matching.")
72
73 self.addOption ('noL1', False, type=bool,
74 info="")
75