ATLAS Offline Software
TileCalibBlobPython_writeDefaultOnlNoise.py
Go to the documentation of this file.
1 #!/bin/env python
2 
3 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4 #
5 # TileCalibBlobPython_writeDefaults.py
6 # Nils Gollub <nils.gollub@cern.ch>, 2007-11-26
7 # Andrei Artamonov 2011-05-26
8 # Yuri Smirnov 2014-12-24
9 
10 from TileCalibBlobPython import TileCalibTools, TileCalibDefaultWriter
11 
12 #=== open database
13 db = TileCalibTools.openDb('SQLITE', 'CONDBR2', 'UPDATE')
14 tag = ""
15 
16 #=== create default writer
17 defaultWriter = TileCalibDefaultWriter.TileCalibDefaultWriter(db)
18 
19 #=== increase TileCalibTools log level
20 import logging
21 defaultWriter.setLogLvl(logging.DEBUG)
22 
23 #=== write noise defaults
24 defaultWriter.writeNoiseOnl(tag)
25 
26 #=== close the database connection
27 db.closeDatabase()