Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions | Variables
LArDSPThresholdTopOptions Namespace Reference

Functions

def 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]
 
string ModeType = "noise"
 
bool QtPileup = False
 
bool SampPileup = False
 
 QtVal = float(Qtstr)
 
 SampVal = float(Sampstr)
 
 Files
 
 RunNumbers
 
 DBConnection
 
 AtlasVersion
 
 EnableID
 
 EnableMuon
 
 EnableForward
 
 GlobalTag
 
 DumpDetStore
 
 DumpEvtStore
 
 DumpCondStore
 
 SqliteInput
 
list fldrs = []
 
 SqliteFolders
 
 doHVCorr
 
 cfg = MainServicesCfg(flags)
 

Function Documentation

◆ LArDSPThresholdCfg()

def 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.

15 def LArDSPThresholdCfg(flags,tag="",ModeType="noise",RunSince=0,fill=True,
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 113 of file LArDSPThresholdTopOptions.py.

◆ args

LArDSPThresholdTopOptions.args = parser.parse_args()

Definition at line 116 of file LArDSPThresholdTopOptions.py.

◆ AtlasVersion

LArDSPThresholdTopOptions.AtlasVersion

Definition at line 184 of file LArDSPThresholdTopOptions.py.

◆ cfg

LArDSPThresholdTopOptions.cfg = MainServicesCfg(flags)

Definition at line 210 of file LArDSPThresholdTopOptions.py.

◆ DBConnection

LArDSPThresholdTopOptions.DBConnection

Definition at line 181 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 205 of file LArDSPThresholdTopOptions.py.

◆ DumpCondStore

LArDSPThresholdTopOptions.DumpCondStore

Definition at line 194 of file LArDSPThresholdTopOptions.py.

◆ DumpDetStore

LArDSPThresholdTopOptions.DumpDetStore

Definition at line 192 of file LArDSPThresholdTopOptions.py.

◆ DumpEvtStore

LArDSPThresholdTopOptions.DumpEvtStore

Definition at line 193 of file LArDSPThresholdTopOptions.py.

◆ EnableForward

LArDSPThresholdTopOptions.EnableForward

Definition at line 188 of file LArDSPThresholdTopOptions.py.

◆ EnableID

LArDSPThresholdTopOptions.EnableID

Definition at line 186 of file LArDSPThresholdTopOptions.py.

◆ EnableMuon

LArDSPThresholdTopOptions.EnableMuon

Definition at line 187 of file LArDSPThresholdTopOptions.py.

◆ False

LArDSPThresholdTopOptions.False

Definition at line 113 of file LArDSPThresholdTopOptions.py.

◆ Files

LArDSPThresholdTopOptions.Files

Definition at line 178 of file LArDSPThresholdTopOptions.py.

◆ flags

LArDSPThresholdTopOptions.flags = initConfigFlags()

Definition at line 128 of file LArDSPThresholdTopOptions.py.

◆ fldrs

list LArDSPThresholdTopOptions.fldrs = []

Definition at line 198 of file LArDSPThresholdTopOptions.py.

◆ GlobalTag

LArDSPThresholdTopOptions.GlobalTag

Definition at line 190 of file LArDSPThresholdTopOptions.py.

◆ help

LArDSPThresholdTopOptions.help

Definition at line 107 of file LArDSPThresholdTopOptions.py.

◆ ModeType

string LArDSPThresholdTopOptions.ModeType = "noise"

Definition at line 145 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 147 of file LArDSPThresholdTopOptions.py.

◆ Qtstr

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

Definition at line 141 of file LArDSPThresholdTopOptions.py.

◆ QtVal

LArDSPThresholdTopOptions.QtVal = float(Qtstr)

Definition at line 174 of file LArDSPThresholdTopOptions.py.

◆ RunNumbers

LArDSPThresholdTopOptions.RunNumbers

Definition at line 179 of file LArDSPThresholdTopOptions.py.

◆ SampPileup

bool LArDSPThresholdTopOptions.SampPileup = False

Definition at line 148 of file LArDSPThresholdTopOptions.py.

◆ Sampstr

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

Definition at line 142 of file LArDSPThresholdTopOptions.py.

◆ SampVal

LArDSPThresholdTopOptions.SampVal = float(Sampstr)

Definition at line 175 of file LArDSPThresholdTopOptions.py.

◆ SqliteFolders

LArDSPThresholdTopOptions.SqliteFolders

Definition at line 203 of file LArDSPThresholdTopOptions.py.

◆ SqliteInput

LArDSPThresholdTopOptions.SqliteInput

Definition at line 197 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 133 of file LArDSPThresholdTopOptions.py.

OutputConditionsAlgConfig.OutputConditionsAlgCfg
def OutputConditionsAlgCfg(flags, name="OutputConditionsAlg", outputFile='condobjs.root', **kwargs)
Definition: OutputConditionsAlgConfig.py:5
python.LArBadChannelConfig.LArBadChannelCfg
def LArBadChannelCfg(configFlags, tag=None, isSC=False)
Definition: LArBadChannelConfig.py:8
python.LArBadChannelConfig.LArBadFebCfg
def LArBadFebCfg(configFlags, tag=None)
Definition: LArBadChannelConfig.py:46
python.CaloNoiseCondAlgConfig.CaloNoiseCondAlgCfg
def CaloNoiseCondAlgCfg(flags, noisetype="totalNoise")
Definition: CaloNoiseCondAlgConfig.py:11
LArDSPThresholdTopOptions.LArDSPThresholdCfg
def LArDSPThresholdCfg(flags, tag="", ModeType="noise", RunSince=0, fill=True, Sampval=0, Qtval=0, Samppileup=False, Qtpileup=False)
Definition: LArDSPThresholdTopOptions.py:15
Constants
some useful constants -------------------------------------------------—
python.McEventSelectorConfig.McEventSelectorCfg
def McEventSelectorCfg(flags, **kwargs)
Definition: McEventSelectorConfig.py:5
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:81
LArCablingConfig.LArOnOffIdMappingCfg
def LArOnOffIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:62
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10