ATLAS Offline Software
Functions | Variables
python.TRT_PoolGenerator Namespace Reference

Functions

def TRTCondWriterCfg (flags, name="TRTCondStoreText", rtTag="Textrt", t0Tag="Textt0", **kwargs)
 
def TRTCondReaderCfg (flags, name="TRTCondRead", rtTag="Textrt", t0Tag="Textt0", ReadCOOL=True, **kwargs)
 

Variables

 parser
 
 action
 
 help
 
 default
 
 type
 
 int
 
 args = parser.parse_args()
 
 flags = initConfigFlags()
 
 AtlasVersion
 
 Files
 
 GlobalTag
 
bool ReadCOOL = False
 
string textOutput = args.outputtxt if args.outputtxt else "caliboutput.txt"
 
 RunNumbers
 
 OverrideRunNumber
 
 DBConnection
 
 GeometryTRT
 
 EnableTRT
 
 ESDFileName
 
 OutputLevel
 
 MaxEvents
 
 acc = MainServicesCfg(flags)
 

Function Documentation

◆ TRTCondReaderCfg()

def python.TRT_PoolGenerator.TRTCondReaderCfg (   flags,
  name = "TRTCondRead",
  rtTag = "Textrt",
  t0Tag = "Textt0",
  ReadCOOL = True,
**  kwargs 
)

Definition at line 55 of file TRT_PoolGenerator.py.

55 def TRTCondReaderCfg(flags, name="TRTCondRead", rtTag="Textrt", t0Tag="Textt0", ReadCOOL=True, **kwargs):
56  acc = ComponentAccumulator()
57 
58  if "CalibOutputFile" not in kwargs:
59  kwargs.setdefault('CalibOutputFile', "caliboutput.txt")
60 
61  from IOVDbSvc.IOVDbSvcConfig import addOverride
62 
63  #Folder for COOL db are added in the TRTCalDbTool tool, in case of local DB overwrite with the local tag!
64  if not ReadCOOL:
65  # TRT folders from local SQLite
66  acc.merge(addOverride( flags, "/TRT/Calib/T0", tag=t0Tag, db=flags.IOVDb.DBConnection))
67  acc.merge(addOverride( flags, "/TRT/Calib/RT", tag=rtTag, db=flags.IOVDb.DBConnection))
68 
69  if "TRTCalDbTool" not in kwargs:
70  from TRT_ConditionsServices.TRT_ConditionsServicesConfig import TRT_CalDbToolCfg
71  kwargs.setdefault("TRTCalDbTool", acc.popToolsAndMerge(TRT_CalDbToolCfg(flags)))
72 
73  # TRT CondRead Algorithm
74  TRTCondRead = CompFactory.TRTCondRead(name=name, **kwargs)
75  acc.addEventAlgo(TRTCondRead)
76 
77  return acc
78 

◆ TRTCondWriterCfg()

def python.TRT_PoolGenerator.TRTCondWriterCfg (   flags,
  name = "TRTCondStoreText",
  rtTag = "Textrt",
  t0Tag = "Textt0",
**  kwargs 
)

Definition at line 13 of file TRT_PoolGenerator.py.

13 def TRTCondWriterCfg(flags, name="TRTCondStoreText", rtTag="Textrt", t0Tag="Textt0", **kwargs):
14 
15  acc = ComponentAccumulator()
16 
17  if "CalibInputFile" not in kwargs:
18  kwargs.setdefault('CalibInputFile', "dbconst.txt")
19 
20  from IOVDbSvc.IOVDbSvcConfig import IOVDbSvcCfg
21  acc.merge(IOVDbSvcCfg(flags))
22 
23  # Define OutputConditionsAlg
24  objectList = [
25  "TRTCond::RtRelationMultChanContainer#/TRT/Calib/RT",
26  "TRTCond::StrawT0MultChanContainer#/TRT/Calib/T0"
27  ]
28  tagList = [rtTag, t0Tag]
29 
30  from RegistrationServices.OutputConditionsAlgConfig import OutputConditionsAlgCfg
31  OutputCond = OutputConditionsAlgCfg(
32  flags,
33  name="TRT_OutputConditionsAlg",
34  outputFile="pooloutputfile.root",
35  ObjectList=objectList,
36  IOVTagList=tagList,
37  WriteIOV=True,
38  Run1=0,
39  LB1=0,
40  Run2=2147483647,
41  LB2=4294967295
42  )
43  acc.merge(OutputCond)
44 
45  # Add pool output stream tool
46  from AthenaPoolCnvSvc.PoolWriteConfig import PoolWriteCfg
47  acc.merge(PoolWriteCfg(flags))
48 
49  # TRT Conditions text reader
50  TRTCondStoreText = CompFactory.TRTCondStoreText(name=name, **kwargs)
51  acc.addCondAlgo(TRTCondStoreText)
52 
53  return acc
54 

