Exemplo n.º 1
0
 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.")
Exemplo n.º 2
0
 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.")
Exemplo n.º 3
0
    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
Exemplo n.º 4
0
    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 
Exemplo n.º 5
0
 def __init__(self, main, cut_type):
     self.cut_type = cut_type
     CmdBase.__init__(self,main,\
                      CutType.convert2cmdname(self.cut_type))
Exemplo n.º 6
0
 def __init__(self,main,cut_type):
     self.cut_type=cut_type
     CmdBase.__init__(self,main,\
                      CutType.convert2cmdname(self.cut_type))