ATLAS Offline Software
Functions | Variables
python.LArBadChannel2Ascii Namespace Reference

Functions

def LArBadChannel2AsciiCfg (flags, OutputFile, dbname="LAR_OFL", folder=None, tag=None, summaryfile="")
 

Variables

 parser = argparse.ArgumentParser()
 
 default
 
 None
 
 help
 
 x7fffffff
 
 type
 
 int
 
 action
 
 args
 
 leftover
 
 flags = initConfigFlags()
 
 isMC
 
 DatabaseInstance
 
 doAlign
 
 RunNumbers
 
 GlobalTag
 
 AtlasVersion
 
 isSC
 
 OutputLevel
 
 cfg = MainServicesCfg(flags)
 
 sc = cfg.run(1)
 

Function Documentation

◆ LArBadChannel2AsciiCfg()

def python.LArBadChannel2Ascii.LArBadChannel2AsciiCfg (   flags,
  OutputFile,
  dbname = "LAR_OFL",
  folder = None,
  tag = None,
  summaryfile = "" 
)

Definition at line 5 of file LArBadChannel2Ascii.py.

5 def LArBadChannel2AsciiCfg(flags,OutputFile,dbname="LAR_OFL",folder=None,tag=None,summaryfile=""):
6  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
7  result=LArGMCfg(flags)
8 
9  if flags.LArCalib.isSC:
10  #Setup SuperCell cabling
11  from LArCabling.LArCablingConfig import LArOnOffIdMappingSCCfg
12  result.merge(LArOnOffIdMappingSCCfg(flags))
13  else:
14  #Setup regular cabling
15  from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg
16  result.merge(LArOnOffIdMappingCfg(flags))
17 
18 
19  if folder is None:
20  if dbname in ("LAR","LAR_ONL"):
21  folder="/LAR/BadChannels/BadChannels"
22  else:
23  folder="/LAR/BadChannelsOfl/BadChannels"
24 
25  if flags.LArCalib.isSC:
26  folder+="SC"
27 
28  if tag is not None:
29  if not tag.startswith("LAR"):
30  if not tag.startswith("-"): tag= "-"+tag
31  tag="".join(folder.split("/"))+tag
32 
33  print("Tag=",tag)
34 
35  result.merge(addFolders(flags,folder,dbname,tag=tag,
36  className="CondAttrListCollection"))
37  theLArBadChannelCondAlgo=CompFactory.LArBadChannelCondAlg(ReadKey=folder)
38  if flags.LArCalib.isSC:
39  theLArBadChannelCondAlgo.CablingKey="LArOnOffIdMapSC"
40  theLArBadChannelCondAlgo.isSC=True
41 
42  result.addCondAlgo(theLArBadChannelCondAlgo)
43 
44  if summaryfile!="":
45  if (not flags.LArCalib.isSC):
46  from LArBadChannelTool.LArBadFebsConfig import LArKnownBadFebCfg
47  result.merge(LArKnownBadFebCfg(flags))
48 
49  theLArBadChannels2Ascii=CompFactory.LArBadChannel2Ascii(SkipDisconnected=True)
50  theLArBadChannels2Ascii.FileName=OutputFile
51  theLArBadChannels2Ascii.WithMissing=False if (summaryfile=="" and not flags.LArCalib.isSC) else True
52  theLArBadChannels2Ascii.ExecutiveSummaryFile=summaryfile
53  theLArBadChannels2Ascii.BFKey="LArKnownBadFEBs"
54  if (flags.LArCalib.isSC):
55  theLArBadChannels2Ascii.LArOnOffIdMapKey="LArOnOffIdMapSC"
56  theLArBadChannels2Ascii.SuperCell=True
57  result.addEventAlgo(theLArBadChannels2Ascii)
58 
59  return result
60 
61 
62 

Variable Documentation

◆ action

python.LArBadChannel2Ascii.action

Definition at line 74 of file LArBadChannel2Ascii.py.

◆ args

python.LArBadChannel2Ascii.args

Definition at line 76 of file LArBadChannel2Ascii.py.

◆ AtlasVersion

python.LArBadChannel2Ascii.AtlasVersion

Definition at line 93 of file LArBadChannel2Ascii.py.

◆ cfg

python.LArBadChannel2Ascii.cfg = MainServicesCfg(flags)

Definition at line 106 of file LArBadChannel2Ascii.py.

◆ DatabaseInstance

python.LArBadChannel2Ascii.DatabaseInstance

Definition at line 88 of file LArBadChannel2Ascii.py.

◆ default

python.LArBadChannel2Ascii.default

Definition at line 66 of file LArBadChannel2Ascii.py.

◆ doAlign

python.LArBadChannel2Ascii.doAlign

Definition at line 89 of file LArBadChannel2Ascii.py.

◆ flags

python.LArBadChannel2Ascii.flags = initConfigFlags()

Definition at line 84 of file LArBadChannel2Ascii.py.

◆ GlobalTag

python.LArBadChannel2Ascii.GlobalTag

Definition at line 91 of file LArBadChannel2Ascii.py.

◆ help

python.LArBadChannel2Ascii.help

Definition at line 66 of file LArBadChannel2Ascii.py.

◆ int

python.LArBadChannel2Ascii.int

Definition at line 67 of file LArBadChannel2Ascii.py.

◆ isMC

python.LArBadChannel2Ascii.isMC

Definition at line 87 of file LArBadChannel2Ascii.py.

◆ isSC

python.LArBadChannel2Ascii.isSC

Definition at line 94 of file LArBadChannel2Ascii.py.

◆ leftover

python.LArBadChannel2Ascii.leftover

Definition at line 76 of file LArBadChannel2Ascii.py.

◆ None

python.LArBadChannel2Ascii.None

Definition at line 66 of file LArBadChannel2Ascii.py.

◆ OutputLevel

python.LArBadChannel2Ascii.OutputLevel

Definition at line 99 of file LArBadChannel2Ascii.py.

◆ parser

python.LArBadChannel2Ascii.parser = argparse.ArgumentParser()

Definition at line 65 of file LArBadChannel2Ascii.py.

◆ RunNumbers

python.LArBadChannel2Ascii.RunNumbers

Definition at line 90 of file LArBadChannel2Ascii.py.

◆ sc

python.LArBadChannel2Ascii.sc = cfg.run(1)

Definition at line 124 of file LArBadChannel2Ascii.py.

◆ type

python.LArBadChannel2Ascii.type

Definition at line 67 of file LArBadChannel2Ascii.py.

◆ x7fffffff

python.LArBadChannel2Ascii.x7fffffff

Definition at line 67 of file LArBadChannel2Ascii.py.

LArCablingConfig.LArOnOffIdMappingSCCfg
def LArOnOffIdMappingSCCfg(configFlags)
Definition: LArCablingConfig.py:65
python.LArBadChannel2Ascii.LArBadChannel2AsciiCfg
def LArBadChannel2AsciiCfg(flags, OutputFile, dbname="LAR_OFL", folder=None, tag=None, summaryfile="")
Definition: LArBadChannel2Ascii.py:5
python.LArBadFebsConfig.LArKnownBadFebCfg
def LArKnownBadFebCfg(configFlags, tag=None)
Definition: LArBadFebsConfig.py:11
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:72
LArCablingConfig.LArOnOffIdMappingCfg
def LArOnOffIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:62
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10