ATLAS Offline Software
Functions | Variables
python.LArCalib_HVCorrConfig Namespace Reference

Functions

def 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
 
 cfg = MainEvgenServicesCfg(ConfigFlags)
 
 FirstLB
 

Function Documentation

◆ HVCorrConfig()

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

Definition at line 7 of file LArCalib_HVCorrConfig.py.

7 def HVCorrConfig(flags,outputName="hvcorr",runOut=0, lbOut=0):
8  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
9  result=LArGMCfg(flags)
10 
11  #Use the standard LArHVScaleCfg and adjust properties afterwards as needed
12  from LArCalibUtils.LArHVScaleConfig import LArHVScaleCfg
13 
14  result.merge(LArHVScaleCfg(flags))
15  result.getCondAlgo("LArHVCondAlg").UndoOnlineHVCorr=False
16  result.getCondAlgo("LArHVCondAlg").keyOutputCorr="NewLArHVScaleCorr"
17 
18 
19  #The LArHVCorrMaker creates a flat blob in a CondAttrListCollection
20  #Input: The HV Scale Correction computed by the LArHVCondAlg based on the DCS HV values
21  result.addEventAlgo(CompFactory.LArHVCorrMaker(LArHVScaleCorr="NewLArHVScaleCorr"))
22 
23  #Ntuple writing ...
24  from LArCalibTools.LArCalib_HVScale2NtupleConfig import LArHVScaleCorr2NtupleCfg
25  result.merge(LArHVScaleCorr2NtupleCfg(flags,rootfile=outputName+'.root'))
26  result.getEventAlgo("LArHVScaleCorr2Ntuple").ContainerKey="NewLArHVScaleCorr"
27 
28  #sqlite writing ...
29  from RegistrationServices.OutputConditionsAlgConfig import OutputConditionsAlgCfg
30  result.merge(OutputConditionsAlgCfg(flags,
31  outputFile="dummy.root",
32  ObjectList=["CondAttrListCollection#/LAR/ElecCalibFlat/HVScaleCorr",],
33  Run1=runOut,
34  LB1=lbOut
35  ))
36 
37 
38 
39  #RegistrationSvc
40  result.addService(CompFactory.IOVRegistrationSvc(RecreateFolders = True,
41  SVFolder=True,
42  OverrideNames = ["HVScaleCorr"],
43  OverrideTypes = ["Blob16M"],
44  ))
45 
46  result.getService("IOVDbSvc").DBInstance=""
47  return result
48 
49 

Variable Documentation

◆ args

python.LArCalib_HVCorrConfig.args = parser.parse_args()

Definition at line 62 of file LArCalib_HVCorrConfig.py.

◆ AtlasVersion

python.LArCalib_HVCorrConfig.AtlasVersion

Definition at line 107 of file LArCalib_HVCorrConfig.py.

◆ cfg

python.LArCalib_HVCorrConfig.cfg = MainEvgenServicesCfg(ConfigFlags)

Definition at line 110 of file LArCalib_HVCorrConfig.py.

◆ ConfigFlags

python.LArCalib_HVCorrConfig.ConfigFlags = initConfigFlags()

Definition at line 96 of file LArCalib_HVCorrConfig.py.

◆ DatabaseInstance

python.LArCalib_HVCorrConfig.DatabaseInstance

Definition at line 105 of file LArCalib_HVCorrConfig.py.

◆ days

python.LArCalib_HVCorrConfig.days

Definition at line 85 of file LArCalib_HVCorrConfig.py.

◆ DBConnection

python.LArCalib_HVCorrConfig.DBConnection

Definition at line 106 of file LArCalib_HVCorrConfig.py.

◆ default

python.LArCalib_HVCorrConfig.default

Definition at line 57 of file LArCalib_HVCorrConfig.py.

◆ Files

python.LArCalib_HVCorrConfig.Files

Definition at line 104 of file LArCalib_HVCorrConfig.py.

◆ FirstLB

python.LArCalib_HVCorrConfig.FirstLB

Definition at line 112 of file LArCalib_HVCorrConfig.py.

◆ GlobalTag

python.LArCalib_HVCorrConfig.GlobalTag

Definition at line 99 of file LArCalib_HVCorrConfig.py.

◆ help

python.LArCalib_HVCorrConfig.help

Definition at line 56 of file LArCalib_HVCorrConfig.py.

◆ hours

python.LArCalib_HVCorrConfig.hours

Definition at line 86 of file LArCalib_HVCorrConfig.py.

◆ int

python.LArCalib_HVCorrConfig.int

Definition at line 57 of file LArCalib_HVCorrConfig.py.

◆ LumiBlockNumbers

python.LArCalib_HVCorrConfig.LumiBlockNumbers

Definition at line 102 of file LArCalib_HVCorrConfig.py.

◆ nargs

python.LArCalib_HVCorrConfig.nargs

Definition at line 57 of file LArCalib_HVCorrConfig.py.

◆ outputName

python.LArCalib_HVCorrConfig.outputName = args.output

Definition at line 92 of file LArCalib_HVCorrConfig.py.

◆ parser

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

Definition at line 55 of file LArCalib_HVCorrConfig.py.

◆ remainder

python.LArCalib_HVCorrConfig.remainder

Definition at line 85 of file LArCalib_HVCorrConfig.py.

◆ rlb

list python.LArCalib_HVCorrConfig.rlb = TimeStampToRunLumi(TimeStamp_ns)

Definition at line 74 of file LArCalib_HVCorrConfig.py.

◆ RunNumbers

python.LArCalib_HVCorrConfig.RunNumbers

Definition at line 101 of file LArCalib_HVCorrConfig.py.

◆ seconds

python.LArCalib_HVCorrConfig.seconds

Definition at line 86 of file LArCalib_HVCorrConfig.py.

◆ str

python.LArCalib_HVCorrConfig.str

Definition at line 59 of file LArCalib_HVCorrConfig.py.

◆ timediff

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

Definition at line 81 of file LArCalib_HVCorrConfig.py.

◆ TimeStamp

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

Definition at line 65 of file LArCalib_HVCorrConfig.py.

◆ TimeStamp_ns

int python.LArCalib_HVCorrConfig.TimeStamp_ns = TimeStamp*1000000000

Definition at line 66 of file LArCalib_HVCorrConfig.py.

◆ TimeStamps

python.LArCalib_HVCorrConfig.TimeStamps

Definition at line 103 of file LArCalib_HVCorrConfig.py.

◆ ts

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

Definition at line 64 of file LArCalib_HVCorrConfig.py.

◆ type

python.LArCalib_HVCorrConfig.type

Definition at line 57 of file LArCalib_HVCorrConfig.py.

python.LArCalib_HVCorrConfig.HVCorrConfig
def HVCorrConfig(flags, outputName="hvcorr", runOut=0, lbOut=0)
Definition: LArCalib_HVCorrConfig.py:7
OutputConditionsAlgConfig.OutputConditionsAlgCfg
def OutputConditionsAlgCfg(flags, name="OutputConditionsAlg", outputFile='condobjs.root', **kwargs)
Definition: OutputConditionsAlgConfig.py:5
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
LArCalib_HVScale2NtupleConfig.LArHVScaleCorr2NtupleCfg
def LArHVScaleCorr2NtupleCfg(flags, rootfile="hvcorr_read.root")
Definition: LArCalib_HVScale2NtupleConfig.py:6
python.LArHVScaleConfig.LArHVScaleCfg
def LArHVScaleCfg(configFlags)
Definition: LArHVScaleConfig.py:8