ATLAS Offline Software
Functions | Variables
python.TileOFCConfig Namespace Reference

Functions

def TileOFCCondAlgCfg (flags, **kwargs)
 
def TileCondToolOfcCoolCfg (flags, **kwargs)
 
def TileCondToolOfcCfg (flags, **kwargs)
 

Variables

 flags
 
 Files
 
 RunType
 
 acc
 
 ofcCoolTool
 
 ofcTool
 
 withDetails
 
 True
 
 summariseProps
 

Function Documentation

◆ TileCondToolOfcCfg()

def python.TileOFCConfig.TileCondToolOfcCfg (   flags,
**  kwargs 
)
Return component accumulator with configured Tile OFC conditions algorithm

Arguments:
    flags  -- Athena configuration flags
Keyword arguments:
    OfcType -- type of Tile OFC. Defaults to OF2. Possible OFC types: OF1, OF2.
    OptFilterDeltaCorrelation -- flag to use delta correlation. Defaults to False.
                                 If it is False auto correlation obtained from data will be used.
    TileCondToolPulseShape - Tile conditions tool to get pulse shape.
                             Provided it will be used. By default new one will be configured.
    TileCondToolAutoCr - Tile conditions tool to get auto correlation.
                         Provided it will be used. By default new one will be configured.

Definition at line 98 of file TileOFCConfig.py.

98 def TileCondToolOfcCfg(flags, **kwargs):
99  """Return component accumulator with configured Tile OFC conditions algorithm
100 
101  Arguments:
102  flags -- Athena configuration flags
103  Keyword arguments:
104  OfcType -- type of Tile OFC. Defaults to OF2. Possible OFC types: OF1, OF2.
105  OptFilterDeltaCorrelation -- flag to use delta correlation. Defaults to False.
106  If it is False auto correlation obtained from data will be used.
107  TileCondToolPulseShape - Tile conditions tool to get pulse shape.
108  Provided it will be used. By default new one will be configured.
109  TileCondToolAutoCr - Tile conditions tool to get auto correlation.
110  Provided it will be used. By default new one will be configured.
111  """
112 
113  acc = ComponentAccumulator()
114 
115  optFilterDeltaCorrelation = kwargs.get('OptFilterDeltaCorrelation', False)
116 
117  from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
118  acc.merge( TileInfoLoaderCfg(flags) )
119 
120  if 'TileCondToolPulseShape' in kwargs:
121  pulseShapeTool = kwargs['TileCondToolPulseShape']
122  else:
123  from TileConditions.TilePulseShapeConfig import TileCondToolPulseShapeCfg
124  pulseShapeTool = acc.popToolsAndMerge( TileCondToolPulseShapeCfg(flags) )
125 
126  if optFilterDeltaCorrelation:
127  autoCorrelationTool = None
128  else:
129  if 'TileCondToolAutoCr' in kwargs:
130  autoCorrelationTool = kwargs['TileCondToolAutoCr']
131  else:
132  from TileConditions.TileAutoCorrelationConfig import TileCondToolAutoCrCfg
133  autoCorrelationTool = acc.popToolsAndMerge( TileCondToolAutoCrCfg(flags) )
134 
135  name = 'TileCondToolOfc'
136  TileCondToolOfc=CompFactory.TileCondToolOfc
137  acc.setPrivateTools( TileCondToolOfc(name,
138  OptFilterDeltaCorrelation = optFilterDeltaCorrelation,
139  TileCondToolPulseShape = pulseShapeTool,
140  TileCondToolAutoCr = autoCorrelationTool) )
141 
142  return acc
143 
144 
145 

◆ TileCondToolOfcCoolCfg()

def python.TileOFCConfig.TileCondToolOfcCoolCfg (   flags,
**  kwargs 
)
Return component accumulator with configured Tile OFC conditions algorithm

Arguments:
    flags  -- Athena configuration flags
