ATLAS Offline Software
Functions | Variables
python.TileMuIDConfig Namespace Reference

Functions

def TileMuIDCondAlgCfg (flags, **kwargs)
 
def TileCondToolMuIDCfg (flags, **kwargs)
 

Variables

 flags
 
 Files
 
 acc
 
 muIDTool
 
 withDetails
 
 True
 
 summariseProps
 

Function Documentation

◆ TileCondToolMuIDCfg()

def python.TileMuIDConfig.TileCondToolMuIDCfg (   flags,
**  kwargs 
)
Return component accumulator with configured private Tile MuID conditions tool
Arguments:
    flags  -- Athena configuration flags
Keyword arguments:
    Source -- source of Tile MuID conditions (COOL, FILE). Defaults to COOL.
    TileMuID -- name of Tile MuID conditions object. Defaults to TileMuID.

Definition at line 56 of file TileMuIDConfig.py.

56 def TileCondToolMuIDCfg(flags, **kwargs):
57  """Return component accumulator with configured private Tile MuID conditions tool
58  Arguments:
59  flags -- Athena configuration flags
60  Keyword arguments:
61  Source -- source of Tile MuID conditions (COOL, FILE). Defaults to COOL.
62  TileMuID -- name of Tile MuID conditions object. Defaults to TileMuID.
63  """
64 
65  acc = ComponentAccumulator()
66 
67  kwargs.setdefault('Source', 'COOL')
68  kwargs.setdefault('TileMuID', 'TileMuID')
69 
70  muID = kwargs['TileMuID']
71  name = 'TileCondToolMuID'
72 
73  acc.merge( TileMuIDCondAlgCfg(flags, **kwargs) )
74 
75  TileCondToolMuID=CompFactory.TileCondToolMuID
76  acc.setPrivateTools( TileCondToolMuID(name, TileMuID = muID) )
77 
78  return acc
79 
80 

◆ TileMuIDCondAlgCfg()

def python.TileMuIDConfig.TileMuIDCondAlgCfg (   flags,
**  kwargs 
)
Return component accumulator with configured Tile MuID conditions algorithm

Arguments:
    flags  -- Athena configuration flags
Keyword arguments:
    Source -- source of Tile MuID conditions (COOL, FILE). Defaults to COOL.
    TileMuID -- name of Tile MuID conditions object. Defaults to TileMuID.

Definition at line 8 of file TileMuIDConfig.py.

8 def TileMuIDCondAlgCfg(flags, **kwargs):
9  """Return component accumulator with configured Tile MuID conditions algorithm
10 
11  Arguments:
12  flags -- Athena configuration flags
13  Keyword arguments:
14  Source -- source of Tile MuID conditions (COOL, FILE). Defaults to COOL.
15  TileMuID -- name of Tile MuID conditions object. Defaults to TileMuID.
16  """
17 
18  acc = ComponentAccumulator()
19 
20  source = kwargs.get('Source', 'COOL')
21  muID = kwargs.get('TileMuID', 'TileMuID')
22 
23  name = muID + 'CondAlg'
24 
25  if source == 'COOL':
26  # Connect COOL Tile conditions proxies to the algorithm (default)
27 
28  from TileConditions.TileFolders import TileFolders
29  folders = TileFolders(isMC = flags.Input.isMC, isOnline = flags.Common.isOnline)
30 
31  muIDFolder = folders.addSplitMC('/TILE/ONL01/MUID', '/TILE/ONL01/MUID')
32 
33  TileCondProxyCoolFlt=CompFactory.getComp("TileCondProxyCool<TileCalibDrawerFlt>")
34  muIDProxy = TileCondProxyCoolFlt('TileCondProxyCool_MuID', Source = muIDFolder)
35 
36  from IOVDbSvc.IOVDbSvcConfig import addFolderList
37  acc.merge( addFolderList(flags, folders.get()) )
38 
39  elif source == 'FILE':
40  # Connect FILE Tile conditions proxies to the algorithm
41  TileCondProxyFileFlt=CompFactory.getComp("TileCondProxyFile<TileCalibDrawerFlt>")
42  muIDProxy = TileCondProxyFileFlt('TileCondProxyFile_MuID', Source = 'TileDefault.muid')
43  else:
44  raise(Exception("Invalid source: %s" % source))
45 
46  TileCalibFltCondAlg=CompFactory.getComp("TileCalibCondAlg<TileCalibDrawerFlt>")
47  muIDCondAlg = TileCalibFltCondAlg( name = name,
48  ConditionsProxy = muIDProxy,
49  TileCalibData = muID)
50 
51  acc.addCondAlgo(muIDCondAlg)
52 
53  return acc
54 
55 

Variable Documentation

◆ acc

python.TileMuIDConfig.acc

Definition at line 95 of file TileMuIDConfig.py.

◆ Files

python.TileMuIDConfig.Files

Definition at line 92 of file TileMuIDConfig.py.

◆ flags

python.TileMuIDConfig.flags

Definition at line 91 of file TileMuIDConfig.py.

◆ muIDTool

python.TileMuIDConfig.muIDTool

Definition at line 97 of file TileMuIDConfig.py.

◆ summariseProps

python.TileMuIDConfig.summariseProps

Definition at line 100 of file TileMuIDConfig.py.

◆ True

python.TileMuIDConfig.True

Definition at line 100 of file TileMuIDConfig.py.

◆ withDetails

python.TileMuIDConfig.withDetails

Definition at line 100 of file TileMuIDConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.IOVDbSvcConfig.addFolderList
def addFolderList(flags, listOfFolderInfoTuple, extensible=False, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:90
TileCondProxyCool
The tool to get Tile conditions data from DB.
Definition: TileCondProxyCool.h:25
TileCondToolMuID
Definition: TileCondToolMuID.h:21
python.TileMuIDConfig.TileCondToolMuIDCfg
def TileCondToolMuIDCfg(flags, **kwargs)
Definition: TileMuIDConfig.py:56
TileCondProxyFile
The tool to get Tile conditions data from file.
Definition: TileCondProxyFile.h:28
TileCalibCondAlg
Condition algorithm to prepare TileCalibData object and put it into condition store.
Definition: TileCalibCondAlg.h:24
python.TileMuIDConfig.TileMuIDCondAlgCfg
def TileMuIDCondAlgCfg(flags, **kwargs)
Definition: TileMuIDConfig.py:8