ATLAS Offline Software
Loading...
Searching...
No Matches
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#
5from TileCalibBlobPython import TileCalibTools, TileCalibDefaultWriter
6
7#=== open the database
8db = TileCalibTools.openDb('SQLITE', 'OFLP200', 'UPDATE', 'COOLOFL_TILE')
9
10
11#=== create default writer
12defaultWriter = TileCalibDefaultWriter.TileCalibDefaultWriter(db)
13
14#=== increase TileCalibTools log level
15import logging
16defaultWriter.setLogLvl(logging.DEBUG)
17
18#=== tag for commissioning db
19tag = "COM-00"
20
21#=== write default pulse shape for TileMuonReceiver board
22defaultWriter.writeMuonReceiverPulseShape(tag)
23
24#=== close the database connection
25db.closeDatabase()