Exemplo n.º 1
0
from DBSAPI.dbsException import *
from DBSAPI.dbsApiException import *
from DBSAPI.dbsOptions import DbsOptionParser
from DBSAPI.dbsApi import DbsApi

optManager = DbsOptionParser()
(opts, args) = optManager.getOpt()

api = DbsApi(opts.__dict__)

#Add a new SubSystem
#
#
api.insertSubSystem(name="Tracker_Global", parent="CMS")
#
api.insertSubSystem(name="TIB_Local", parent="Tracker_Global")
api.insertSubSystem(name="TIB_Power", parent="TIB_Local")
api.insertSubSystem(name="TIB_Cooling", parent="TIB_Local")
api.insertSubSystem(name="TIB_DCS", parent="TIB_Local")
api.insertSubSystem(name="TIB_DAQ", parent="TIB_Local")
api.insertSubSystem(name="TIB_Online_DQM", parent="TIB_Local")
api.insertSubSystem(name="TIB_Offline_DQM", parent="TIB_Local")
api.insertSubSystem(name="TIB_Percentage", parent="TIB_Local")

api.insertSubSystem(name="TOB_Local", parent="Tracker_Global")
api.insertSubSystem(name="TOB_Power", parent="TOB_Local")
api.insertSubSystem(name="TOB_Cooling", parent="TOB_Local")
api.insertSubSystem(name="TOB_DCS", parent="TOB_Local")
api.insertSubSystem(name="TOB_DAQ", parent="TOB_Local")
api.insertSubSystem(name="TOB_Online_DQM", parent="TOB_Local")
api.insertSubSystem(name="TOB_Offline_DQM", parent="TOB_Local")
Exemplo n.º 2
0
from DBSAPI.dbsException import *
from DBSAPI.dbsApiException import *
from DBSAPI.dbsOptions import DbsOptionParser
from DBSAPI.dbsApi import DbsApi

optManager = DbsOptionParser()
(opts, args) = optManager.getOpt()

api = DbsApi(opts.__dict__)

#Add a new SubSystem
#
#
api.insertSubSystem(name="SiStrip_Global", parent="CMS")
#
api.insertSubSystem(name="SiStrip_Performance", parent="SiStrip_Global")
#
api.insertSubSystem(name="TIB_Global", parent="SiStrip_Global")
api.insertSubSystem(name="TIB_OnlineDQM", parent="TIB_Global")
api.insertSubSystem(name="TIB_Performance", parent="TIB_Global")

api.insertSubSystem(name="TOB_Global", parent="SiStrip_Global")
api.insertSubSystem(name="TOB_OnlineDQM", parent="TOB_Global")
api.insertSubSystem(name="TOB_Performance", parent="TOB_Global")

api.insertSubSystem(name="TIDB_Global", parent="SiStrip_Global")
api.insertSubSystem(name="TIDB_OnlineDQM", parent="TIDB_Global")
api.insertSubSystem(name="TIDB_Performance", parent="TIDB_Global")

api.insertSubSystem(name="TIDF_Global", parent="SiStrip_Global")
api.insertSubSystem(name="TIDF_OnlineDQM", parent="TIDF_Global")
Exemplo n.º 3
0
from DBSAPI.dbsException import *
from DBSAPI.dbsApiException import *
from DBSAPI.dbsOptions import DbsOptionParser
from DBSAPI.dbsApi import DbsApi

optManager  = DbsOptionParser()
(opts,args) = optManager.getOpt()

api = DbsApi(opts.__dict__)

#Add a new SubSystem
#
#
api.insertSubSystem(name="Tracker_Global", parent="CMS")
#
api.insertSubSystem(name="TIB_Local", parent="Tracker_Global")
api.insertSubSystem(name="TIB_Power", parent="TIB_Local")  
api.insertSubSystem(name="TIB_Cooling", parent="TIB_Local") 
api.insertSubSystem(name="TIB_DCS", parent="TIB_Local")  
api.insertSubSystem(name="TIB_DAQ", parent="TIB_Local")  
api.insertSubSystem(name="TIB_Online_DQM", parent="TIB_Local")  
api.insertSubSystem(name="TIB_Offline_DQM", parent="TIB_Local")  
api.insertSubSystem(name="TIB_Percentage", parent="TIB_Local") 

