ATLAS Offline Software
Loading...
Searching...
No Matches
LArDSPThresholdTopOptions Namespace Reference

Functions

 LArDSPThresholdCfg (flags, tag="", ModeType="noise", RunSince=0, fill=True, Sampval=0, Qtval=0, Samppileup=False, Qtpileup=False)

Variables

list tagList
 parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
 dest
 default
 help
 False
 action
 args = parser.parse_args()
 flags = initConfigFlags()
list tagstr = tagList[0]
list Qtstr = tagstr.split("Qt")[1]
list Sampstr = tagstr.split("samp")[1]
str ModeType = "noise"
bool QtPileup = False
bool SampPileup = False
 QtVal = float(Qtstr)
 SampVal = float(Sampstr)
 Files
 RunNumbers
 DBConnection
 DatabaseInstance
 AtlasVersion
 EnableID
 EnableMuon
 EnableForward
 GlobalTag
 DumpDetStore
 DumpEvtStore
 DumpCondStore
 SqliteInput
 fldrs = set()
 SqliteFolders
 doHVCorr
 cfg = MainServicesCfg(flags)

Function Documentation

◆ LArDSPThresholdCfg()

LArDSPThresholdTopOptions.LArDSPThresholdCfg ( flags,
tag = "",
ModeType = "noise",
RunSince = 0,
fill = True,
Sampval = 0,
Qtval = 0,
Samppileup = False,
Qtpileup = False )

Definition at line 15 of file LArDSPThresholdTopOptions.py.

16 Sampval=0, Qtval=0, Samppileup=False, Qtpileup=False):
17
18 from LArGeoAlgsNV.LArGMConfig import LArGMCfg
19 cfg=LArGMCfg(flags)
20
21 from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg
22 cfg.merge(LArOnOffIdMappingCfg(flags))
23 # setup bad chan and missing febs
24 from LArBadChannelTool.LArBadChannelConfig import LArBadChannelCfg,LArBadFebCfg
25 cfg.merge(LArBadChannelCfg(flags))
26 cfg.merge(LArBadFebCfg(flags))
27
28 folder="/LAR/Configuration/DSPThresholdFlat/Templates"
29
30 fileName=ModeType+tag
31
32 setName="-".join(tag.split("-")[1:])
33
34 from CaloTools.CaloNoiseCondAlgConfig import CaloNoiseCondAlgCfg
35 cfg.merge(CaloNoiseCondAlgCfg(flags,"totalNoise"))
36 cfg.merge(CaloNoiseCondAlgCfg(flags,"electronicNoise"))
37 cfg.merge(CaloNoiseCondAlgCfg(flags,"pileupNoise"))
38
39 from AthenaConfiguration.ComponentFactory import CompFactory
40 theLArDSPThresholdFillAlg=CompFactory.LArDSPThresholdFillInline("LArDSPThresholdFillInline")
41 from AthenaCommon.Constants import INFO
42 theLArDSPThresholdFillAlg.OutputLevel=INFO
43 theLArDSPThresholdFillAlg.Key=folder
44 theLArDSPThresholdFillAlg.OutFile=fileName+".txt"
45 theLArDSPThresholdFillAlg.mode=ModeType
46 theLArDSPThresholdFillAlg.MaskBadChannels=True
47 theLArDSPThresholdFillAlg.ProblemsToMask=[ "highNoiseHG","highNoiseMG","highNoiseLG" ]
48 theLArDSPThresholdFillAlg.NameOfSet=setName
49
50 if ModeType=="fixed":
51 theLArDSPThresholdFillAlg.tQThreshold=Qtval
52 theLArDSPThresholdFillAlg.samplesThreshold=Sampval
53
54 if ModeType=="noise":
55 theLArDSPThresholdFillAlg.sigmaNoiseSamples=Sampval
56 theLArDSPThresholdFillAlg.sigmaNoiseQt=Qtval
57 theLArDSPThresholdFillAlg.usePileupNoiseSamples=Samppileup
58 theLArDSPThresholdFillAlg.usePileupNoiseQt=Qtpileup
59
60 if fill:
61 theLArDSPThresholdFillAlg.Fill=True
62 theLArDSPThresholdFillAlg.Dump=True
63 else:
64 theLArDSPThresholdFillAlg.Fill=False
65 theLArDSPThresholdFillAlg.Dump=True
66
67 cfg.addEventAlgo(theLArDSPThresholdFillAlg)
68
69 if fill:
70 OutputList=[ "AthenaAttributeList#"+folder ]
71 OutputTagList=[tag]
72
73 from RegistrationServices.OutputConditionsAlgConfig import OutputConditionsAlgCfg
74 cfg.merge(OutputConditionsAlgCfg(flags,outputFile="LArDSPthresholdTemplates.pool.root",
75 ObjectList=OutputList,IOVTagList=OutputTagList,WriteIOV=True, Run1=RunSince))
76
77 cfg.addService(CompFactory.IOVRegistrationSvc(RecreateFolders = False,
78 OverrideNames = ["tQThr","samplesThr","trigSumThr",],
79 OverrideTypes = ["Blob16M","Blob16M","Blob16M",] ))
80
81
82 else:
83 from IOVDbSvc.IOVDbSvcConfig import addFolders
84 cfg.merge(addFolders(flags,folder+"<tag>"+tag+"</tag>"))
85
86 cfg.getService("PoolSvc").WriteCatalog="xmlcatalog_file:PoolFileCatalog_LARConfigurationDSPThresholdTemplates.xml"
87
88 #MC Event selector since we have no input data file
89 from McEventSelector.McEventSelectorConfig import McEventSelectorCfg
90 cfg.merge(McEventSelectorCfg(flags,
91 RunNumber = flags.Input.RunNumbers[0],
92 EventsPerRun = 1,
93 FirstEvent = 1,
94 InitialTimeStamp = 0,
95 TimeStampInterval = 1))
96
97 return cfg
98

