932 debugMode=None, cutFlowHistograms=None):
933 """Create an event selection config block
934
935 Keyword arguments:
936 name -- the name defining this selection
937 electrons -- the electron container and selection
938 muons -- the muon container and selection
939 jets -- the jet container and selection
940 largeRjets -- the large-R jet container and selection
941 photons -- the photon container and selection
942 taus -- the tau-jet container and selection
943 met -- the MET container
944 metTerm -- the MET term to use (e.g. 'Final', 'NonInt')
945 btagDecoration -- the b-tagging decoration to use when defining b-jets
946 preselection -- optional event-wise selection flag to start from
947 selectionCuts -- a string listing one selection cut per line
948 noFilter -- whether to disable the event filter
949 debugMode -- enables saving all intermediate decorations
950 cutFlowHistograms -- whether to toggle event cutflow histograms per systematic
951 """
952
953 config = EventSelectionConfig()
954 config.setOptionValue ('name', name)
955 config.setOptionValue ('electrons', electrons)
956 config.setOptionValue ('muons', muons)
957 config.setOptionValue ('jets', jets)
958 config.setOptionValue ('largeRjets', largeRjets)
959 config.setOptionValue ('photons', photons)
960 config.setOptionValue ('taus', taus)
961 config.setOptionValue ('met', met)
962 config.setOptionValue ('metTerm', metTerm)
963 config.setOptionValue ('btagDecoration', btagDecoration)
964 config.setOptionValue ('preselection', preselection)
965 config.setOptionValue ('selectionCuts', selectionCuts)
966 config.setOptionValue ('noFilter', noFilter)
967 config.setOptionValue ('debugMode', debugMode)
968 seq.append(config)
969
970
971 if cutFlowHistograms:
972 makeEventCutFlowConfig(seq, 'EventInfo', selectionName='', postfix=name,
973 customSelections=name)
974