api.insertSubSystem(name="TOB_Local", parent="Tracker_Global") 
api.insertSubSystem(name="TOB_Power", parent="TOB_Local")  
api.insertSubSystem(name="TOB_Cooling", parent="TOB_Local")  
api.insertSubSystem(name="TOB_DCS", parent="TOB_Local")  
api.insertSubSystem(name="TOB_DAQ", parent="TOB_Local")  
api.insertSubSystem(name="TOB_Online_DQM", parent="TOB_Local")  
api.insertSubSystem(name="TOB_Offline_DQM", parent="TOB_Local")  
Exemplo n.º 4
0
from DBSAPI.dbsException import *
from DBSAPI.dbsApiException import *
from DBSAPI.dbsOptions import DbsOptionParser
from DBSAPI.dbsApi import DbsApi

optManager  = DbsOptionParser()
(opts,args) = optManager.getOpt()

api = DbsApi(opts.__dict__)

#Add a new SubSystem
#
#
api.insertSubSystem(name="SiStrip_Global", parent="CMS")
#
api.insertSubSystem(name="SiStrip_Performance", parent="SiStrip_Global")
#
api.insertSubSystem(name="TIB_Global", parent="SiStrip_Global")
api.insertSubSystem(name="TIB_OnlineDQM", parent="TIB_Global")
api.insertSubSystem(name="TIB_Performance", parent="TIB_Global")

api.insertSubSystem(name="TOB_Global", parent="SiStrip_Global")
api.insertSubSystem(name="TOB_OnlineDQM", parent="TOB_Global")
api.insertSubSystem(name="TOB_Performance", parent="TOB_Global")

api.insertSubSystem(name="TIDB_Global", parent="SiStrip_Global")
api.insertSubSystem(name="TIDB_OnlineDQM", parent="TIDB_Global")
api.insertSubSystem(name="TIDB_Performance", parent="TIDB_Global")

api.insertSubSystem(name="TIDF_Global", parent="SiStrip_Global")
api.insertSubSystem(name="TIDF_OnlineDQM", parent="TIDF_Global")
Exemplo n.º 5
0
    (opts,args) = optManager.getOpt()

    api = DbsApi(opts.__dict__)

    #Add a new SubSystem
    

    #api.insertSubSystem(name="ECAL", parent="CMS")
    #api.insertSubSystem(name="ECAL+", parent="ECAL")
    #api.insertSubSystem(name="ECAL-", parent="ECAL")

    #api.insertSubSystem(name="HCAL", parent="CMS")
    #api.insertSubSystem(name="HCAL+", parent="HCAL")
    #api.insertSubSystem(name="HCAL-", parent="HCAL")

    #api.insertSubSystem(name="HB", parent="HCAL")
    #api.insertSubSystem(name="HF", parent="HCAL")

    api.insertSubSystem(name="XYZ_Percentage", parent="CMS")

    #subSys = api.listSubSystems()
    #for aSub in subSys:
    #	print "Name: %s, Parent: %s" %(aSub['Name'], aSub['Parent'])


  except DbsApiException, ex:
    print "Caught API Exception %s: %s "  % (ex.getClassName(), ex.getErrorMessage() )
    if ex.getErrorCode() not in (None, ""):
      print "DBS Exception Error Code: ", ex.getErrorCode()

Exemplo n.º 6
0
    try:
        optManager = DbsOptionParser()
        (opts, args) = optManager.getOpt()

        api = DbsApi(opts.__dict__)

        #Add a new SubSystem

        #api.insertSubSystem(name="ECAL", parent="CMS")
        #api.insertSubSystem(name="ECAL+", parent="ECAL")
        #api.insertSubSystem(name="ECAL-", parent="ECAL")

        #api.insertSubSystem(name="HCAL", parent="CMS")
        #api.insertSubSystem(name="HCAL+", parent="HCAL")
        #api.insertSubSystem(name="HCAL-", parent="HCAL")

        #api.insertSubSystem(name="HB", parent="HCAL")
        #api.insertSubSystem(name="HF", parent="HCAL")

        api.insertSubSystem(name="XYZ_Percentage", parent="CMS")

        #subSys = api.listSubSystems()
        #for aSub in subSys:
        #	print "Name: %s, Parent: %s" %(aSub['Name'], aSub['Parent'])

    except DbsApiException, ex:
        print "Caught API Exception %s: %s " % (ex.getClassName(),
                                                ex.getErrorMessage())
        if ex.getErrorCode() not in (None, ""):
            print "DBS Exception Error Code: ", ex.getErrorCode()