ATLAS Offline Software
Loading...
Searching...
No Matches
python.LArBadChannel2Ascii Namespace Reference

Functions

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

Variables

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

Function Documentation

◆ LArBadChannel2AsciiCfg()

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

Definition at line 5 of file LArBadChannel2Ascii.py.

5def 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") or flags.Input.isMC:
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
void print(char *figname, TCanvas *c1)

Variable Documentation

◆ action

python.LArBadChannel2Ascii.action

Definition at line 74 of file LArBadChannel2Ascii.py.

◆ args

python.LArBadChannel2Ascii.args

Definition at line 77 of file LArBadChannel2Ascii.py.

◆ AtlasVersion

python.LArBadChannel2Ascii.AtlasVersion

Definition at line 98 of file LArBadChannel2Ascii.py.

◆ cfg

python.LArBadChannel2Ascii.cfg = MainServicesCfg(flags)

Definition at line 111 of file LArBadChannel2Ascii.py.

◆ DatabaseInstance

python.LArBadChannel2Ascii.DatabaseInstance

Definition at line 89 of file LArBadChannel2Ascii.py.

◆ default

python.LArBadChannel2Ascii.default

Definition at line 66 of file LArBadChannel2Ascii.py.

◆ doAlign

python.LArBadChannel2Ascii.doAlign

Definition at line 90 of file LArBadChannel2Ascii.py.

◆ False

python.LArBadChannel2Ascii.False

Definition at line 75 of file LArBadChannel2Ascii.py.

◆ Files

python.LArBadChannel2Ascii.Files

Definition at line 87 of file LArBadChannel2Ascii.py.

◆ flags

python.LArBadChannel2Ascii.flags = initConfigFlags()

Definition at line 85 of file LArBadChannel2Ascii.py.

◆ GlobalTag

python.LArBadChannel2Ascii.GlobalTag

Definition at line 92 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 88 of file LArBadChannel2Ascii.py.

◆ isSC

python.LArBadChannel2Ascii.isSC

Definition at line 99 of file LArBadChannel2Ascii.py.

◆ leftover

python.LArBadChannel2Ascii.leftover

Definition at line 77 of file LArBadChannel2Ascii.py.

◆ MCCampaign

python.LArBadChannel2Ascii.MCCampaign

Definition at line 95 of file LArBadChannel2Ascii.py.

◆ None

python.LArBadChannel2Ascii.None

Definition at line 66 of file LArBadChannel2Ascii.py.

◆ OutputLevel

python.LArBadChannel2Ascii.OutputLevel

Definition at line 104 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 91 of file LArBadChannel2Ascii.py.

◆ sc

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

Definition at line 129 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.