Ejemplo n.º 1
0
    def initialize(self,config_name):
        """
        Initialize this inherited instance of SelectionBase

        @param config_name   Name of the configuration to use (e.g., 'miniSL')
        """
        SelectionBase.initialize(self,config_name)

        self.build_custom_objects = False # don't build custom objects for this selection
        self.energy  = info.energy()
        self.Weights = info.Weights()  # samples[energy][sample]
        self.ttbar_truth_file = 'share/truth_entry.txt'
        self.init_prev_entry  = False # keeping track of previous entry

        ## If doing systematics, this is accessed many times
        ## to protect against crashes from loading and re-loading
        ## Neutrino.cxx, use try/except statement
        try:
            getattr(ROOT,'Neutrino')
        except AttributeError:
            ROOT.gROOT.LoadMacro('PyMiniAna/Neutrino.cxx') 

        ## Get the sum of weights for each DSID (before any looping!)
        self.eventWeight    = vlq.getSumOfWeights() # dictionary of sum of weights for each dsid
        self.eventWeight[0] = 1. # for data

        return
Ejemplo n.º 2
0
    def __init__(self,cfg_file):
        """Initialize the class."""
        SelectionBase.__init__(self,cfg_file)

        self.build_lepton = lepPre2Pre    # setup the lepton
        self.build_met    = metPre2Pre    # setup the MET
        self.build_nu     = nuPre2Pre     # setup the neutrino
        self.build_jets   = jetPre2Pre    # setup the jets
        self.build_tjets  = tjetPre2Pre   # setup the track jets
        self.build_ljets  = fjPre2Pre     # setup the Fat Jets