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

Functions

 HVCorrConfig (flags, outputName="hvcorr", runOut=0, lbOut=0)

Variables

 parser = argparse.ArgumentParser(description="Recalclulate HV corrections based on DCS values")
 help
 type
 int
 nargs
 default
 str
 args = parser.parse_args()
 ts = strptime(args.datestamp+'/UTC','%Y-%m-%d:%H:%M:%S/%Z')
 TimeStamp = int(timegm(ts))
int TimeStamp_ns = TimeStamp*1000000000
 rlb = TimeStampToRunLumi(TimeStamp_ns)
 timediff = int(time()-TimeStamp)
 days
 remainder
 hours
 seconds
 outputName = args.output
 ConfigFlags = initConfigFlags()
 GlobalTag
 RunNumbers
 LumiBlockNumbers
 TimeStamps
 Files
 DatabaseInstance
 DBConnection
 AtlasVersion
 OutputLevel
 cfg = MainEvgenServicesCfg(ConfigFlags)
 FirstLB

Function Documentation

◆ HVCorrConfig()

python.LArCalib_HVCorrConfig.HVCorrConfig ( flags,
outputName = "hvcorr",
runOut = 0,
lbOut = 0 )

Definition at line 7 of file LArCalib_HVCorrConfig.py.

7def HVCorrConfig(flags,outputName="hvcorr",runOut=0, lbOut=0):
8
9 from LArGeoAlgsNV.LArGMConfig import LArGMCfg
10 result=LArGMCfg(flags)
11
12 #Use the standard LArHVScaleCfg and adjust properties afterwards as needed
13 from LArCalibUtils.LArHVScaleConfig import LArHVScaleCfg
14
15 result.merge(LArHVScaleCfg(flags))
16 result.getCondAlgo("LArHVCondAlg").UndoOnlineHVCorr=False
17 result.getCondAlgo("LArHVCondAlg").keyOutputCorr="NewLArHVScaleCorr"
18
19 from LArCabling.LArCablingConfig import LArOnOffIdMappingSCCfg
20 result.merge(LArOnOffIdMappingSCCfg(flags))
21 result.addEventAlgo(CompFactory.LArHVCorrToSCHVCorr(ContainerKey="NewLArHVScaleCorr",OutputKey="NewSCLArHVScaleCorr",
22 OutputFolder="/LAR/ElecCalibFlatSC/HVScaleCorrNew",
23 IsHeavyIons=False, PatchInHeavyIons=1.0,
24 PhysicsWeights="TrigT1CaloCalibUtils/HVcorrPhysicsWeights.txt"))
25
26 #The LArHVCorrMaker creates a flat blob in a CondAttrListCollection
27 #Input: The HV Scale Correction computed by the LArHVCondAlg based on the DCS HV values
28 result.addEventAlgo(CompFactory.LArHVCorrMaker(LArHVScaleCorr="NewLArHVScaleCorr",folderName="/LAR/ElecCalibFlat/HVScaleCorrNew"))
29
32
33 #Ntuple writing ...
34 from LArCalibTools.LArCalib_HVScale2NtupleConfig import LArHVScaleCorr2NtupleCfg
35 result.merge(LArHVScaleCorr2NtupleCfg(flags,rootfile=outputName+'_ntuple.root',addSC=True))
36 result.getEventAlgo("LArHVScaleCorr2Ntuple").ContainerKey="NewLArHVScaleCorr"
37 result.getEventAlgo("LArSCHVScaleCorr2Ntuple").ContainerKey="NewSCLArHVScaleCorr"
38 result.getEventAlgo("LArSCHVScaleCorr2Ntuple").NtuplePath="/NTUPLES/FILE1/HVSCALESC"
39
40 #sqlite writing ...
41 from RegistrationServices.OutputConditionsAlgConfig import OutputConditionsAlgCfg
42 result.merge(OutputConditionsAlgCfg(flags,
43 outputFile="dummy.root",
44 ObjectList=["CondAttrListCollection#/LAR/ElecCalibFlat/HVScaleCorrNew#/LAR/ElecCalibFlat/HVScaleCorr",
45 "CondAttrListCollection#/LAR/ElecCalibFlatSC/HVScaleCorrNew#/LAR/ElecCalibFlatSC/HVScaleCorr",],
46 Run1=runOut,
47 LB1=lbOut
48 ))
49
50
51
52 #RegistrationSvc
53 result.addService(CompFactory.IOVRegistrationSvc(RecreateFolders = True,
54 SVFolder=True,
55 OverrideNames = ["HVScaleCorr"],
56 OverrideTypes = ["Blob16M"],
57 ))
58
59 result.getService("IOVDbSvc").DBInstance=""
60 return result
61
62

Variable Documentation

◆ args

