ATLAS Offline Software
Functions
CondConfig Namespace Reference

Functions

def CondCfg (flags, **kwargs)
 

Function Documentation

◆ CondCfg()

def CondConfig.CondCfg (   flags,
**  kwargs 
)

Definition at line 12 of file CondConfig.py.

12 def CondCfg(flags, **kwargs):
13  cfg = ComponentAccumulator()
14 
15 
16  if flags.InDet.Align.siPoolFile:
17  cfg.merge(CondProxyProviderCfg(flags, flags.InDet.Align.siPoolFile))
18 
19  if flags.InDet.Align.inputAlignmentConstants:
20  cfg.merge(CondProxyProviderCfg(flags,
21  flags.InDet.Align.inputAlignmentConstants))
22 
23  if flags.InDet.Align.ErrorScalingTag:
24  if ".db" in flags.InDet.Align.ErrorScalingTag:
25  cfg.merge(addFolders(
26  flags,
27  f'<dbConnection>sqlite://X;schema={flags.InDetAlign.ErrorScalingTag};dbname=CONDBR2</dbConnection>/Indet/TrkErrorScaling',
28  tag = 'IndetTrkErrorScaling_nominal'))
29 
30  else:
31  cfg.merge(addOverride(flags, '/Indet/TrkErrorScaling',
32  flags.InDet.Align.ErrorScalingTag))
33 
34  if flags.InDet.Align.BeamSpotTag and flags.Beam.Type is not BeamType.Cosmics:
35  cfg.merge(addOverride(flags, '/Indet/Beampos', flags.InDet.Align.BeamSpotTag))
36 
37  if flags.InDet.Align.LorentzAngleTag and flags.Beam.Type is not BeamType.Cosmics:
38  cfg.merge(addOverride(flags, '/PIXEL/LorentzAngleScale',
39  flags.InDet.Align.LorentzAngleTag))
40 
41  if flags.InDet.Align.TRTCalibT0TagCos:
42  cfg.merge(addOverride(flags, '/TRT/Calib/T0',
43  flags.InDet.Align.TRTCalibT0TagCos))
44 
45  if flags.InDet.Align.TRTCalibRtTagCos:
46  cfg.merge(addOverride(flags, '/TRT/Calib/RT',
47  flags.InDet.Align.TRTCalibT0TagCos))
48 
49  if flags.InDet.Align.MDNTag:
50  cfg.merge(addOverride(flags, "/PIXEL/PixelClustering/PixelNNCalibJSON",
51  flags.InDet.Align.MDNTag))
52 
53  if flags.InDet.Align.inputBowingDatabase:
54  if (".db" in flags.InDet.Align.inputBowingDatabase and
55  not flags.InDet.Align.readL3Only):
56  cfg.merge(addFolders(
57  flags,
58  f'<dbConnection>sqlite://X;schema={flags.InDet.Align.inputBowingDatabase};dbname=CONDBR2</dbConnection>/Indet/IBLDist',
59  tag = 'IndetIBLDist',
60  className = "CondAttrListCollection"))
61 
62  else:
63  cfg.merge(addOverride(flags, '/Indet/IBLDist',
64  flags.InDet.Align.inputBowingDatabase))
65 
66  if flags.InDet.Align.useDynamicAlignFolders:
67  globalDB = flags.InDet.Align.inputDynamicGlobalDatabase
68  if globalDB:
69  if ".db" in globalDB and not flags.InDet.Align.readL3Only:
70  cfg.merge(addFolders(
71  flags,
72  f'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/Indet/AlignL1/ID<tag>IndetL1Test</tag>',
73  className="CondAttrListCollection"))
74 
75  cfg.merge(addFolders(
76  flags,
77  f'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/Indet/AlignL2/PIX<tag>IndetL2PIXTest</tag>',
78  className = "CondAttrListCollection"))
79 
80  cfg.merge(addFolders(
81  flags,
82  f'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/Indet/AlignL2/SCT<tag>IndetL2SCTTest</tag>',
83  className="CondAttrListCollection"))
84 
85  cfg.merge(addFolders(
86  flags,
87  f'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/TRT/AlignL1/TRT<tag>IndetL1TRTTest</tag>',
88  className = "CondAttrListCollection"))
89 
90  cfg.merge(addFolders(
91  flags,
92  f'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/Indet/AlignL3<tag>IndetAlign_test</tag>',
93  className="AlignableTransformContainer"))
94 
95  cfg.merge(addFolders(
96  flags,
97  f'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/TRT/AlignL2<tag>TRTAlign_test</tag>',
98  className = "AlignableTransformContainer"))
99 
100  if globalDB == "" or flags.InDet.Align.readL3Only:
101  if flags.InDet.Align.DynamicL1IDTag:
102  cfg.merge(addOverride('/Indet/AlignL1/ID',
103  flags.InDet.Align.DynamicL1IDTag))
104 
105  if flags.InDet.Align.DynamicL2PIXTag:
106  cfg.merge(addOverride(flags, '/Indet/AlignL2/PIX',
107  flags.InDet.Align.DynamicL2PIXTag))
108 
109  if flags.InDet.Align.DynamicL2SCTTag:
110  cfg.merge(addOverride(flags, '/Indet/AlignL2/SCT',
111  flags.InDet.Align.DynamicL2SCTTag))
112 
113  if flags.InDet.Align.DynamicL3SiTag:
114  cfg.merge(addOverride(flags, '/Indet/AlignL3',
115  flags.InDet.Align.DynamicL3SiTag))
116 
117  if flags.InDet.Align.DynamicL1TRTTag:
118  cfg.merge(addOverride(flags, '/TRT/AlignL1/TRT',
119  flags.InDet.Align.DynamicL1TRTTag))
120 
121  if flags.InDet.Align.DynamicL2TRTTag:
122  cfg.merge(addOverride(flags, '/TRT/AlignL2',
123  flags.InDet.Align.DynamicL2TRTTag))
124 
125  if ".db" in globalDB and flags.InDet.Align.readL3Only:
126  cfg.merge(addFolders(
127  flags,
128  f'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/Indet/AlignL3<tag>IndetAlign_test</tag>',
129  className = "AlignableTransformContainer"))
130 
131  cfg.merge(addFolders(
132  flags,
133  f'<dbConnection>sqlite://X;schema={globalDB};dbname=CONDBR2</dbConnection>/TRT/AlignL2<tag>TRTAlign_test</tag>',
134  className = "AlignableTransformContainer"))
135 
136  if flags.InDet.Align.PixelDistortionTag:
137  cfg.merge(addOverride(flags, '/Indet/PixelDist', flags.InDet.Align.PixelDistortionTag))
138 
139  cfg.merge(addFoldersSplitOnline(
140  flags, "TRT",
141  "/TRT/Onl/Cond/StatusHT", "/TRT/Cond/StatusHT",
142  className = 'TRTCond::StrawStatusMultChanContainer'))
143 
144  return cfg
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.IOVDbSvcConfig.addOverride
def addOverride(flags, folder, tag, db=None)
Definition: IOVDbSvcConfig.py:224
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:72
CondConfig.CondCfg
def CondCfg(flags, **kwargs)
Definition: CondConfig.py:12
python.IOVDbSvcConfig.addFoldersSplitOnline
def addFoldersSplitOnline(flags, detDb, onlineFolders, offlineFolders, className=None, extensible=False, addMCString='_OFL', splitMC=False, tag=None, forceDb=None, modifiers='')
Definition: IOVDbSvcConfig.py:153
python.CondProxyProviderConfig.CondProxyProviderCfg
def CondProxyProviderCfg(flags, poolFiles)
Definition: CondProxyProviderConfig.py:11