Variable Documentation

◆ action

LArDSPThresholdTopOptions.action

Definition at line 114 of file LArDSPThresholdTopOptions.py.

◆ args

LArDSPThresholdTopOptions.args = parser.parse_args()

Definition at line 117 of file LArDSPThresholdTopOptions.py.

◆ AtlasVersion

LArDSPThresholdTopOptions.AtlasVersion

Definition at line 186 of file LArDSPThresholdTopOptions.py.

◆ cfg

LArDSPThresholdTopOptions.cfg = MainServicesCfg(flags)

Definition at line 212 of file LArDSPThresholdTopOptions.py.

◆ DatabaseInstance

LArDSPThresholdTopOptions.DatabaseInstance

Definition at line 183 of file LArDSPThresholdTopOptions.py.

◆ DBConnection

LArDSPThresholdTopOptions.DBConnection

Definition at line 182 of file LArDSPThresholdTopOptions.py.

◆ default

LArDSPThresholdTopOptions.default

Definition at line 107 of file LArDSPThresholdTopOptions.py.

◆ dest

LArDSPThresholdTopOptions.dest

Definition at line 107 of file LArDSPThresholdTopOptions.py.

◆ doHVCorr

LArDSPThresholdTopOptions.doHVCorr

Definition at line 207 of file LArDSPThresholdTopOptions.py.

◆ DumpCondStore

LArDSPThresholdTopOptions.DumpCondStore

Definition at line 196 of file LArDSPThresholdTopOptions.py.

◆ DumpDetStore

LArDSPThresholdTopOptions.DumpDetStore

Definition at line 194 of file LArDSPThresholdTopOptions.py.

◆ DumpEvtStore

LArDSPThresholdTopOptions.DumpEvtStore

Definition at line 195 of file LArDSPThresholdTopOptions.py.

◆ EnableForward

LArDSPThresholdTopOptions.EnableForward

Definition at line 190 of file LArDSPThresholdTopOptions.py.

◆ EnableID

LArDSPThresholdTopOptions.EnableID

Definition at line 188 of file LArDSPThresholdTopOptions.py.

