def help(self): logging.info(" Syntax: " + CutType.convert2cmdname(self.cut_type) +\ " observable_name ( multiparticle1 multiparticle2 ... ) operator threshold [ option1 option 2 ]") logging.info(" Declares a cut: ") logging.info(" - related to the distribution of a given observable, associated to one or a combination of (multi)particles,") logging.info(" - supported logical operators: <= , < , >= , > , == , != ,") logging.info(" - threshold being a value.")
def help(self): logging.getLogger('MA5').info(" Syntax: " + CutType.convert2cmdname(self.cut_type) +\ " observable_name ( multiparticle1 multiparticle2 ... ) operator threshold [ option1 option 2 ]") logging.getLogger('MA5').info(" Declares a cut: ") logging.getLogger('MA5').info( " - related to the distribution of a given observable, associated to one or a combination of (multi)particles," ) logging.getLogger('MA5').info( " - supported logical operators: <= , < , >= , > , == , != ,") logging.getLogger('MA5').info(" - threshold being a value.")
def GetStringDisplay(self): msg = "Cut: " # displaying command msg += CutType.convert2cmdname(self.cut_type) # displaying particles if len(self.part) != 0: msg += " ( " + self.part.GetStringDisplay() + " )" # displaying conditions msg += " " + self.conditions.GetStringDisplay() return msg
def GetStringDisplay(self): msg = "Cut : " # displaying command msg += CutType.convert2cmdname(self.cut_type) # displaying particles if len(self.part)!=0: msg += " ( " + self.part.GetStringDisplay()+" )" # displaying conditions msg += " "+self.conditions.GetStringDisplay() return msg
def __init__(self, main, cut_type): self.cut_type = cut_type CmdBase.__init__(self,main,\ CutType.convert2cmdname(self.cut_type))
def __init__(self,main,cut_type): self.cut_type=cut_type CmdBase.__init__(self,main,\ CutType.convert2cmdname(self.cut_type))