parameters: (self)
return_statement: return loadCond
docstring: This function creates the configuration snippet to override
             global tag conditions.
docstring_summary: This function creates the configuration snippet to override
             global tag conditions.
docstring_tokens: This function creates the configuration snippet to override global tag conditions .
function: def getConditions(self):
          """This function creates the configuration snippet to override
             global tag conditions.
             """
          if len( self.conditions ):
              loadCond = ("\nimport CalibTracker.Configuration."
                          "Common.PoolDBESSource_cfi\n")
              for cond in self.conditions:
                  if not cond["labelName"] == "":
                      temp = configTemplates.conditionsTemplate.replace(
                          "tag = cms.string('.oO[tagName]Oo.')",
                          ("tag = cms.string('.oO[tagName]Oo.'),"
                           "\nlabel = cms.untracked.string('.oO[labelName]Oo.')"))
                  else:
                      temp = configTemplates.conditionsTemplate
                  loadCond += replaceByMap( temp, cond )
          else:
              loadCond = ""
          return loadCond
function_tokens: def getConditions ( self ) : if len ( self . conditions ) : loadCond = ( "\nimport CalibTracker.Configuration." "Common.PoolDBESSource_cfi\n" ) for cond in self . conditions : if not cond [ "labelName" ] == "" : temp = configTemplates . conditionsTemplate . replace ( "tag = cms.string('.oO[tagName]Oo.')" , ( "tag = cms.string('.oO[tagName]Oo.')," "\nlabel = cms.untracked.string('.oO[labelName]Oo.')" ) ) else : temp = configTemplates . conditionsTemplate loadCond += replaceByMap ( temp , cond ) else : loadCond = "" return loadCond