ATLAS Offline Software
Functions | Variables
LArCablingConfig Namespace Reference

Functions

def _larCablingCfg (configFlags, algo, folder, algName=None)
 
def _larLatomeCfg (configFlags, algo, folder, outkey)
 
def LArOnOffIdMappingCfg (configFlags)
 
def LArOnOffIdMappingSCCfg (configFlags)
 
def LArFebRodMappingCfg (configFlags)
 
def LArCalibIdMappingCfg (configFlags)
 
def LArCalibIdMappingSCCfg (configFlags)
 
def LArLATOMEMappingCfg (configFlags)
 
def LArIdMapCfg (configFlags)
 

Variables

 LArOnOffMappingAlg
 
 LArFebRodMappingAlg
 
 LArCalibLineMappingAlg
 
 LArLATOMEMappingAlg
 
 flags = initConfigFlags()
 
 Files
 
def acc = LArOnOffIdMappingCfg( flags )
 

Function Documentation

◆ _larCablingCfg()

def LArCablingConfig._larCablingCfg (   configFlags,
  algo,
  folder,
  algName = None 
)
private

Definition at line 8 of file LArCablingConfig.py.

8 def _larCablingCfg(configFlags,algo,folder,algName=None):
9  result=ComponentAccumulator()
10 
11  result.merge(IOVDbSvcCfg(configFlags))
12 
13  #MC folder-tag hack (See also ATCONDDB-49)
14  tagsperFolder={"/LAR/Identifier/OnOffIdMap":"LARIdentifierOnOffIdMap-012",
15  "/LAR/Identifier/FebRodMap":"LARIdentifierFebRodMap-005",
16  "/LAR/Identifier/CalibIdMap":"LARIdentifierCalibIdMap-012",
17  }
18 
19  if configFlags.Input.isMC:
20  db='LAR_OFL'
21  if folder in tagsperFolder:
22  ft=tagsperFolder[folder]
23  folderwithtag=folder+"<tag>"+ft+"</tag>"
24  else:
25  folderwithtag=folder
26  else:
27  db='LAR_ONL'
28  folderwithtag=folder
29 
30  if algName is None:
31  result.addCondAlgo(algo(ReadKey=folder),primary=True)
32  else:
33  result.addCondAlgo(algo(name=algName, ReadKey=folder),primary=True)
34  result.merge(addFolders(configFlags,folderwithtag,className="AthenaAttributeList",detDb=db))
35  return result
36 

◆ _larLatomeCfg()

def LArCablingConfig._larLatomeCfg (   configFlags,
  algo,
  folder,
  outkey 
)
private

Definition at line 37 of file LArCablingConfig.py.

37 def _larLatomeCfg(configFlags,algo,folder,outkey):
38  result=ComponentAccumulator()
39 
40  result.merge(IOVDbSvcCfg(configFlags))
41 
42  #MC folder-tag hack
43  tagsperFolder={"/LAR/IdentifierSC/LatomeMapping":"LARIdentifierSCLatomeMapping-UPD1-00"
44  }
45 
46  if configFlags.Input.isMC:
47  db='LAR_OFL'
48  if folder in tagsperFolder:
49  ft=tagsperFolder[folder]
50  folderwithtag=folder+"<tag>"+ft+"</tag>"
51  else:
52  folderwithtag=folder
53  else:
54  db='LAR_ONL'
55  folderwithtag=folder
56 
57  result.addCondAlgo(algo(ReadKey=folder,WriteKey=outkey),primary=True)
58  result.merge(addFolders(configFlags,folderwithtag,className="CondAttrListCollection",detDb=db))
59  #print (result)
60  return result
61 

◆ LArCalibIdMappingCfg()

def LArCablingConfig.LArCalibIdMappingCfg (   configFlags)

Definition at line 83 of file LArCablingConfig.py.

83 def LArCalibIdMappingCfg(configFlags):
84  return _larCablingCfg(configFlags,LArCalibLineMappingAlg,"/LAR/Identifier/CalibIdMap")
85 

◆ LArCalibIdMappingSCCfg()

def LArCablingConfig.LArCalibIdMappingSCCfg (   configFlags)

Definition at line 86 of file LArCablingConfig.py.

86 def LArCalibIdMappingSCCfg(configFlags):
87  result = ComponentAccumulator()
88  if not configFlags.Input.isMC:
89  result.merge(_larCablingCfg(configFlags,LArCalibLineMappingAlg,"/LAR/Identifier/CalibIdMap_SC","LArCalibLineMappingAlgSC"))
90  result.getCondAlgo("LArCalibLineMappingAlgSC").WriteKey="LArCalibIdMapSC"
91  result.getCondAlgo("LArCalibLineMappingAlgSC").isSuperCell=True
92  result.getCondAlgo("LArCalibLineMappingAlgSC").MaxCL=16
93  return result
94 

◆ LArFebRodMappingCfg()

def LArCablingConfig.LArFebRodMappingCfg (   configFlags)

Definition at line 80 of file LArCablingConfig.py.

80 def LArFebRodMappingCfg(configFlags):
81  return _larCablingCfg(configFlags,LArFebRodMappingAlg,"/LAR/Identifier/FebRodMap")
82 

◆ LArIdMapCfg()

