ATLAS Offline Software
TileCalibBlobPython_writeDefaults.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 # change: Yuri Smirnov <iouri.smirnov@cern.ch>, 2014-12-24
8 
9 from TileCalibBlobPython import TileCalibTools, TileCalibDefaultWriter
10 
11 #=== open the commissioning database
12 db = TileCalibTools.openDb('SQLITE', 'CONDBR2', 'UPDATE')
13 
14 #=== create default writer
15 defaultWriter = TileCalibDefaultWriter.TileCalibDefaultWriter(db)
16 
17 #=== increase TileCalibTools log level
18 import logging
19 defaultWriter.setLogLvl(logging.DEBUG)
20 
21 #=== tag for commissioning db
22 tag = "COM-00"
23 
24 #=== write all sorts of defaults
25 #=== Attention: defaults for simulation are commented below in some cases
26 defaultWriter.writeCis(tag)
27 defaultWriter.writeLas(tag)
28 defaultWriter.writeLasFiber(tag)
29 defaultWriter.writeCes(tag, False, "13TeV")
30 defaultWriter.writeEmscale(tag)
31 defaultWriter.writeIntegrator(tag)
32 defaultWriter.writeTcfib(tag)
33 defaultWriter.writeTclas(tag)
34 defaultWriter.writeTdlas(tag)
35 defaultWriter.writeTof(tag)
36 #defaultWriter.writeNoiseFit(tag)
37 defaultWriter.writeNoiseOnl(tag)
38 defaultWriter.writeNoiseSample(tag)
39 defaultWriter.writeNoiseAutoCr(tag)
40 defaultWriter.writeIntegrator(tag)
41 defaultWriter.writeBadChannels(tag)
42 defaultWriter.writeRODmap(tag)
43 defaultWriter.writePulseShape(tag)
44 defaultWriter.writeMuonReceiverPulseShape(tag)
45 defaultWriter.writeMuid()
46 
47 #=== write noise defaults for simulation db OFLP200 (not CONDBR2)
48 #defaultWriter.writeNoiseSampleMC(tag)
49 #defaultWriter.writeEmscaleMC(tag) # does not in
50 #defaultWriter.writeOldCes(tag) # MBTS in EBs connected in channel 47. No module type 11 anomaly.
51 
52 #=== close the database connection
53 db.closeDatabase()