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

Functions

 LArHVPathology2AsciiCfg (flags, OutputFile="", InputFile="", folder="/LAR/HVPathologiesOfl/Pathologies", tag=None)

Variables

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

Function Documentation

◆ LArHVPathology2AsciiCfg()

LArHVPathology2Ascii.LArHVPathology2AsciiCfg ( flags,
OutputFile = "",
InputFile = "",
folder = "/LAR/HVPathologiesOfl/Pathologies",
tag = None )

Definition at line 6 of file LArHVPathology2Ascii.py.

6def LArHVPathology2AsciiCfg(flags,OutputFile="",InputFile="",folder="/LAR/HVPathologiesOfl/Pathologies",tag=None):
7 from LArGeoAlgsNV.LArGMConfig import LArGMCfg
8 result=LArGMCfg(flags)
9 from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg
10 result.merge(LArOnOffIdMappingCfg(flags))
11 from LArCabling.LArHVCablingConfig import LArHVCablingCfg
12 result.merge(LArHVCablingCfg(flags))
13
14
15 if tag is not None:
16 if not tag.startswith("LAR"):
17 if not tag.startswith("-"): tag= "-"+tag
18 tag="".join(folder.split("/"))+tag
19
20 if (InputFile==""):
21 #Reading case
22 result.merge(addFolders(flags,folder,"LAR_OFL",tag=tag,
23 className="AthenaAttributeList"))
24
25
26
27 LArHVPathologyDbCondAlg=CompFactory.LArHVPathologyDbCondAlg
28 hvpath = LArHVPathologyDbCondAlg(PathologyFolder=folder,
29 HVMappingKey="LArHVIdMap",
30 HVPAthologyKey="LArHVPathology")
31
32
33
34 result.addCondAlgo(hvpath)
35
36
37 result.addEventAlgo(CompFactory.LArHVPathologyDbAlg(OutFile=OutputFile,
38 InpFile=InputFile,
39 Folder=folder,
40 WriteCondObjs=(InputFile!=""),
41 HVPAthologyKey="LArHVPathology"))
42
43 if (InputFile!=""):
44 #Writing case:
45 from RegistrationServices.OutputConditionsAlgConfig import OutputConditionsAlgCfg
46 result.merge(OutputConditionsAlgCfg(flags,
47 name="AttrListOutputAlg",
48 outputFile="dummy.pool.root",
49 ObjectList=["AthenaAttributeList#"+folder+"#"+folder],
50 IOVTagList=[tag,],
51 WriteIOV = True,
52 Run1=flags.Input.RunNumbers[0],
53 LB1=0,
54 Run2=0x7FFFFFFF,
55 LB2=0xFFFFFFFF
56 ))
57 result.addService(CompFactory.IOVRegistrationSvc(RecreateFolders = True))
58
59 return result
60
61
62

Variable Documentation

◆ args

LArHVPathology2Ascii.args

Definition at line 75 of file LArHVPathology2Ascii.py.

◆ AtlasVersion

LArHVPathology2Ascii.AtlasVersion

Definition at line 89 of file LArHVPathology2Ascii.py.

◆ cfg

LArHVPathology2Ascii.cfg = MainServicesCfg(flags)

Definition at line 106 of file LArHVPathology2Ascii.py.

◆ DatabaseInstance

LArHVPathology2Ascii.DatabaseInstance

Definition at line 85 of file LArHVPathology2Ascii.py.

◆ DBConnection

LArHVPathology2Ascii.DBConnection

Definition at line 93 of file LArHVPathology2Ascii.py.

◆ default

LArHVPathology2Ascii.default

Definition at line 66 of file LArHVPathology2Ascii.py.

◆ doAlign

LArHVPathology2Ascii.doAlign

Definition at line 86 of file LArHVPathology2Ascii.py.

◆ Files

LArHVPathology2Ascii.Files

Definition at line 83 of file LArHVPathology2Ascii.py.

◆ flags

LArHVPathology2Ascii.flags = initConfigFlags()

Definition at line 82 of file LArHVPathology2Ascii.py.

◆ GlobalTag

LArHVPathology2Ascii.GlobalTag

Definition at line 90 of file LArHVPathology2Ascii.py.

◆ help

LArHVPathology2Ascii.help

Definition at line 66 of file LArHVPathology2Ascii.py.

◆ int

LArHVPathology2Ascii.int

Definition at line 67 of file LArHVPathology2Ascii.py.

◆ isMC

LArHVPathology2Ascii.isMC

Definition at line 84 of file LArHVPathology2Ascii.py.

◆ leftover

LArHVPathology2Ascii.leftover

Definition at line 75 of file LArHVPathology2Ascii.py.

◆ None

LArHVPathology2Ascii.None

Definition at line 66 of file LArHVPathology2Ascii.py.

◆ OutputLevel

LArHVPathology2Ascii.OutputLevel

Definition at line 99 of file LArHVPathology2Ascii.py.

◆ parser

LArHVPathology2Ascii.parser = argparse.ArgumentParser()

Definition at line 65 of file LArHVPathology2Ascii.py.

◆ RunNumbers

LArHVPathology2Ascii.RunNumbers

Definition at line 87 of file LArHVPathology2Ascii.py.

◆ sc

LArHVPathology2Ascii.sc = cfg.run(1)

Definition at line 126 of file LArHVPathology2Ascii.py.

◆ type

LArHVPathology2Ascii.type

Definition at line 67 of file LArHVPathology2Ascii.py.

◆ x1fffffff

LArHVPathology2Ascii.x1fffffff

Definition at line 67 of file LArHVPathology2Ascii.py.