ATLAS Offline Software
Functions | Variables
python.LArHVScaleConfig Namespace Reference

Functions

def LArHVScaleCfg (configFlags)
 

Variables

 flags = initConfigFlags()
 
int nThreads = 1
 
 NumThreads
 
 ShowDataDeps
 
 ShowDataFlow
 
 ShowControlFlow
 
 NumConcurrentEvents
 
 Files
 
 cfg = MainServicesCfg(flags)
 

Function Documentation

◆ LArHVScaleCfg()

def python.LArHVScaleConfig.LArHVScaleCfg (   configFlags)

Definition at line 8 of file LArHVScaleConfig.py.

8 def LArHVScaleCfg(configFlags):
9  result=ComponentAccumulator()
10 
11  from LArBadChannelTool.LArBadChannelConfig import LArBadChannelCfg, LArBadFebCfg
12 
13  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
14  result.merge(LArGMCfg(configFlags))
15 
16  from IOVDbSvc.IOVDbSvcConfig import addFolders
17  LArHVCondAlg=CompFactory.LArHVCondAlg
18 
19  if configFlags.Input.isMC:
20  result.merge(addFolders(configFlags,["/LAR/Identifier/HVLineToElectrodeMap<tag>LARHVLineToElectrodeMap-001</tag>"], "LAR_OFL", className="AthenaAttributeList"))
21 
22  LArHVIdMappingAlg=CompFactory.LArHVIdMappingAlg
23  hvmapalg = LArHVIdMappingAlg(ReadKey="/LAR/Identifier/HVLineToElectrodeMap",WriteKey="LArHVIdMap")
24  result.addCondAlgo(hvmapalg)
25 
26  result.merge(LArBadFebCfg(configFlags))
27 
28  result.addCondAlgo(LArHVCondAlg(doHV=False, doAffectedHV=False))
29 
30  elif not configFlags.Common.isOnline:
31  result.merge(addFolders(configFlags,["/LAR/DCS/HV/BARREl/I16"], "DCS_OFL", className="CondAttrListCollection"))
32  result.merge(addFolders(configFlags,["/LAR/DCS/HV/BARREL/I8"], "DCS_OFL", className="CondAttrListCollection"))
33 
34  result.merge(addFolders(configFlags,["/LAR/IdentifierOfl/HVLineToElectrodeMap"], "LAR_OFL", className="AthenaAttributeList"))
35  result.merge(addFolders(configFlags,["/LAR/HVPathologiesOfl/Pathologies"], "LAR_OFL", className="AthenaAttributeList"))
36  if configFlags.GeoModel.Run is not LHCPeriod.Run1:
37  result.merge(addFolders(configFlags,["/LAR/HVPathologiesOfl/Rvalues"], "LAR_OFL", className="AthenaAttributeList"))
38 
39  result.merge(LArBadChannelCfg(configFlags))
40  result.merge(LArBadFebCfg(configFlags))
41 
42  LArHVIdMappingAlg=CompFactory.LArHVIdMappingAlg
43  hvmapalg = LArHVIdMappingAlg(ReadKey="/LAR/IdentifierOfl/HVLineToElectrodeMap",WriteKey="LArHVIdMap")
44  result.addCondAlgo(hvmapalg)
45 
46  LArHVPathologyDbCondAlg=CompFactory.LArHVPathologyDbCondAlg
47  hvpath = LArHVPathologyDbCondAlg(PathologyFolder="/LAR/HVPathologiesOfl/Pathologies",
48  HVMappingKey="LArHVIdMap",
49  HVPAthologyKey="LArHVPathology")
50  result.addCondAlgo(hvpath)
51 
52  from LArConfiguration.LArElecCalibDBConfig import LArElecCalibDBCfg
53  result.merge(LArElecCalibDBCfg(configFlags,["HVScaleCorr",]))
54 
55  if configFlags.GeoModel.Run is not LHCPeriod.Run1:
56  hvcond = LArHVCondAlg(HVPathologies="LArHVPathology")
57  else:
58  hvcond = LArHVCondAlg(HVPathologies="LArHVPathology",doR=False)
59 
60  hvcond.UndoOnlineHVCorr=True
61  hvcond.keyOutputCorr= "LArHVScaleCorrRecomputed"
62  result.addCondAlgo(hvcond)
63 
64  return result
65 

Variable Documentation

◆ cfg

python.LArHVScaleConfig.cfg = MainServicesCfg(flags)

Definition at line 84 of file LArHVScaleConfig.py.

◆ Files

python.LArHVScaleConfig.Files

Definition at line 79 of file LArHVScaleConfig.py.

◆ flags

python.LArHVScaleConfig.flags = initConfigFlags()

Definition at line 69 of file LArHVScaleConfig.py.

◆ nThreads

int python.LArHVScaleConfig.nThreads = 1

Definition at line 71 of file LArHVScaleConfig.py.

◆ NumConcurrentEvents

python.LArHVScaleConfig.NumConcurrentEvents

Definition at line 77 of file LArHVScaleConfig.py.

◆ NumThreads

python.LArHVScaleConfig.NumThreads

Definition at line 72 of file LArHVScaleConfig.py.

◆ ShowControlFlow

python.LArHVScaleConfig.ShowControlFlow

Definition at line 76 of file LArHVScaleConfig.py.

◆ ShowDataDeps

python.LArHVScaleConfig.ShowDataDeps

Definition at line 74 of file LArHVScaleConfig.py.

◆ ShowDataFlow

python.LArHVScaleConfig.ShowDataFlow

Definition at line 75 of file LArHVScaleConfig.py.

python.LArElecCalibDBConfig.LArElecCalibDBCfg
def LArElecCalibDBCfg(flags, condObjs)
Definition: LArElecCalibDBConfig.py:47
LArHVIdMappingAlg
Definition: LArHVIdMappingAlg.h:15
LArHVCondAlg
Definition: LArHVCondAlg.h:55
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.LArBadChannelConfig.LArBadChannelCfg
def LArBadChannelCfg(configFlags, tag=None, isSC=False)
Definition: LArBadChannelConfig.py:8
python.LArBadChannelConfig.LArBadFebCfg
def LArBadFebCfg(configFlags, tag=None)
Definition: LArBadChannelConfig.py:45
LArHVPathologyDbCondAlg
Definition: LArHVPathologyDbCondAlg.h:29
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:72
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
python.LArHVScaleConfig.LArHVScaleCfg
def LArHVScaleCfg(configFlags)
Definition: LArHVScaleConfig.py:8