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

Functions

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

Variables

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

Function Documentation

◆ LArHVPathology2AsciiCfg()

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

Definition at line 6 of file LArHVPathology2Ascii.py.

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

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

LArHVCablingConfig.LArHVCablingCfg
def LArHVCablingCfg(flags)
Definition: LArHVCablingConfig.py:7
OutputConditionsAlgConfig.OutputConditionsAlgCfg
def OutputConditionsAlgCfg(flags, name="OutputConditionsAlg", outputFile='condobjs.root', **kwargs)
Definition: OutputConditionsAlgConfig.py:5
LArHVPathologyDbCondAlg
Definition: LArHVPathologyDbCondAlg.h:30
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
LArHVPathology2Ascii.LArHVPathology2AsciiCfg
def LArHVPathology2AsciiCfg(flags, OutputFile="", InputFile="", folder="/LAR/HVPathologiesOfl/Pathologies", tag=None)
Definition: LArHVPathology2Ascii.py:6
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