ATLAS Offline Software
Functions | Variables
LArCalib_HVScale2NtupleConfig Namespace Reference

Functions

def LArHVScaleCorr2NtupleCfg (flags, rootfile="hvcorr_read.root")
 

Variables

 ts = strptime(sys.argv[1]+'/UTC','%Y-%m-%d:%H:%M:%S/%Z')
 
 TimeStamp = int(timegm(ts))
 
int TimeStamp_ns = TimeStamp*1000000000
 
 rlb = TimeStampToRunLumi(TimeStamp_ns)
 
 flags = initConfigFlags()
 
 RunNumbers
 
 TimeStamps
 
 Files
 
 DatabaseInstance
 
 AtlasVersion
 
string rootfile = "hvcorr_read.root"
 
 rootFile = sys.argv[2]
 
 GlobalTag
 
 cfg = MainEvgenServicesCfg(flags)
 

Function Documentation

◆ LArHVScaleCorr2NtupleCfg()

def LArCalib_HVScale2NtupleConfig.LArHVScaleCorr2NtupleCfg (   flags,
  rootfile = "hvcorr_read.root" 
)

Definition at line 6 of file LArCalib_HVScale2NtupleConfig.py.

6 def LArHVScaleCorr2NtupleCfg(flags, rootfile="hvcorr_read.root"):
7 
8  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
9  result=LArGMCfg(flags)
10 
11  from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg
12  result.merge(LArOnOffIdMappingCfg(flags))
13 
14  from LArBadChannelTool.LArBadChannelConfig import LArBadChannelCfg
15  result.merge(LArBadChannelCfg(flags))
16 
17  from LArConfiguration.LArElecCalibDBConfig import LArElecCalibDBCfg
18  result.merge(LArElecCalibDBCfg(flags,["HVScaleCorr"]))
19 
20 
21  theLArHVScaleCorr2Ntuple = CompFactory.LArHVScaleCorr2Ntuple("LArHVScaleCorr2Ntuple")
22  theLArHVScaleCorr2Ntuple.AddFEBTempInfo = False
23  theLArHVScaleCorr2Ntuple.OffId=True
24  result.addEventAlgo(theLArHVScaleCorr2Ntuple)
25 
26  import os
27  if os.path.exists(rootfile):
28  os.remove(rootfile)
29  result.addService(CompFactory.NTupleSvc(Output = [ "FILE1 DATAFILE='"+rootfile+"' OPT='NEW'" ]))
30  result.setAppProperty("HistogramPersistency","ROOT")
31 
32  return result
33 

Variable Documentation

◆ AtlasVersion

LArCalib_HVScale2NtupleConfig.AtlasVersion

Definition at line 72 of file LArCalib_HVScale2NtupleConfig.py.

◆ cfg

LArCalib_HVScale2NtupleConfig.cfg = MainEvgenServicesCfg(flags)

Definition at line 82 of file LArCalib_HVScale2NtupleConfig.py.

◆ DatabaseInstance

LArCalib_HVScale2NtupleConfig.DatabaseInstance

Definition at line 70 of file LArCalib_HVScale2NtupleConfig.py.

◆ Files

LArCalib_HVScale2NtupleConfig.Files

Definition at line 69 of file LArCalib_HVScale2NtupleConfig.py.

◆ flags

LArCalib_HVScale2NtupleConfig.flags = initConfigFlags()

Definition at line 63 of file LArCalib_HVScale2NtupleConfig.py.

◆ GlobalTag

LArCalib_HVScale2NtupleConfig.GlobalTag

Definition at line 79 of file LArCalib_HVScale2NtupleConfig.py.

◆ rlb

list LArCalib_HVScale2NtupleConfig.rlb = TimeStampToRunLumi(TimeStamp_ns)

Definition at line 56 of file LArCalib_HVScale2NtupleConfig.py.

◆ rootfile

string LArCalib_HVScale2NtupleConfig.rootfile = "hvcorr_read.root"

Definition at line 74 of file LArCalib_HVScale2NtupleConfig.py.

◆ rootFile

LArCalib_HVScale2NtupleConfig.rootFile = sys.argv[2]

Definition at line 76 of file LArCalib_HVScale2NtupleConfig.py.

◆ RunNumbers

LArCalib_HVScale2NtupleConfig.RunNumbers

Definition at line 67 of file LArCalib_HVScale2NtupleConfig.py.

◆ TimeStamp

LArCalib_HVScale2NtupleConfig.TimeStamp = int(timegm(ts))

Definition at line 47 of file LArCalib_HVScale2NtupleConfig.py.

◆ TimeStamp_ns

int LArCalib_HVScale2NtupleConfig.TimeStamp_ns = TimeStamp*1000000000

Definition at line 48 of file LArCalib_HVScale2NtupleConfig.py.

◆ TimeStamps

LArCalib_HVScale2NtupleConfig.TimeStamps

Definition at line 68 of file LArCalib_HVScale2NtupleConfig.py.

◆ ts

LArCalib_HVScale2NtupleConfig.ts = strptime(sys.argv[1]+'/UTC','%Y-%m-%d:%H:%M:%S/%Z')

Definition at line 46 of file LArCalib_HVScale2NtupleConfig.py.

python.LArElecCalibDBConfig.LArElecCalibDBCfg
def LArElecCalibDBCfg(flags, condObjs)
Definition: LArElecCalibDBConfig.py:47
python.LArBadChannelConfig.LArBadChannelCfg
def LArBadChannelCfg(configFlags, tag=None, isSC=False)
Definition: LArBadChannelConfig.py:8
LArCablingConfig.LArOnOffIdMappingCfg
def LArOnOffIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:62
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
LArCalib_HVScale2NtupleConfig.LArHVScaleCorr2NtupleCfg
def LArHVScaleCorr2NtupleCfg(flags, rootfile="hvcorr_read.root")
Definition: LArCalib_HVScale2NtupleConfig.py:6