ATLAS Offline Software
Loading...
Searching...
No Matches
python.LArADC2MeVCondAlgConfig Namespace Reference

Functions

 LArADC2MeVCondAlgCfg (flags)

Variables

 flags1 = initConfigFlags()
 Files
 AtlasVersion
 acc1 = LArADC2MeVCondAlgCfg (flags1)
 summariseProps
 flags2 = initConfigFlags()
 acc2 = LArADC2MeVCondAlgCfg (flags2)

Function Documentation

◆ LArADC2MeVCondAlgCfg()

LArADC2MeVCondAlgCfg ( flags)

Definition at line 7 of file LArADC2MeVCondAlgConfig.py.

7def LArADC2MeVCondAlgCfg(flags):
8 from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg
9 from LArConfiguration.LArElecCalibDBConfig import LArElecCalibDBCfg
10 from LArGeoAlgsNV.LArGMConfig import LArGMCfg
11
12 result=ComponentAccumulator()
13 result.merge(LArOnOffIdMappingCfg(flags))
14 result.merge(LArGMCfg(flags)) #Needed for identifier helpers
15
16 theADC2MeVCondAlg=CompFactory.LArADC2MeVCondAlg(LArADC2MeVKey = 'LArADC2MeV')
17
18 theADC2MeVCondAlg.NGains= 2 if flags.GeoModel.Run==LHCPeriod.Run4 and flags.IOVDb.UseCREST else 3
19
20 if flags.Input.isMC:
21 requiredConditions=["Ramp","DAC2uA","uA2MeV","MphysOverMcal","HVScaleCorr"]
22 theADC2MeVCondAlg.LAruA2MeVKey="LAruA2MeVSym"
23 theADC2MeVCondAlg.LArDAC2uAKey="LArDAC2uASym"
24 theADC2MeVCondAlg.LArRampKey="LArRampSym"
25 theADC2MeVCondAlg.LArMphysOverMcalKey="LArMphysOverMcalSym"
26 theADC2MeVCondAlg.LArHVScaleCorrKey="LArHVScaleCorr"
27 theADC2MeVCondAlg.UseFEBGainTresholds=False
28 else: # not MC:
29 requiredConditions=["Ramp","DAC2uA","uA2MeV","MphysOverMcal","HVScaleCorr"]
30 from LArRecUtils.LArFebConfigCondAlgConfig import LArFebConfigCondAlgCfg
31 if 'COMP200' in flags.IOVDb.DatabaseInstance: # Run1 case
32 theADC2MeVCondAlg.LAruA2MeVKey="LAruA2MeVSym"
33 theADC2MeVCondAlg.LArDAC2uAKey="LArDAC2uASym"
34 result.merge(LArFebConfigCondAlgCfg(flags))
35
36 result.merge(LArElecCalibDBCfg(flags,requiredConditions))
37 result.addCondAlgo(theADC2MeVCondAlg,primary=True)
38 return result
39
40

Variable Documentation

◆ acc1

python.LArADC2MeVCondAlgConfig.acc1 = LArADC2MeVCondAlgCfg (flags1)

Definition at line 50 of file LArADC2MeVCondAlgConfig.py.

◆ acc2

python.LArADC2MeVCondAlgConfig.acc2 = LArADC2MeVCondAlgCfg (flags2)

Definition at line 60 of file LArADC2MeVCondAlgConfig.py.

◆ AtlasVersion

python.LArADC2MeVCondAlgConfig.AtlasVersion

Definition at line 48 of file LArADC2MeVCondAlgConfig.py.

◆ Files

python.LArADC2MeVCondAlgConfig.Files

Definition at line 47 of file LArADC2MeVCondAlgConfig.py.

◆ flags1

python.LArADC2MeVCondAlgConfig.flags1 = initConfigFlags()

Definition at line 46 of file LArADC2MeVCondAlgConfig.py.

◆ flags2

python.LArADC2MeVCondAlgConfig.flags2 = initConfigFlags()

Definition at line 56 of file LArADC2MeVCondAlgConfig.py.

◆ summariseProps

python.LArADC2MeVCondAlgConfig.summariseProps

Definition at line 51 of file LArADC2MeVCondAlgConfig.py.