Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions | Variables
LArGMConfig Namespace Reference

Functions

def LArGMCfg (flags)
 

Variables

 flags = initConfigFlags()
 
 Files
 
 AtlasVersion
 
def acc = LArGMCfg(flags)
 
 f = open('LArGMCfg.pkl','wb')
 

Function Documentation

◆ LArGMCfg()

def LArGMConfig.LArGMCfg (   flags)

Definition at line 8 of file LArGMConfig.py.

8 def LArGMCfg(flags):
9  result=GeoModelCfg(flags)
10 
11  tool = CompFactory.LArDetectorToolNV(ApplyAlignments=flags.LAr.doAlign, EnableMBTS=flags.Detector.GeometryMBTS)
12  if flags.Common.ProductionStep != ProductionStep.Simulation and flags.Common.ProductionStep != ProductionStep.FastChain:
13  tool.GeometryConfig = "RECO"
14 
15  result.getPrimary().DetectorTools += [ tool ]
16 
17  if flags.LAr.doAlign:
18  if flags.Input.isMC:
19  #Monte Carlo case:
20  if not flags.GeoModel.Align.LegacyConditionsAccess:
21  result.merge(addFolders(flags,"/LAR/Align","LAR_OFL",className="DetCondKeyTrans"))
22  result.merge(addFolders(flags,"/LAR/LArCellPositionShift","LAR_OFL",className="CaloRec::CaloCellPositionShift"))
23  else:
24  result.merge(addFolders(flags,"/LAR/Align","LAR_OFL"))
25  result.merge(addFolders(flags,"/LAR/LArCellPositionShift","LAR_OFL"))
26  else:
27  result.merge(addFolders(flags,"/LAR/Align","LAR_ONL",className="DetCondKeyTrans"))
28  result.merge(addFolders(flags,"/LAR/LArCellPositionShift","LAR_ONL",className="CaloRec::CaloCellPositionShift"))
29 
30  if not flags.GeoModel.Align.LegacyConditionsAccess:
31  result.addCondAlgo(CompFactory.LArAlignCondAlg())
32  result.addCondAlgo(CompFactory.CaloAlignCondAlg())
33  AthReadAlg_ExtraInputs = set()
34  caloCellsInInput = "CaloCellContainer" in [i.split('#')[0] for i in flags.Input.TypedCollections]
35  sCellsInInput = False
36  caloCellKeys = []
37  if caloCellsInInput:
38  from SGComps.AddressRemappingConfig import AddressRemappingCfg
39  result.merge(AddressRemappingCfg())
40 
41  caloCellKeys = [i.split('#')[1] for i in flags.Input.TypedCollections if "CaloCellContainer"==i.split('#')[0] ]
42  for key in caloCellKeys:
43  if key != 'AllCalo':
44  sCellsInInput = True
45 
46  AthReadAlg_ExtraInputs.add(('CaloDetDescrManager', 'ConditionStore+CaloDetDescrManager'))
47  if (flags.GeoModel.Run >= LHCPeriod.Run3 and flags.Detector.GeometryTile) or sCellsInInput:
48  # TODO: avoid depending on Tile in SuperCell alignment
49  from TileGeoModel.TileGMConfig import TileGMCfg
50  result.merge(TileGMCfg(flags))
51  result.addCondAlgo(CompFactory.CaloSuperCellAlignCondAlg())
52  AthReadAlg_ExtraInputs.add(('CaloSuperCellDetDescrManager', 'ConditionStore+CaloSuperCellDetDescrManager'))
53 
54 
55  if caloCellsInInput:
56  for key in caloCellKeys:
57  AthReadAlg=CompFactory.AthReadAlg
58  AthReadAlg_CaloCellCont = AthReadAlg (f'AthReadAlg_{key}',
59  Key = f'CaloCellContainer/{key}',
60  Aliases = [],
61  ExtraInputs = AthReadAlg_ExtraInputs)
62  result.addCondAlgo(AthReadAlg_CaloCellCont)
63  else:
64  # Build unalinged CaloDetDescrManager instance in the Condition Store
65  if not flags.GeoModel.Align.LegacyConditionsAccess:
66  result.addCondAlgo(CompFactory.CaloAlignCondAlg(LArAlignmentStore="",CaloCellPositionShiftFolder=""))
67  if flags.GeoModel.Run >= LHCPeriod.Run3 and flags.Detector.GeometryTile and flags.Common.ProductionStep != ProductionStep.Overlay:
68  # TODO: avoid depending on Tile in SuperCell alignment
69  from TileGeoModel.TileGMConfig import TileGMCfg
70  result.merge(TileGMCfg(flags))
71  result.addCondAlgo(CompFactory.CaloSuperCellAlignCondAlg())
72 
73  return result
74 

Variable Documentation

◆ acc

def LArGMConfig.acc = LArGMCfg(flags)

Definition at line 84 of file LArGMConfig.py.

◆ AtlasVersion

LArGMConfig.AtlasVersion

Definition at line 81 of file LArGMConfig.py.

◆ f

LArGMConfig.f = open('LArGMCfg.pkl','wb')

Definition at line 85 of file LArGMConfig.py.

◆ Files

LArGMConfig.Files

Definition at line 80 of file LArGMConfig.py.

◆ flags

LArGMConfig.flags = initConfigFlags()

Definition at line 79 of file LArGMConfig.py.

AddressRemappingConfig.AddressRemappingCfg
def AddressRemappingCfg(renameMaps=[], overwriteMaps=[])
Definition: AddressRemappingConfig.py:10
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:81
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232
python.GeoModelConfig.GeoModelCfg
def GeoModelCfg(flags)
Definition: GeoModelConfig.py:16
TileGMConfig.TileGMCfg
def TileGMCfg(flags)
Definition: TileGMConfig.py:7