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

Functions

def testAFPDBCfg (flags)
 

Variables

 flags = initConfigFlags()
 
 CheckDependencies
 
 ShowDataDeps
 
 ShowDataFlow
 
 ShowControlFlow
 
 EnableVerboseViews
 
 NumThreads
 
 NumConcurrentEvents
 
 MaxEvents
 
 GlobalTag
 
 AtlasVersion
 
 acc = MainServicesCfg(flags)
 
 parser = flags.getArgumentParser()
 
 args = flags.fillFromArgs(parser=parser)
 
 OutputLevel
 
 withDetails
 
 True
 
 summariseProps
 

Function Documentation

◆ testAFPDBCfg()

def testAFPDB.testAFPDBCfg (   flags)

Definition at line 23 of file testAFPDB.py.

23 def testAFPDBCfg(flags):
24  acc = ComponentAccumulator()
25 
26  from IOVDbSvc.IOVDbSvcConfig import addFoldersSplitOnline
27  from IOVDbSvc.IOVDbSvcConfig import addFolders
28 
29  # these are two randomly picked conditions, checked for comparison
30  acc.merge(addFolders(flags, '/CALO/HadCalibration2/CaloEMFrac', 'CALO_ONL', className='CaloLocalHadCoeff', db='CONDBR2'))
31  acc.merge(addFoldersSplitOnline(flags, "INDET", "/Indet/Onl/Beampos", "/Indet/Beampos", className="AthenaAttributeList"))
32 
33 
34  # set from where to read the local information - from DB
35 # acc.merge(addFolders(flags, "/FWD/Onl/AFP/Align/Local", 'FWD_ONL', className='CondAttrListCollection', tag='AFPAlignLoc-02', db="CONDBR2"))
36 # acc.merge(addFolders(flags, "/FWD/Onl/AFP/Align/Global", 'FWD_ONL', className='CondAttrListCollection', tag='AFPAlignGlob-01', db="CONDBR2"))
37 
38  # set from where to read the local information - from local file
39 # schema = "<db>sqlite://;schema=Example.db;dbname=CONDBR2</db>"
40 # locFolder = "/FWD/Onl/AFP/ToFParameters/Local"
41 # locTag = "<tag>AFPToFLoc-01</tag>"
42 # vtxFolder = "/FWD/Onl/AFP/ToFParameters/Vertex"
43 # vtxTag = "<tag>AFPToFVtx-01</tag>"
44 # acc.merge(addFolders(flags, schema+locFolder+locTag, className='CondAttrListCollection', db='CONDBR2' ))
45 # acc.merge(addFolders(flags, schema+vtxFolder+vtxTag, className='CondAttrListCollection', db='CONDBR2' ))
46 #
47 # acc.addCondAlgo(CompFactory.AFPDBTester())
48 
49 
50  # this will read from DB for MC (note that the source file is still data that provides run and LB, thus this is really for testing only)
51  schema = "<db>sqlite://;schema=ExampleMC_Align.db;dbname=OFLP200</db>"
52  locFolder = "/FWD/AFP/Align/Local"
53  locTag = "<tag>AFPMCAlignLoc-329484-02</tag>"
54  globFolder = "/FWD/AFP/Align/Global"
55  globTag = "<tag>AFPMCAlignGlob-331020-01</tag>"
56  acc.merge(addFolders(flags, schema+locFolder+locTag, className='CondAttrListCollection', db='OFLP200' ))
57  acc.merge(addFolders(flags, schema+globFolder+globTag, className='CondAttrListCollection', db='OFLP200' ))
58 
59  schema2 = "<db>sqlite://;schema=ExampleMC_ToF.db;dbname=OFLP200</db>"
60  acc.merge(addFolders(flags, schema2+"/FWD/AFP/ToFParameters/Local", className='CondAttrListCollection', tag='AFPMCToFLoc-ideal-01', db='OFLP200' ))
61  acc.merge(addFolders(flags, schema2+"/FWD/AFP/ToFParameters/Vertex", className='CondAttrListCollection', tag='AFPMCToFVtx-ideal-01', db='OFLP200' ))
62 
63 
64  acc.addCondAlgo(CompFactory.AFPDBTester("AFPDBTester", locshiftXkey="/FWD/AFP/Align/Local", globshiftXkey="/FWD/AFP/Align/Global", locToFkey="/FWD/AFP/ToFParameters/Local", vtxToFkey="/FWD/AFP/ToFParameters/Vertex"))
65 
66 
67 
68  return acc
69 
70 

Variable Documentation

◆ acc

testAFPDB.acc = MainServicesCfg(flags)

Definition at line 95 of file testAFPDB.py.

◆ args

testAFPDB.args = flags.fillFromArgs(parser=parser)

Definition at line 97 of file testAFPDB.py.

◆ AtlasVersion

testAFPDB.AtlasVersion

Definition at line 93 of file testAFPDB.py.

◆ CheckDependencies

testAFPDB.CheckDependencies

Definition at line 78 of file testAFPDB.py.

◆ EnableVerboseViews

testAFPDB.EnableVerboseViews

Definition at line 82 of file testAFPDB.py.

◆ flags

testAFPDB.flags = initConfigFlags()

Definition at line 74 of file testAFPDB.py.

◆ GlobalTag

testAFPDB.GlobalTag

Definition at line 91 of file testAFPDB.py.

◆ MaxEvents

testAFPDB.MaxEvents

Definition at line 88 of file testAFPDB.py.

◆ NumConcurrentEvents

testAFPDB.NumConcurrentEvents

Definition at line 86 of file testAFPDB.py.

◆ NumThreads

testAFPDB.NumThreads

Definition at line 85 of file testAFPDB.py.

◆ OutputLevel

testAFPDB.OutputLevel

Definition at line 107 of file testAFPDB.py.

◆ parser

testAFPDB.parser = flags.getArgumentParser()

Definition at line 96 of file testAFPDB.py.

◆ ShowControlFlow

testAFPDB.ShowControlFlow

Definition at line 81 of file testAFPDB.py.

◆ ShowDataDeps

testAFPDB.ShowDataDeps

Definition at line 79 of file testAFPDB.py.

◆ ShowDataFlow

testAFPDB.ShowDataFlow

Definition at line 80 of file testAFPDB.py.

◆ summariseProps

testAFPDB.summariseProps

Definition at line 109 of file testAFPDB.py.

◆ True

testAFPDB.True

Definition at line 109 of file testAFPDB.py.

◆ withDetails

testAFPDB.withDetails

Definition at line 109 of file testAFPDB.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
testAFPDB.testAFPDBCfg
def testAFPDBCfg(flags)
Definition: testAFPDB.py:23
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:81
python.IOVDbSvcConfig.addFoldersSplitOnline
def addFoldersSplitOnline(flags, detDb, onlineFolders, offlineFolders, className=None, extensible=False, addMCString='_OFL', splitMC=False, tag=None, forceDb=None, modifiers='')
Definition: IOVDbSvcConfig.py:162