Basic modules

VarFromVectorRDF

class Base.Modules.baseModules.VarFromVectorRDF(**kwargs)[source]

Bases:

Returns the element index of whatever input vectors

Parameters:
  • variables (list of str) – input vectors

  • index (str) – index to get the element from the vectors

  • input_prefix (str) – prefix common to all vectors to be substituted

  • output_prefix (str) – prefix to use as output for all vectors

  • condition (str) – (optional) condition used to define or not the new variables

YAML sintaxis:

codename:
    name: VarFromVectorRDF
    path: Base.Modules.BaseModules
    parameters:
        variables: [Jet_pt, Jet_eta]
        index: bjet_index
        input_prefix = Jet
        output_prefix = bjet

JetLepMetSyst

class Base.Modules.baseModules.JetLepMetSyst(*args, **kwargs)[source]

Bases: Syst

Abstract module that includes systematics and central values for jets, electrons, muons and taus into other modules.

Note that at most one lepton systematic can be different from its corresponden lepton central. If this happen, that systematic will be included as self.lepton_syst.

All systematics different from their corresponding central values will be joined and included into self.systs.

Parameters:
  • jet_central (str) – central appendix for the jets. Default: nom (smearing).

  • jet_syst (str) – systematic appendix for the jets. Default: nom (smearing).

  • muon_central (str) – central appendix for the muons. Default: "".

  • muon_syst (str) – systematic appendix for the muons. Default: "".

  • electron_central (str) – central appendix for the electrons. Default: "".

  • electron_syst (str) – systematic appendix for the electrons. Default: "".

  • tau_central (str) – central appendix for the taus. Default: corr (tes).

  • tau_syst (str) – systematic appendix for the taus. Default: corr (tes).

  • met_central (str) – central appendix for the met. Default: "".

  • met_syst (str) – systematic appendix for the met. Default: "".

  • met_smear_tag (str) – smearing tag used for the met. Default: smeared