コード例 #1
0
ファイル: cmd_cut.py プロジェクト: cmstas/TopAFB7TeV
 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.")
コード例 #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.")
コード例 #3
0
ファイル: cut.py プロジェクト: adarshp/madanalysis5
    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
コード例 #4
0
ファイル: cut.py プロジェクト: cmstas/TopAFB7TeV
    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 
コード例 #5
0
 def __init__(self, main, cut_type):
     self.cut_type = cut_type
     CmdBase.__init__(self,main,\
                      CutType.convert2cmdname(self.cut_type))
コード例 #6
0
ファイル: cmd_cut.py プロジェクト: cmstas/TopAFB7TeV
 def __init__(self,main,cut_type):
     self.cut_type=cut_type
     CmdBase.__init__(self,main,\
                      CutType.convert2cmdname(self.cut_type))