Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
UseFrontier.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 #
3 # @brief Switch database to using FRONTIER, but with a fallback
4 # to DBRelease if FRONTIER_SERVER is undefined (e.g., on HPC)
5 
6 import os
7 from AthenaCommon.Logging import logging
8 log = logging.getLogger('UseFrontier.py')
9 
10 if(os.environ.get('FRONTIER_SERVER')):
11  log.info('Enabling FRONTIER DB access')
12  from DBReplicaSvc.DBReplicaSvcConf import DBReplicaSvc
13  ServiceMgr+=DBReplicaSvc(COOLSQLiteVetoPattern="DBRelease")
14 else:
15  log.info('Using default DB access')
if
if(febId1==febId2)
Definition: LArRodBlockPhysicsV0.cxx:567