Variable Documentation

◆ acc

python.TRT_PoolGenerator.acc = MainServicesCfg(flags)

Definition at line 130 of file TRT_PoolGenerator.py.

◆ action

python.TRT_PoolGenerator.action

Definition at line 85 of file TRT_PoolGenerator.py.

◆ args

python.TRT_PoolGenerator.args = parser.parse_args()

Definition at line 93 of file TRT_PoolGenerator.py.

◆ AtlasVersion

python.TRT_PoolGenerator.AtlasVersion

Definition at line 98 of file TRT_PoolGenerator.py.

◆ DBConnection

python.TRT_PoolGenerator.DBConnection

Definition at line 115 of file TRT_PoolGenerator.py.

◆ default

python.TRT_PoolGenerator.default

Definition at line 87 of file TRT_PoolGenerator.py.

◆ EnableTRT

python.TRT_PoolGenerator.EnableTRT

Definition at line 119 of file TRT_PoolGenerator.py.

◆ ESDFileName

python.TRT_PoolGenerator.ESDFileName

Definition at line 120 of file TRT_PoolGenerator.py.

◆ Files

python.TRT_PoolGenerator.Files

Definition at line 101 of file TRT_PoolGenerator.py.

◆ flags

python.TRT_PoolGenerator.flags = initConfigFlags()

Definition at line 95 of file TRT_PoolGenerator.py.

◆ GeometryTRT

python.TRT_PoolGenerator.GeometryTRT

Definition at line 118 of file TRT_PoolGenerator.py.

◆ GlobalTag

python.TRT_PoolGenerator.GlobalTag

Definition at line 102 of file TRT_PoolGenerator.py.

◆ help

python.TRT_PoolGenerator.help

Definition at line 85 of file TRT_PoolGenerator.py.

◆ int

python.TRT_PoolGenerator.int

Definition at line 92 of file TRT_PoolGenerator.py.

◆ MaxEvents

python.TRT_PoolGenerator.MaxEvents

Definition at line 125 of file TRT_PoolGenerator.py.

◆ OutputLevel

python.TRT_PoolGenerator.OutputLevel

Definition at line 123 of file TRT_PoolGenerator.py.

◆ OverrideRunNumber

python.TRT_PoolGenerator.OverrideRunNumber

Definition at line 111 of file TRT_PoolGenerator.py.

◆ parser

python.TRT_PoolGenerator.parser
Initial value:
1 = argparse.ArgumentParser(prog='python -m TRT_ConditionsAlgs.TRT_PoolGenerator --read --condRunNumber 450000',
2  description="Write or Read TRT conditions")

Definition at line 82 of file TRT_PoolGenerator.py.

◆ ReadCOOL

bool python.TRT_PoolGenerator.ReadCOOL = False

Definition at line 107 of file TRT_PoolGenerator.py.

◆ RunNumbers

python.TRT_PoolGenerator.RunNumbers

Definition at line 110 of file TRT_PoolGenerator.py.

◆ textOutput

string python.TRT_PoolGenerator.textOutput = args.outputtxt if args.outputtxt else "caliboutput.txt"

Definition at line 108 of file TRT_PoolGenerator.py.

◆ type

python.TRT_PoolGenerator.type

Definition at line 92 of file TRT_PoolGenerator.py.

python.PoolWriteConfig.PoolWriteCfg
def PoolWriteCfg(flags)
Definition: PoolWriteConfig.py:41
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
OutputConditionsAlgConfig.OutputConditionsAlgCfg
def OutputConditionsAlgCfg(flags, name="OutputConditionsAlg", outputFile='condobjs.root', **kwargs)
Definition: OutputConditionsAlgConfig.py:5
python.TRT_PoolGenerator.TRTCondReaderCfg
def TRTCondReaderCfg(flags, name="TRTCondRead", rtTag="Textrt", t0Tag="Textt0", ReadCOOL=True, **kwargs)
Definition: TRT_PoolGenerator.py:55
python.IOVDbSvcConfig.IOVDbSvcCfg
def IOVDbSvcCfg(flags, **kwargs)
Definition: IOVDbSvcConfig.py:28
python.IOVDbSvcConfig.addOverride
def addOverride(flags, folder, tag, tagType="tag", db=None)
Definition: IOVDbSvcConfig.py:238
python.TRT_PoolGenerator.TRTCondWriterCfg
def TRTCondWriterCfg(flags, name="TRTCondStoreText", rtTag="Textrt", t0Tag="Textt0", **kwargs)
Definition: TRT_PoolGenerator.py:13
python.TRT_ConditionsServicesConfig.TRT_CalDbToolCfg
def TRT_CalDbToolCfg(flags, name="TRT_CalDbTool", **kwags)
Definition: TRT_ConditionsServicesConfig.py:9