Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
 
 OutputLevel
 
 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 
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  PhysicsWeights="TrigT1CaloCalibUtils/HVcorrPhysicsWeights.txt"))
24 
25  #The LArHVCorrMaker creates a flat blob in a CondAttrListCollection
26  #Input: The HV Scale Correction computed by the LArHVCondAlg based on the DCS HV values
27  result.addEventAlgo(CompFactory.LArHVCorrMaker(LArHVScaleCorr="NewLArHVScaleCorr",folderName="/LAR/ElecCalibFlat/HVScaleCorrNew"))
28 
31 
32  #Ntuple writing ...
33  from LArCalibTools.LArCalib_HVScale2NtupleConfig import LArHVScaleCorr2NtupleCfg
34  result.merge(LArHVScaleCorr2NtupleCfg(flags,rootfile=outputName+'_ntuple.root',addSC=True))
35  result.getEventAlgo("LArHVScaleCorr2Ntuple").ContainerKey="NewLArHVScaleCorr"
36  result.getEventAlgo("LArSCHVScaleCorr2Ntuple").ContainerKey="NewSCLArHVScaleCorr"
37  result.getEventAlgo("LArSCHVScaleCorr2Ntuple").NtuplePath="/NTUPLES/FILE1/HVSCALESC"
38 
39  #sqlite writing ...
40  from RegistrationServices.OutputConditionsAlgConfig import OutputConditionsAlgCfg
41  result.merge(OutputConditionsAlgCfg(flags,
42  outputFile="dummy.root",
43  ObjectList=["CondAttrListCollection#/LAR/ElecCalibFlat/HVScaleCorrNew#/LAR/ElecCalibFlat/HVScaleCorr",
44  "CondAttrListCollection#/LAR/ElecCalibFlatSC/HVScaleCorrNew#/LAR/ElecCalibFlatSC/HVScaleCorr",],
45  Run1=runOut,
46  LB1=lbOut
47  ))
48 
49 
50 
51  #RegistrationSvc
52  result.addService(CompFactory.IOVRegistrationSvc(RecreateFolders = True,
53  SVFolder=True,
54  OverrideNames = ["HVScaleCorr"],
55  OverrideTypes = ["Blob16M"],
56  ))
57 
58  result.getService("IOVDbSvc").DBInstance=""
59  return result
60 
61 

Variable Documentation

◆ args

python.LArCalib_HVCorrConfig.args = parser.parse_args()

Definition at line 75 of file LArCalib_HVCorrConfig.py.

◆ AtlasVersion

python.LArCalib_HVCorrConfig.AtlasVersion

Definition at line 120 of file LArCalib_HVCorrConfig.py.

◆ cfg

python.LArCalib_HVCorrConfig.cfg = MainEvgenServicesCfg(ConfigFlags)

Definition at line 123 of file LArCalib_HVCorrConfig.py.

◆ ConfigFlags

python.LArCalib_HVCorrConfig.ConfigFlags = initConfigFlags()

Definition at line 109 of file LArCalib_HVCorrConfig.py.

◆ DatabaseInstance

python.LArCalib_HVCorrConfig.DatabaseInstance

Definition at line 118 of file LArCalib_HVCorrConfig.py.

◆ days

python.LArCalib_HVCorrConfig.days

Definition at line 98 of file LArCalib_HVCorrConfig.py.

◆ DBConnection

python.LArCalib_HVCorrConfig.DBConnection

Definition at line 119 of file LArCalib_HVCorrConfig.py.

◆ default

python.LArCalib_HVCorrConfig.default

Definition at line 69 of file LArCalib_HVCorrConfig.py.

◆ Files

python.LArCalib_HVCorrConfig.Files

Definition at line 117 of file LArCalib_HVCorrConfig.py.

◆ FirstLB

python.LArCalib_HVCorrConfig.FirstLB

Definition at line 125 of file LArCalib_HVCorrConfig.py.

◆ GlobalTag

python.LArCalib_HVCorrConfig.GlobalTag

Definition at line 112 of file LArCalib_HVCorrConfig.py.

◆ help

python.LArCalib_HVCorrConfig.help

Definition at line 68 of file LArCalib_HVCorrConfig.py.

◆ hours

python.LArCalib_HVCorrConfig.hours

Definition at line 99 of file LArCalib_HVCorrConfig.py.

◆ int

python.LArCalib_HVCorrConfig.int

Definition at line 69 of file LArCalib_HVCorrConfig.py.

◆ LumiBlockNumbers

python.LArCalib_HVCorrConfig.LumiBlockNumbers

Definition at line 115 of file LArCalib_HVCorrConfig.py.

◆ nargs

python.LArCalib_HVCorrConfig.nargs

Definition at line 69 of file LArCalib_HVCorrConfig.py.

◆ OutputLevel

python.LArCalib_HVCorrConfig.OutputLevel

Definition at line 121 of file LArCalib_HVCorrConfig.py.

◆ outputName

python.LArCalib_HVCorrConfig.outputName = args.output

Definition at line 105 of file LArCalib_HVCorrConfig.py.

◆ parser

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

Definition at line 67 of file LArCalib_HVCorrConfig.py.

◆ remainder

python.LArCalib_HVCorrConfig.remainder

Definition at line 98 of file LArCalib_HVCorrConfig.py.

◆ rlb

list python.LArCalib_HVCorrConfig.rlb = TimeStampToRunLumi(TimeStamp_ns)

Definition at line 87 of file LArCalib_HVCorrConfig.py.

◆ RunNumbers

python.LArCalib_HVCorrConfig.RunNumbers

Definition at line 114 of file LArCalib_HVCorrConfig.py.

◆ seconds

python.LArCalib_HVCorrConfig.seconds

Definition at line 99 of file LArCalib_HVCorrConfig.py.

◆ str

python.LArCalib_HVCorrConfig.str

Definition at line 71 of file LArCalib_HVCorrConfig.py.

◆ timediff

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

Definition at line 94 of file LArCalib_HVCorrConfig.py.

◆ TimeStamp

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

Definition at line 78 of file LArCalib_HVCorrConfig.py.

◆ TimeStamp_ns

int python.LArCalib_HVCorrConfig.TimeStamp_ns = TimeStamp*1000000000

Definition at line 79 of file LArCalib_HVCorrConfig.py.

◆ TimeStamps

python.LArCalib_HVCorrConfig.TimeStamps

Definition at line 116 of file LArCalib_HVCorrConfig.py.

◆ ts

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

Definition at line 77 of file LArCalib_HVCorrConfig.py.

◆ type

python.LArCalib_HVCorrConfig.type

Definition at line 69 of file LArCalib_HVCorrConfig.py.

python.LArCalib_HVCorrConfig.HVCorrConfig
def HVCorrConfig(flags, outputName="hvcorr", runOut=0, lbOut=0)
Definition: LArCalib_HVCorrConfig.py:7
LArCablingConfig.LArOnOffIdMappingSCCfg
def LArOnOffIdMappingSCCfg(configFlags)
Definition: LArCablingConfig.py:65
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", addSC=False)
Definition: LArCalib_HVScale2NtupleConfig.py:6
python.LArHVScaleConfig.LArHVScaleCfg
def LArHVScaleCfg(configFlags)
Definition: LArHVScaleConfig.py:8