◆ EnableMuon

LArDSPThresholdTopOptions.EnableMuon

Definition at line 189 of file LArDSPThresholdTopOptions.py.

◆ False

LArDSPThresholdTopOptions.False

Definition at line 114 of file LArDSPThresholdTopOptions.py.

◆ Files

LArDSPThresholdTopOptions.Files

Definition at line 179 of file LArDSPThresholdTopOptions.py.

◆ flags

LArDSPThresholdTopOptions.flags = initConfigFlags()

Definition at line 129 of file LArDSPThresholdTopOptions.py.

◆ fldrs

LArDSPThresholdTopOptions.fldrs = set()

Definition at line 200 of file LArDSPThresholdTopOptions.py.

◆ GlobalTag

LArDSPThresholdTopOptions.GlobalTag

Definition at line 192 of file LArDSPThresholdTopOptions.py.

◆ help

LArDSPThresholdTopOptions.help

Definition at line 107 of file LArDSPThresholdTopOptions.py.

◆ ModeType

str LArDSPThresholdTopOptions.ModeType = "noise"

Definition at line 146 of file LArDSPThresholdTopOptions.py.

◆ parser

LArDSPThresholdTopOptions.parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)

Definition at line 105 of file LArDSPThresholdTopOptions.py.

◆ QtPileup

bool LArDSPThresholdTopOptions.QtPileup = False

Definition at line 148 of file LArDSPThresholdTopOptions.py.

◆ Qtstr

list LArDSPThresholdTopOptions.Qtstr = tagstr.split("Qt")[1]

Definition at line 142 of file LArDSPThresholdTopOptions.py.

◆ QtVal

LArDSPThresholdTopOptions.QtVal = float(Qtstr)

Definition at line 175 of file LArDSPThresholdTopOptions.py.

◆ RunNumbers

LArDSPThresholdTopOptions.RunNumbers

Definition at line 180 of file LArDSPThresholdTopOptions.py.

◆ SampPileup

bool LArDSPThresholdTopOptions.SampPileup = False

Definition at line 149 of file LArDSPThresholdTopOptions.py.

◆ Sampstr

str LArDSPThresholdTopOptions.Sampstr = tagstr.split("samp")[1]

Definition at line 143 of file LArDSPThresholdTopOptions.py.

◆ SampVal

LArDSPThresholdTopOptions.SampVal = float(Sampstr)

Definition at line 176 of file LArDSPThresholdTopOptions.py.

◆ SqliteFolders

LArDSPThresholdTopOptions.SqliteFolders

Definition at line 205 of file LArDSPThresholdTopOptions.py.

◆ SqliteInput

LArDSPThresholdTopOptions.SqliteInput

Definition at line 199 of file LArDSPThresholdTopOptions.py.

◆ tagList

list LArDSPThresholdTopOptions.tagList
Initial value:
1= [
2 'LARConfigurationDSPThresholdFlatTemplates-Qt1sigma-samp1sigma',
3 'LARConfigurationDSPThresholdFlatTemplates-Qt1.5sigma-samp1.5sigma',
4 'LARConfigurationDSPThresholdFlatTemplates-Qt2sigma-samp2sigma',
5 'LARConfigurationDSPThresholdFlatTemplates-Qt3sigma-samp3sigma',
6 'LARConfigurationDSPThresholdFlatTemplates-Qt5sigma-samp5sigma',
7 'LARConfigurationDSPThresholdFlatTemplates-Qt3sigmamuPileup-samp3sigmamuPileup',
8 'LARConfigurationDSPThresholdFlatTemplates-Qt4sigmamuPileup-samp4sigmamuPileup',
9 'LARConfigurationDSPThresholdFlatTemplates-Qt5sigmamuPileup-samp5sigmamuPileup'
10 ]

Definition at line 3 of file LArDSPThresholdTopOptions.py.

◆ tagstr

list LArDSPThresholdTopOptions.tagstr = tagList[0]

Definition at line 134 of file LArDSPThresholdTopOptions.py.