ATLAS Offline Software
Functions | Variables
LArConditionsTestConfig Namespace Reference

Functions

def LArConditionsTestCfg (flags)
 

Variables

 flags = initConfigFlags()
 
 AtlasVersion
 
 isMC
 
 GlobalTag
 
 TypedCollections
 
 MCCampaign
 
 cfg = MainServicesCfg(flags)
 
 msgsvc = cfg.getService("MessageSvc")
 
 debugLimit
 
 Format
 
 poolSvc = cfg.getService("PoolSvc")
 
 WriteCatalog
 
 catalogFile = Path(f"Catalog{flags.LArCondTest.Step}.xml")
 

Function Documentation

◆ LArConditionsTestCfg()

def LArConditionsTestConfig.LArConditionsTestCfg (   flags)

Definition at line 9 of file LArConditionsTestConfig.py.

9 def LArConditionsTestCfg(flags):
10  #Get basic services and cond-algos
11  result=ComponentAccumulator()
12  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
13  result.merge(LArGMCfg(flags))
14 
15  from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg, LArCalibIdMappingCfg
16  result.merge(LArOnOffIdMappingCfg(flags))
17  result.merge(LArCalibIdMappingCfg(flags))
18 
19 
20  LArConditionsTestAlg=CompFactory.LArConditionsTestAlg()
21  LArConditionsTestAlg.OutputLevel = 2
22  LArConditionsTestAlg.TestCondObjs = True
23  LArConditionsTestAlg.ApplyCorrections = True
24  if (flags.LArCondTest.Step==2):
25  #Reading case:
26  LArConditionsTestAlg.ReadCondObjs = True
27  LArConditionsTestAlg.WriteCondObjs = False
28  LArConditionsTestAlg.WriteCorrections = False
29  else:
30  #Writing case:
31  LArConditionsTestAlg.ReadCondObjs = False
32  LArConditionsTestAlg.WriteCondObjs = True
33  LArConditionsTestAlg.WriteCorrections = True
34  result.addEventAlgo(LArConditionsTestAlg)
35 
36  if (flags.LArCondTest.Step==1):
37  #Write to pool.root file
38  from RegistrationServices.OutputConditionsAlgConfig import OutputConditionsAlgCfg
39  result.merge(OutputConditionsAlgCfg(flags,
40  outputFile="LarCondTestNoReg.root",
41  ObjectList=["LArRampMC#/LArCalorimeter/LArTests/LArRampsSingleGroup",
42  "LArRampMC#/LArCalorimeter/LArTests/LArRampsSubDetectorGrouping",
43  "LArRampMC#/LArCalorimeter/LArTests/LArRampsFeedThroughGrouping" ],
44  IOVTagList=["mytag"],
45  Run1=3,
46  Run2=9999,
47  WriteIOV=False
48  ))
49  elif (flags.LArCondTest.Step==2):
50  #Read the pool-root file
51  from EventSelectorAthenaPool.CondProxyProviderConfig import CondProxyProviderCfg
52  result.merge(CondProxyProviderCfg(flags,"LarCondTestNoReg.root"))
53 
54 
55 
56  return result
57 

Variable Documentation

◆ AtlasVersion

LArConditionsTestConfig.AtlasVersion

Definition at line 64 of file LArConditionsTestConfig.py.

◆ catalogFile

LArConditionsTestConfig.catalogFile = Path(f"Catalog{flags.LArCondTest.Step}.xml")

Definition at line 83 of file LArConditionsTestConfig.py.

◆ cfg

LArConditionsTestConfig.cfg = MainServicesCfg(flags)

Definition at line 71 of file LArConditionsTestConfig.py.

◆ debugLimit

LArConditionsTestConfig.debugLimit

Definition at line 75 of file LArConditionsTestConfig.py.

◆ flags

LArConditionsTestConfig.flags = initConfigFlags()

Definition at line 61 of file LArConditionsTestConfig.py.

◆ Format

LArConditionsTestConfig.Format

Definition at line 77 of file LArConditionsTestConfig.py.

◆ GlobalTag

LArConditionsTestConfig.GlobalTag

Definition at line 66 of file LArConditionsTestConfig.py.

◆ isMC

LArConditionsTestConfig.isMC

Definition at line 65 of file LArConditionsTestConfig.py.

◆ MCCampaign

LArConditionsTestConfig.MCCampaign

Definition at line 68 of file LArConditionsTestConfig.py.

◆ msgsvc

LArConditionsTestConfig.msgsvc = cfg.getService("MessageSvc")

Definition at line 74 of file LArConditionsTestConfig.py.

◆ poolSvc

LArConditionsTestConfig.poolSvc = cfg.getService("PoolSvc")

Definition at line 79 of file LArConditionsTestConfig.py.

◆ TypedCollections

LArConditionsTestConfig.TypedCollections

Definition at line 67 of file LArConditionsTestConfig.py.

◆ WriteCatalog

LArConditionsTestConfig.WriteCatalog

Definition at line 80 of file LArConditionsTestConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
OutputConditionsAlgConfig.OutputConditionsAlgCfg
def OutputConditionsAlgCfg(flags, name="OutputConditionsAlg", outputFile='condobjs.root', **kwargs)
Definition: OutputConditionsAlgConfig.py:5
LArConditionsTestConfig.LArConditionsTestCfg
def LArConditionsTestCfg(flags)
Definition: LArConditionsTestConfig.py:9
LArCablingConfig.LArOnOffIdMappingCfg
def LArOnOffIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:62
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
python.CondProxyProviderConfig.CondProxyProviderCfg
def CondProxyProviderCfg(flags, poolFiles)
Definition: CondProxyProviderConfig.py:11
LArCablingConfig.LArCalibIdMappingCfg
def LArCalibIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:83