Keyword arguments:
    Source -- source of Tile OFC conditions (COOL, FILE). Defaults to COOL.
    TileOfc -- name of Tile OFC conditions. Defaults to TileOfc + OfcType (capitalized).
    OfcType -- type of Tile OFC. Defaults to OF2. Possible OFC types: OF1, OF2.

Definition at line 66 of file TileOFCConfig.py.

66 def TileCondToolOfcCoolCfg(flags, **kwargs):
67  """Return component accumulator with configured Tile OFC conditions algorithm
68 
69  Arguments:
70  flags -- Athena configuration flags
71  Keyword arguments:
72  Source -- source of Tile OFC conditions (COOL, FILE). Defaults to COOL.
73  TileOfc -- name of Tile OFC conditions. Defaults to TileOfc + OfcType (capitalized).
74  OfcType -- type of Tile OFC. Defaults to OF2. Possible OFC types: OF1, OF2.
75  """
76 
77  acc = ComponentAccumulator()
78 
79  kwargs.setdefault('Source', 'COOL')
80  kwargs.setdefault('OfcType', 'OF2')
81 
82  ofcType = kwargs['OfcType']
83  ofc = 'TileOfc' + ofcType.capitalize()
84 
85  kwargs.setdefault('TileOfc', ofc)
86 
87  ofc = kwargs['TileOfc']
88  name = 'TileCondToolOfcCool'
89 
90  acc.merge( TileOFCCondAlgCfg(flags, **kwargs) )
91 
92  TileCondToolOfcCool=CompFactory.TileCondToolOfcCool
93  acc.setPrivateTools( TileCondToolOfcCool(name, TileOfc = ofc) )
94 
95  return acc
96 
97 

◆ TileOFCCondAlgCfg()

def python.TileOFCConfig.TileOFCCondAlgCfg (   flags,
**  kwargs 
)
Return component accumulator with configured Tile OFC conditions algorithm

Arguments:
    flags  -- Athena configuration flags
Keyword arguments:
    Source -- source of Tile OFC conditions (COOL, FILE). Defaults to COOL.
    TileOfc -- name of Tile OFC conditions object starts with. Defaults to TileOfc. 
    OfcType -- type of Tile OFC. Defaults to OF2. Possible OFC types: OF1, OF2.

Definition at line 9 of file TileOFCConfig.py.

9 def TileOFCCondAlgCfg(flags, **kwargs):
10  """Return component accumulator with configured Tile OFC conditions algorithm
11 
12  Arguments:
13  flags -- Athena configuration flags
14  Keyword arguments:
15  Source -- source of Tile OFC conditions (COOL, FILE). Defaults to COOL.
16  TileOfc -- name of Tile OFC conditions object starts with. Defaults to TileOfc.
17  OfcType -- type of Tile OFC. Defaults to OF2. Possible OFC types: OF1, OF2.
18  """
19 
20  acc = ComponentAccumulator()
21 
22  runType = flags.Tile.RunType
23 
24  source = kwargs.get('Source', 'COOL')
25  ofc = kwargs.get('TileOfc', 'TileOfc')
26  ofcType = kwargs.get('OfcType', 'OF2')
27 
28  ofcType = ofcType.upper()
29  if ofcType not in ['OF1', 'OF2']:
30  raise(Exception("Invalid Tile OFC type: %s" % ofcType))
31 
32  name = ofc + 'CondAlg'
33 
34  if source == 'COOL':
35  # Connect COOL Tile conditions proxies to the algorithm (default)
36 
37  from TileConditions.TileFolders import TileFolders
38  folders = TileFolders(isMC = flags.Input.isMC, isOnline = flags.Common.isOnline)
39 
40  ofcType = ofcType + '/' + runType.getCommonType().value
41 
42  runNumber = flags.Input.RunNumbers[0]
43  runSplitOnline = 314449 #Use OFC stored in online folder for all runs before 2017
44  if flags.IOVDb.DatabaseInstance == 'CONDBR2' and runType is TileRunType.PHY and runNumber > runSplitOnline:
45  ofcFolder = folders.addSplitOnline('/TILE/ONL01/FILTER/' + ofcType, '/TILE/OFL02/FILTER/' + ofcType)
46  else:
47  ofcFolder = folders.addSplitMC('/TILE/ONL01/FILTER/' + ofcType, '/TILE/ONL01/FILTER/' + ofcType)
48 
49  TileCondProxyCoolOfc=CompFactory.getComp("TileCondProxyCool<TileCalibDrawerOfc>")
50  ofcProxy = TileCondProxyCoolOfc('TileCondProxyCool_Ofc', Source = ofcFolder)
51 
52  from IOVDbSvc.IOVDbSvcConfig import addFolderList
53  acc.merge( addFolderList(flags, folders.get()) )
54 
55  else:
56  raise(Exception("Invalid source: %s" % source))
57 
58  TileCalibOfcCondAlg=CompFactory.getComp("TileCalibCondAlg<TileCalibDrawerOfc>")
59  ofcCondAlg = TileCalibOfcCondAlg( name = name, ConditionsProxy = ofcProxy, TileCalibData = ofc)
60 
61  acc.addCondAlgo(ofcCondAlg)
62 
63  return acc
64 
65 