python.LArCalib_HVCorrConfig.args = parser.parse_args()

Definition at line 76 of file LArCalib_HVCorrConfig.py.

◆ AtlasVersion

python.LArCalib_HVCorrConfig.AtlasVersion

Definition at line 121 of file LArCalib_HVCorrConfig.py.

◆ cfg

python.LArCalib_HVCorrConfig.cfg = MainEvgenServicesCfg(ConfigFlags)

Definition at line 124 of file LArCalib_HVCorrConfig.py.

◆ ConfigFlags

python.LArCalib_HVCorrConfig.ConfigFlags = initConfigFlags()

Definition at line 110 of file LArCalib_HVCorrConfig.py.

◆ DatabaseInstance

python.LArCalib_HVCorrConfig.DatabaseInstance

Definition at line 119 of file LArCalib_HVCorrConfig.py.

◆ days

python.LArCalib_HVCorrConfig.days

Definition at line 99 of file LArCalib_HVCorrConfig.py.

◆ DBConnection

python.LArCalib_HVCorrConfig.DBConnection

Definition at line 120 of file LArCalib_HVCorrConfig.py.

◆ default

python.LArCalib_HVCorrConfig.default

Definition at line 70 of file LArCalib_HVCorrConfig.py.

◆ Files

python.LArCalib_HVCorrConfig.Files

Definition at line 118 of file LArCalib_HVCorrConfig.py.

◆ FirstLB

python.LArCalib_HVCorrConfig.FirstLB

Definition at line 126 of file LArCalib_HVCorrConfig.py.

◆ GlobalTag

python.LArCalib_HVCorrConfig.GlobalTag

Definition at line 113 of file LArCalib_HVCorrConfig.py.

◆ help

python.LArCalib_HVCorrConfig.help

Definition at line 69 of file LArCalib_HVCorrConfig.py.

◆ hours

python.LArCalib_HVCorrConfig.hours

Definition at line 100 of file LArCalib_HVCorrConfig.py.

◆ int

python.LArCalib_HVCorrConfig.int

Definition at line 70 of file LArCalib_HVCorrConfig.py.

◆ LumiBlockNumbers

python.LArCalib_HVCorrConfig.LumiBlockNumbers

Definition at line 116 of file LArCalib_HVCorrConfig.py.

◆ nargs

python.LArCalib_HVCorrConfig.nargs

Definition at line 70 of file LArCalib_HVCorrConfig.py.

◆ OutputLevel

python.LArCalib_HVCorrConfig.OutputLevel

Definition at line 122 of file LArCalib_HVCorrConfig.py.

◆ outputName

python.LArCalib_HVCorrConfig.outputName = args.output

Definition at line 106 of file LArCalib_HVCorrConfig.py.

◆ parser

python.LArCalib_HVCorrConfig.parser = argparse.ArgumentParser(description="Recalclulate HV corrections based on DCS values")

Definition at line 68 of file LArCalib_HVCorrConfig.py.

◆ remainder

python.LArCalib_HVCorrConfig.remainder

Definition at line 99 of file LArCalib_HVCorrConfig.py.

◆ rlb

list python.LArCalib_HVCorrConfig.rlb = TimeStampToRunLumi(TimeStamp_ns)

Definition at line 88 of file LArCalib_HVCorrConfig.py.

◆ RunNumbers

python.LArCalib_HVCorrConfig.RunNumbers

Definition at line 115 of file LArCalib_HVCorrConfig.py.

◆ seconds

python.LArCalib_HVCorrConfig.seconds

Definition at line 100 of file LArCalib_HVCorrConfig.py.

◆ str

python.LArCalib_HVCorrConfig.str

Definition at line 72 of file LArCalib_HVCorrConfig.py.

◆ timediff

python.LArCalib_HVCorrConfig.timediff = int(time()-TimeStamp)

Definition at line 95 of file LArCalib_HVCorrConfig.py.

◆ TimeStamp

python.LArCalib_HVCorrConfig.TimeStamp = int(timegm(ts))

Definition at line 79 of file LArCalib_HVCorrConfig.py.

◆ TimeStamp_ns

int python.LArCalib_HVCorrConfig.TimeStamp_ns = TimeStamp*1000000000

Definition at line 80 of file LArCalib_HVCorrConfig.py.

◆ TimeStamps

python.LArCalib_HVCorrConfig.TimeStamps

Definition at line 117 of file LArCalib_HVCorrConfig.py.

◆ ts

python.LArCalib_HVCorrConfig.ts = strptime(args.datestamp+'/UTC','%Y-%m-%d:%H:%M:%S/%Z')

Definition at line 78 of file LArCalib_HVCorrConfig.py.

◆ type

python.LArCalib_HVCorrConfig.type

Definition at line 70 of file LArCalib_HVCorrConfig.py.