ATLAS Offline Software
base_data_cos.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 from __future__ import print_function
4 
5 from DataQualityUtils.DQWebDisplayConfig import DQWebDisplayConfig
6 import os
7 from ._resolve_data_path import resolve_data_path
8 
9 hcfg_dir = resolve_data_path('DataQualityConfigurations')
10 if hcfg_dir:
11  print ("Found DataQualityConfigurations data directory %s, using it" % hcfg_dir)
12 else:
13  hcfg_dir = os.getcwd()
14  print ("DataQualityConfigurations data directory not found, attempting to use $PWD instead.")
15 print ("Looking for cosmics_*.hcfg files in %s" % (hcfg_dir))
16 
17 isprod = os.environ.get('DQPRODUCTION') == '1'
18 
19 dqconfig = DQWebDisplayConfig()
20 dqconfig.config = "Cosmics"
21 dqconfig.hcfg = os.environ.get('DQC_HCFG_COSMICS_RUN', "%s/cosmics_run.hcfg" % hcfg_dir)
22 dqconfig.hcfg_min10 = os.environ.get('DQC_HCFG_COSMICS_MINUTES10', "%s/cosmics_minutes10.hcfg" % hcfg_dir)
23 dqconfig.hcfg_min30 = os.environ.get('DQC_HCFG_COSMICS_MINUTES30', "%s/cosmics_minutes30.hcfg" % hcfg_dir)
24 serverstring = os.environ.get('DQC_SERVERS', "aiatlas016.cern.ch,aiatlas011.cern.ch")
25 if serverstring == '':
26  dqconfig.server = []
27 else:
28  dqconfig.server = serverstring.split(',') if isprod else []
29 dqconfig.eosResultsDir = "root://eosatlas.cern.ch//eos/atlas/atlascerngroupdisk/data-dqm/han_results/tier0/collisions/" if isprod else ""
30 dqconfig.histogramCache = "/afs/cern.ch/user/a/atlasdqm/w1/histogram_web_display_cache" if isprod else ''
31 dqconfig.hanResultsDir = "/dqmdisk0/han_results/tier0/Cosmics08" if isprod else '/afs/cern.ch/user/a/atlasdqm/dqmdisk/han_results/test'
32 dqconfig.doHandi = False
33 dqconfig.htmlDir = "/dqmdisk0/www/tier0/Cosmics08" if isprod else '/afs/cern.ch/user/a/atlasdqm/dqmdisk/www/test'
34 dqconfig.htmlWeb = "http://atlasdqm.cern.ch/tier0/Cosmics08"
35 dqconfig.runlist = "runlist_Cosmics08.xml"
36 dqconfig.indexFile = "results_Cosmics08.html"
37 dqconfig.lockFile = "DQWebDisplay_Cosmics08.lock"
38 dqconfig.webHandoffDir = '/afs/cern.ch/user/a/atlasdqm/maxidisk/webHandoff' if isprod else ''
39 
40 dqconfig.filemap = { 'RPCDQMFOFFLINE.db': '/afs/cern.ch/user/m/muoncali/w0/RPC/DQAresults',
41  'RPCConditionDB.db': '/afs/cern.ch/user/m/muoncali/w0/RPC/DQAresults',
42  'MDTDQMFOFFLINE_DEAD.db': '/afs/cern.ch/user/m/muoncali/w0/RPC/DQAresults',
43  'MDTDQMFOFFLINE_NOISY.db': '/afs/cern.ch/user/m/muoncali/w0/RPC/DQAresults',
44 }
45 
46 dqconfig.dbConnection = "oracle://ATLAS_COOLPROD;schema=ATLAS_COOLOFL_GLOBAL;dbname=CONDBR2;"
47 dqconfig.dqmfOfl = "/GLOBAL/DETSTATUS/DQMFOFL"
48 dqconfig.dbTagName = "DetStatusDQMFOFL-%(stream)s-pass1"
49 dqconfig.dbTagNameESn = "DetStatusDQMFOFL-%(stream)s-ES%(procpass)s"
50 dqconfig.shiftOfl = "/GLOBAL/DETSTATUS/SHIFTOFL"
51 
52 dqconfig.auth = "/afs/cern.ch/atlas/project/tzero/var"
python._resolve_data_path.resolve_data_path
def resolve_data_path(fin)
Definition: DataQualityConfigurations/python/_resolve_data_path.py:6