File indexing completed on 2024-04-06 12:07:43
0001 def detectEnviroment():
0002 global environmentString,CMSSW_Release,CMSSW_Release_Number
0003 import sys,os
0004 envVariables={"CMSSW_BASE":"","CMSSW_DATA_PATH":"","CMSSW_RELEASE_BASE":"","CMSSW_SEARCH_PATH":"",
0005 "CMSSW_VERSION":CMSSW_Release,"LD_LIBRARY_PATH":"","POOL_OUTMSG_LEVEL":"","POOL_STORAGESVC_DB_AGE_LIMIT":"",
0006 "PYTHONPATH":"","PATH":"","ROOTSYS":"","SEAL":"","SEAL_KEEP_MODULES":"","SEAL_PLUGINS":"","TNS_ADMIN":"",
0007 "XDAQ_DOCUMENT_ROOT":"","XDAQ_OS":"","XDAQ_PLATFORM":"","XDAQ_ROOT":"","XDAQ_SETUP_ROOT":"",
0008 "XDAQ_ZONE":"","SCRAM_ARCH":""}
0009 cmd='env | grep -E "(%s)" | sort' % "|".join(["^%s=" % v for v in envVariables.keys()])
0010 fpd=os.popen(cmd)
0011 line=fpd.readline()
0012 while line:
0013 k,v=line.split("=")
0014 envVariables[k]=v.strip()
0015 line=fpd.readline()
0016 fpd.close()
0017 ppath=":".join(sys.path)
0018 ppath=ppath.strip(":")
0019 envVariables["PYTHONPATH"]=ppath
0020 envVariables["PATH"]="%s:${PATH}" % envVariables["PATH"]
0021 envVariables["XDAQ_SETUP_ROOT"]=envVariables["XDAQ_ROOT"]+"/share"
0022 envVariables["XDAQ_ZONE"]="cdaq"
0023 CMSSW_Release=envVariables["CMSSW_VERSION"]
0024 CMSSW_Release_Number=CMSSW_Release.split("_",1)[1]
0025
0026 for (key,value) in envVariables.items():
0027 envVariables[key]=value.replace("/cmsnfshome0","")
0028 return " ".join(["%s=%s" % (k,v) for (k,v) in envVariables.items()])
0029
0030 user=""
0031 users=["dqmpro","dqmdev"]
0032 userHomeDirecotry=lambda: "/nfshome0/"+user
0033
0034
0035 CMSSW_Release_Number="2_2_10"
0036 CMSSW_Release="CMSSW_"+CMSSW_Release_Number
0037
0038 environmentString=detectEnviroment()
0039
0040 libDirectory=lambda: userHomeDirecotry()+"/lib_"+CMSSW_Release_Number
0041 knownclassNames=lambda: {
0042 "xmas2dqm::wse::XmasToDQM" :{"urn":"/urn:xdaq-application:lid=52","modulePath":libDirectory()+"/libDQMServicesXdaqCollector.so","tid":["104"]},
0043 "evf::FUEventProcessor" :{"urn":"/urn:xdaq-application:lid=50","modulePath":"lib/libxdaq2rc.so "+libDirectory()+"/libEventFilterProcessor.so","tid":["100","102"]},
0044 "SMProxyServer" :{"urn":"/urn:xdaq-application:lid=30","modulePath":"lib/libxdaq2rc.so "+libDirectory()+"/libEventFilterSMProxyServer.so","tid":["102"]},
0045 "RCMSStateListener" :{"urn":"","modulePath":"","tid":["104"]}
0046 }
0047
0048
0049 host={ "dqmpro":"cmsrc-dqm",
0050 "dqmdev":"cmsrc-dqmdev"}
0051 port={ "dqmpro":"22000",
0052 "dqmdev":"42000"}
0053 sourceURL={ "dqmpro":"http://cmsrc-dqm:22000/functionmanagers/dqmFM.jar",
0054 "dqmdev":"http://cmsrc-dqmdev:42000/functionmanagers/dqmFM.jar"}
0055
0056 RCMSStateListenerURL={ "dqmpro":"http://cmsrc-dqm:22001/rcms/services/replycommandreceiver",
0057 "dqmdev":"http://cmsrc-dqmdev.cms:42001/rcms/services/replycommandreceiver"}
0058
0059
0060
0061
0062 pathsToExecutive={ "dqmpro":"/opt/xdaq/bin/xdaq.sh -e /nfshome0/dqmpro/xml/profile.xml -u xml://cmsrc-dqm:22010",
0063 "dqmdev":"/opt/xdaq/bin/xdaq.sh -e /nfshome0/dqmdev/xml/profile.xml -u xml://cmsrc-dqmdev:42010"}
0064 logURLs= { "dqmpro":"xml://cmsrc-dqm:22010",
0065 "dqmdev":"xml://cmsrc-dqmdev:42010"}
0066 knownlogLevels=["DEBUG","INFO","ERROR"]