ATLAS Offline Software
TileCalibBlobPython_writeMuonReceiverPulseShape.py
Go to the documentation of this file.
1 #!/bin/env python
2 
3 # Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
4 #
5 from TileCalibBlobPython import TileCalibTools, TileCalibDefaultWriter
6 
7 #=== open the database
8 db = TileCalibTools.openDb('SQLITE', 'OFLP200', 'UPDATE', 'COOLOFL_TILE')
9 
10 
11 #=== create default writer
12 defaultWriter = TileCalibDefaultWriter.TileCalibDefaultWriter(db)
13 
14 #=== increase TileCalibTools log level
15 import logging
16 defaultWriter.setLogLvl(logging.DEBUG)
17 
18 #=== tag for commissioning db
19 tag = "COM-00"
20 
21 #=== write default pulse shape for TileMuonReceiver board
22 defaultWriter.writeMuonReceiverPulseShape(tag)
23 
24 #=== close the database connection
25 db.closeDatabase()