11 def __init__ (self) :
12 super (MetAnalysisConfig, self).__init__ ()
13 self.addOption('containerName', '', type=str,
14 noneAction='error',
15 info="the name of the output container.",
16 meta={'role':'container'})
17 self.addOption ('useJVT', True, type=bool,
18 info="whether to use the JVT decision in the MET calculation.")
19 self.addOption ('useFJVT', False, type=bool,
20 info="whether to use the forward JVT decision in the MET calculation.")
21 self.addOption ('selectionNameFJVT', "", type=str,
22 info="name of the forward JVT selection to be used if `useFJVT` is activated.",
23 meta={'role':'selection'})
24 self.addOption ('treatPUJets', False, type=bool,
25 info="whether to treat pile-up jets in the MET significance calculation.")
26 self.addOption ('setMuonJetEMScale', True, type=bool,
27 info="enables the handling of muons in jets for the MET calculation. "
28 "Should be turned off for analyses where muons are not reconstructed "
29 "at all.")
30 self.addOption ('jets', "", type=str,
31 info="the input jet container.",
32 meta={'role':'containerRef'})
33 self.addOption ('electrons', "", type=str,
34 info="the input electron container, with a possible selection, in "
35 "the format `container` or `container.selection`.",
36 meta={'role':'containerRef'})
37 self.addOption ('muons', "", type=str,
38 info="the input muon container, with a possible selection, in the "
39 "format `container` or `container.selection`.",
40 meta={'role':'containerRef'})
41 self.addOption ('photons', "", type=str,
42 info="the input photon container, with a possible selection, in "
43 "the format `container` or `container.selection`.",
44 meta={'role':'containerRef'})
45 self.addOption ('taus', "", type=str,
46 info="the input tau-jet container, with a possible selection, in "
47 "the format `container` or `container.selection`.",
48 meta={'role':'containerRef'})
49 self.addOption ('invisible', [], type=None,
50 info="any input containers to be treated as invisible particles, "
51 "as a single string or a list of strings in the format `container` or `container.selection`.",
52 meta={'role':'containerRef'})
53 self.addOption ('metWP', "Tight", type=str,
54 info="the MET working point to use: `Loose`, `Tight`, `Tighter`, "
55 "`Tenacious`.",
56 meta={'choices':(['Loose','Tight','Tighter','Tenacious'],1)})
57 self.addOption ('skipSystematicJetSelection', False, type=bool,
58 info="EXPERIMENTAL: whether to use simplified OR based on nominal jets "
59 "and for jet-related systematics only. "
60 "WARNING: this option is strictly for doing physics studies of the feasibility "
61 "of this OR scheme, it should not be used in a regular analysis.",
62 expertMode=True)
63 self.addOption ('saveSignificance', True, type=bool,
64 info="whether to save the MET significance.")
65 self.addOption ('jetCalibConfig', "", type=str,
66 info="config file used in jet calibration (for MET significance).")
67 self.addOption ('jetCalibSequence', "", type=str,
68 info="jet calibration sequence (for MET significance).")
69 self.addOption ('jetCalibArea', "", type=str,
70 info="name of the CalibArea used in jet calibration (for MET significance).")
71 self.addOption ('egammaESModel', "", type=str,
72 info="ESModel for EGamma calibration (for MET significance).")
73 self.addOption ('egammaDecorrelationModel', "", type=str,
74 info="decorrelation model for EGamma calibration (for MET significance).")
75 self.addOption ('tauTESConfig', "CombinedTES_R22_Round2.5_v2.root", type=str,
76 info="config file for tau energy scale calibration (for MET significance).")
77 self.addOption ('tauUseMVAResolution', True, type=bool,
78 info="whether to use MVA resolution for taus-jets (for MET significance).")
79 self.addOption ('addExtraSignificanceVars', False, type=bool,
80 info="whether to save some additional (event-based) MET significance variables.")
81 self.addOption ('useLRT', False, type=bool,
82 info="whether to use LRT MET Core and association map.")
83 self.addOption ('useCaloSoftTerm', False, type=bool,
84 info="whether to use calo- instead of track-based soft term.",
85 expertMode=True)
86 self.addOption ('softTermResolution', -1.0, type=float,
87 info="override the default soft term resolution in METSignificance.",
88 expertMode=True)
89 self.addOption ('switchTauMuOrder', False, type=bool,
90 info="whether to switch order of taus and muons",
91 expertMode=True)
92 self.addOption ('useNN', False, type=bool,
93 info="use the METNet neural-network MET tool (met::METNet) instead of "
94 "met::METMaker. Produces the NN MET as the container's Final term.")
95 self.addOption ('networkFile', "", type=str,
96 info="path to the METNet ONNX network file (required when useNN=True).")
97