def LArCablingConfig.LArIdMapCfg (   configFlags)
Return ComponentAccumulator configured with Identifier Map in POOL/COOL

Definition at line 99 of file LArCablingConfig.py.

99 def LArIdMapCfg(configFlags):
100  """Return ComponentAccumulator configured with Identifier Map in POOL/COOL"""
101  # replaces LArIdMap_MC_jobOptions.py or LArIdMap_comm_jobOptions.py
102  result = LArOnOffIdMappingCfg(configFlags)
103  result.merge(LArFebRodMappingCfg(configFlags))
104  result.merge(LArCalibIdMappingCfg(configFlags))
105  return result
106 
107 

◆ LArLATOMEMappingCfg()

def LArCablingConfig.LArLATOMEMappingCfg (   configFlags)

Definition at line 95 of file LArCablingConfig.py.

95 def LArLATOMEMappingCfg(configFlags):
96  if not configFlags.Input.isMC:
97  return _larLatomeCfg(configFlags,LArLATOMEMappingAlg,"/LAR/Identifier/LatomeMapping","LArLATOMEMap")
98 

◆ LArOnOffIdMappingCfg()

def LArCablingConfig.LArOnOffIdMappingCfg (   configFlags)

Definition at line 62 of file LArCablingConfig.py.

62 def LArOnOffIdMappingCfg(configFlags):
63  return _larCablingCfg(configFlags,LArOnOffMappingAlg,"/LAR/Identifier/OnOffIdMap")
64 

◆ LArOnOffIdMappingSCCfg()

def LArCablingConfig.LArOnOffIdMappingSCCfg (   configFlags)

Definition at line 65 of file LArCablingConfig.py.

65 def LArOnOffIdMappingSCCfg(configFlags):
66  result = ComponentAccumulator()
67  # mapping requires the geometry to be loaded
68  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
69  result.merge(LArGMCfg(configFlags))
70  if configFlags.Input.isMC:
71  result.merge(_larCablingCfg(configFlags,LArOnOffMappingAlg,"/LAR/IdentifierOfl/OnOffIdMap_SC","LArOnOffMappingAlgSC"))
72  from IOVDbSvc.IOVDbSvcConfig import addOverride
73  result.merge(addOverride(configFlags, "/LAR/IdentifierOfl/OnOffIdMap_SC", "LARIdentifierOflOnOffIdMap_SC-000")) # FIXME temporary?
74  else:
75  result.merge(_larCablingCfg(configFlags,LArOnOffMappingAlg,"/LAR/Identifier/OnOffIdMap_SC","LArOnOffMappingAlgSC"))
76  result.getCondAlgo("LArOnOffMappingAlgSC").WriteKey = "LArOnOffIdMapSC"
77  result.getCondAlgo("LArOnOffMappingAlgSC").isSuperCell = True
78  return result
79 

Variable Documentation

◆ acc

def LArCablingConfig.acc = LArOnOffIdMappingCfg( flags )

Definition at line 116 of file LArCablingConfig.py.

◆ Files

LArCablingConfig.Files

Definition at line 113 of file LArCablingConfig.py.

◆ flags

LArCablingConfig.flags = initConfigFlags()

Definition at line 112 of file LArCablingConfig.py.

◆ LArCalibLineMappingAlg

LArCablingConfig.LArCalibLineMappingAlg

Definition at line 6 of file LArCablingConfig.py.

◆ LArFebRodMappingAlg

LArCablingConfig.LArFebRodMappingAlg

Definition at line 6 of file LArCablingConfig.py.

◆ LArLATOMEMappingAlg

LArCablingConfig.LArLATOMEMappingAlg

Definition at line 6 of file LArCablingConfig.py.

◆ LArOnOffMappingAlg

LArCablingConfig.LArOnOffMappingAlg

Definition at line 6 of file LArCablingConfig.py.

LArCablingConfig.LArOnOffIdMappingSCCfg
def LArOnOffIdMappingSCCfg(configFlags)
Definition: LArCablingConfig.py:65
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
LArCablingConfig._larLatomeCfg
def _larLatomeCfg(configFlags, algo, folder, outkey)
Definition: LArCablingConfig.py:37
LArCablingConfig.LArFebRodMappingCfg
def LArFebRodMappingCfg(configFlags)
Definition: LArCablingConfig.py:80
LArCablingConfig._larCablingCfg
def _larCablingCfg(configFlags, algo, folder, algName=None)
Definition: LArCablingConfig.py:8
LArCablingConfig.LArLATOMEMappingCfg
def LArLATOMEMappingCfg(configFlags)
Definition: LArCablingConfig.py:95
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
python.IOVDbSvcConfig.IOVDbSvcCfg
def IOVDbSvcCfg(flags, **kwargs)
Definition: IOVDbSvcConfig.py:19
LArCablingConfig.LArOnOffIdMappingCfg
def LArOnOffIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:62
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
LArCablingConfig.LArCalibIdMappingSCCfg
def LArCalibIdMappingSCCfg(configFlags)
Definition: LArCablingConfig.py:86
LArCablingConfig.LArIdMapCfg
def LArIdMapCfg(configFlags)
Definition: LArCablingConfig.py:99
LArCablingConfig.LArCalibIdMappingCfg
def LArCalibIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:83