コード例 #1
0
    def __init__(self, name, dataframe, selection_list_labels=None, **kw):

        Algorithm.__init__(self, name)

        # declare all properties with default values
        self.declareProperty("Basepath", "Event/ImpactTool_bkup",
                             "Impact base path histogram.")
        self.declareProperty("EtBinningValues", [],
                             "Et bin selection for data selection.")
        self.declareProperty("EtaBinningValues", [],
                             "Et bin selection for data selection.")

        # Set all properties values from the contructor args
        for key, value in kw.items():
            self.setProperty(key, value)

        if selection_list_labels is None:
            # default selection names definition
            self.__selections = [
                'ringer',
                'no_ringer',
            ]
        else:
            self.__selections = selection_list_labels

        self.__selectionFeatures = list()
コード例 #2
0
  def __init__(self, name, **kw):
    Algorithm.__init__(self, name)

    # Set all properties
    for key, value in kw.items():
      if key in self.__property:
        self.declareProperty( key, value )
      else:
        MSG_FATAL( self, "Property with name %s is not allow for %s object", key, self.__class__.__name__)
コード例 #3
0
  def __init__(self, name, dojpsiee=False, **kw):

    Algorithm.__init__(self, name)
    self.__groups = list()

    # declare all props here
    self.declareProperty( "Basepath", "Event/EfficiencyTool", "Histograms base path for the efficiency tool"      )
    self.declareProperty( "DoJpisee", dojpsiee                 , "Use the J/psiee et bins in the eff et histograms." )
 
    # Set property values using the constructor args
    for key, value in kw.items():
      self.setProperty(key, value)
コード例 #4
0
  def __init__(self, name, **kw):
    
    Algorithm.__init__(self, name)
    self._event = {}
    self._event_label = []
    self._save_these_bins = list()
    self._extra_features = list()
    
    self.declareProperty( "OutputFile", 'sample.pic', "The output file name"       )


    for key, value in kw.items():
      self.setProperty(key, value)
コード例 #5
0
    def __init__(self, name, **kw):

        Algorithm.__init__(self, name)

        # declare all properties with default values
        self.declareProperty("Basepath", "Event/QuadrantTool",
                             "Quadrant base path histogram.")
        self.declareProperty("EtBinningValues", [],
                             "Et bin selection for data selection.")
        self.declareProperty("EtaBinningValues", [],
                             "Et bin selection for data selection.")

        # Set all properties values from the contructor args
        for key, value in kw.items():
            self.setProperty(key, value)

        self.__quadrantFeatures = list()
コード例 #6
0
ファイル: Menu.py プロジェクト: ringer-atlas/prometheus
 def __init__(self):
     Algorithm.__init__(self, "Emulator")
     self.__tools = {}
コード例 #7
0
  def __init__(self, name):

    Algorithm.__init__(self, name)

    # Cut type and values
    self.__cutValues = collections.OrderedDict()
コード例 #8
0
ファイル: convert.py プロジェクト: Victor17in/lorenzett
 def __init__(self, name, outputname):
     Algorithm.__init__(self, name)
     self._outputname = outputname
     self._event = []
コード例 #9
0
    def __init__(self, name, L1Item, chain):

        Algorithm.__init__(self, name)
        self.__trigInfo = TriggerInfo(chain)
        self.__l1item = L1Item
        self.__trigger = chain
コード例 #10
0
 def __init__( self, name, **kw ):
   Algorithm.__init__( self, name )
   self._basepath = retrieve_kw( kw, 'basepath' , '')
コード例 #11
0
 def __init__(self, name, **kw):
     Algorithm.__init__(self, name)
     self._outputname = retrieve_kw(kw, 'outputname', 'collection.pic')
     self._event = []
     self._event_label = []
コード例 #12
0
    def __init__(self, name, **kw):

        Algorithm.__init__(self, name)
        # List of hypos in this selector
        self.__hypos = None
コード例 #13
0
    def __init__(self, name, chain):

        Algorithm.__init__(self, name)

        self.__trigger = chain[4::] if chain.startswith('HLT_') else chain
コード例 #14
0
 def __init__(self, name, **kw):
     Algorithm.__init__(self, name)
     self._basepath = retrieve_kw(kw, 'basepath', 'particle')
     self._energy_bins = retrieve_kw(kw, 'energy_bins', [])