Variable Documentation

◆ acc

python.TileOFCConfig.acc

Definition at line 161 of file TileOFCConfig.py.

◆ Files

python.TileOFCConfig.Files

Definition at line 157 of file TileOFCConfig.py.

◆ flags

python.TileOFCConfig.flags

Definition at line 156 of file TileOFCConfig.py.

◆ ofcCoolTool

python.TileOFCConfig.ofcCoolTool

Definition at line 163 of file TileOFCConfig.py.

◆ ofcTool

python.TileOFCConfig.ofcTool

Definition at line 166 of file TileOFCConfig.py.

◆ RunType

python.TileOFCConfig.RunType

Definition at line 158 of file TileOFCConfig.py.

◆ summariseProps

python.TileOFCConfig.summariseProps

Definition at line 169 of file TileOFCConfig.py.

◆ True

python.TileOFCConfig.True

Definition at line 169 of file TileOFCConfig.py.

◆ withDetails

python.TileOFCConfig.withDetails

Definition at line 169 of file TileOFCConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TileOFCConfig.TileOFCCondAlgCfg
def TileOFCCondAlgCfg(flags, **kwargs)
Definition: TileOFCConfig.py:9
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
TileCondToolOfc
Calculates OFCs on the fly using pulse shapes and A/C matrix from database.
Definition: TileCondToolOfc.h:40
python.TileOFCConfig.TileCondToolOfcCoolCfg
def TileCondToolOfcCoolCfg(flags, **kwargs)
Definition: TileOFCConfig.py:66
python.TileInfoLoaderConfig.TileInfoLoaderCfg
def TileInfoLoaderCfg(flags, **kwargs)
Definition: TileInfoLoaderConfig.py:12
python.TileAutoCorrelationConfig.TileCondToolAutoCrCfg
def TileCondToolAutoCrCfg(flags, **kwargs)
Definition: TileAutoCorrelationConfig.py:63
python.TilePulseShapeConfig.TileCondToolPulseShapeCfg
def TileCondToolPulseShapeCfg(flags, **kwargs)
Definition: TilePulseShapeConfig.py:86
TileCondToolOfcCool
extracts OFCs from database
Definition: TileCondToolOfcCool.h:28
TileCalibCondAlg
Condition algorithm to prepare TileCalibData object and put it into condition store.
Definition: TileCalibCondAlg.h:24
python.TileOFCConfig.TileCondToolOfcCfg
def TileCondToolOfcCfg(flags, **kwargs)
Definition: TileOFCConfig.py:98