ATLAS Offline Software
Functions | Variables
TileDQstatusConfig Namespace Reference

Functions

def TileDQstatusToolCfg (flags, **kwargs)
 
def TileDQstatusAlgCfg (flags, **kwargs)
 

Variables

 flags
 
 Files
 
 AtlasVersion
 
 GlobalTag
 
 RunType
 
 acc
 
 withDetails
 
 True
 
 summariseProps
 
 sc
 
 maxEvents
 

Function Documentation

◆ TileDQstatusAlgCfg()

def TileDQstatusConfig.TileDQstatusAlgCfg (   flags,
**  kwargs 
)
Return component accumulator with configured Tile DQ status algorithm

Arguments:
    flags  -- Athena configuration flags
    TileDQstatus - name of Tile DQ status produced
    TileDigitsContainer - name of Tile digits container, provided it will be used,
                          otherwise it will be determined automatically depending on flags.
    TileRawChannelContainer - name of Tile raw channel container, provided it will be used,
                              otherwise it will be determined automatically depending on flags.
    TileBeamElemContainer - name of Tile beam elements container, provided it will be used,
                            otherwise it will be determined automatically depending on flags.

Definition at line 31 of file TileDQstatusConfig.py.

31 def TileDQstatusAlgCfg(flags, **kwargs):
32  """Return component accumulator with configured Tile DQ status algorithm
33 
34  Arguments:
35  flags -- Athena configuration flags
36  TileDQstatus - name of Tile DQ status produced
37  TileDigitsContainer - name of Tile digits container, provided it will be used,
38  otherwise it will be determined automatically depending on flags.
39  TileRawChannelContainer - name of Tile raw channel container, provided it will be used,
40  otherwise it will be determined automatically depending on flags.
41  TileBeamElemContainer - name of Tile beam elements container, provided it will be used,
42  otherwise it will be determined automatically depending on flags.
43  """
44 
45 
46  acc = ComponentAccumulator()
47  kwargs.setdefault('TileDQstatus', 'TileDQstatus')
48 
49  name = kwargs['TileDQstatus'] + 'Alg'
50  kwargs.setdefault('name', name)
51 
52  if not (flags.Input.isMC or flags.Overlay.DataOverlay or flags.Input.Format is Format.POOL):
53  if flags.Tile.RunType in [TileRunType.PHY, TileRunType.GAPLAS, TileRunType.GAPCIS]:
54  beamElemContainer = ""
55  else:
56  beamElemContainer = 'TileBeamElemCnt'
57 
58  if flags.Tile.readDigits:
59  digitsContainer = 'TileDigitsCnt'
60  else:
61  digitsContainer = ""
62 
63  rawChannelContainer = 'TileRawChannelCnt'
64 
65  elif flags.Common.isOverlay and flags.Overlay.DataOverlay:
66  beamElemContainer = ''
67  digitsContainer = flags.Overlay.BkgPrefix + 'TileDigitsCnt'
68  rawChannelContainer = flags.Overlay.BkgPrefix + 'TileRawChannelCnt'
69 
70  else:
71  beamElemContainer = ""
72  digitsContainer = ""
73  rawChannelContainer = ""
74 
75  kwargs.setdefault('TileBeamElemContainer', beamElemContainer)
76  kwargs.setdefault('TileDigitsContainer', digitsContainer)
77  kwargs.setdefault('TileRawChannelContainer', rawChannelContainer)
78 
79  if 'TileDQstatusTool' not in kwargs:
80  tileDQstatusTool = acc.popToolsAndMerge( TileDQstatusToolCfg(flags) )
81  kwargs['TileDQstatusTool'] = tileDQstatusTool
82 
83  TileDQstatusAlg=CompFactory.TileDQstatusAlg
84  acc.addEventAlgo(TileDQstatusAlg(**kwargs), primary = True)
85 
86  return acc
87 
88 
89 

◆ TileDQstatusToolCfg()

def TileDQstatusConfig.TileDQstatusToolCfg (   flags,
**  kwargs 
)
Return component accumulator with configured private Tile DQ status tool

Arguments:
    flags  -- Athena configuration flags
    SimulateTrips - flag to simulate drawer trips. Defaults to False.

Definition at line 10 of file TileDQstatusConfig.py.

10 def TileDQstatusToolCfg(flags, **kwargs):
11  """Return component accumulator with configured private Tile DQ status tool
12 
13  Arguments:
14  flags -- Athena configuration flags
15  SimulateTrips - flag to simulate drawer trips. Defaults to False.
16  """
17 
18  acc = ComponentAccumulator()
19 
20  kwargs.setdefault('SimulateTrips', False)
21 
22  from TileConditions.TileBadChannelsConfig import TileBadChannelsCondAlgCfg
23  acc.merge( TileBadChannelsCondAlgCfg(flags) )
24 
25  TileDQstatusTool=CompFactory.TileDQstatusTool
26  acc.setPrivateTools( TileDQstatusTool(**kwargs) )
27 
28  return acc
29 
30 

Variable Documentation

◆ acc

TileDQstatusConfig.acc

Definition at line 108 of file TileDQstatusConfig.py.

◆ AtlasVersion

TileDQstatusConfig.AtlasVersion

Definition at line 102 of file TileDQstatusConfig.py.

◆ Files

TileDQstatusConfig.Files

Definition at line 101 of file TileDQstatusConfig.py.

◆ flags

TileDQstatusConfig.flags

Definition at line 100 of file TileDQstatusConfig.py.

◆ GlobalTag

TileDQstatusConfig.GlobalTag

Definition at line 103 of file TileDQstatusConfig.py.

◆ maxEvents

TileDQstatusConfig.maxEvents

Definition at line 119 of file TileDQstatusConfig.py.

◆ RunType

TileDQstatusConfig.RunType

Definition at line 104 of file TileDQstatusConfig.py.

◆ sc

TileDQstatusConfig.sc

Definition at line 119 of file TileDQstatusConfig.py.

◆ summariseProps

TileDQstatusConfig.summariseProps

Definition at line 116 of file TileDQstatusConfig.py.

◆ True

TileDQstatusConfig.True

Definition at line 116 of file TileDQstatusConfig.py.

◆ withDetails

TileDQstatusConfig.withDetails

Definition at line 116 of file TileDQstatusConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TileDQstatusConfig.TileDQstatusToolCfg
def TileDQstatusToolCfg(flags, **kwargs)
Definition: TileDQstatusConfig.py:10
TileDQstatusTool
Definition: TileDQstatusTool.h:30
TileDQstatusAlg
Produce a TileDQstatus object.
Definition: TileDQstatusAlg.h:41
TileDQstatusConfig.TileDQstatusAlgCfg
def TileDQstatusAlgCfg(flags, **kwargs)
Definition: TileDQstatusConfig.py:31
python.TileBadChannelsConfig.TileBadChannelsCondAlgCfg
def TileBadChannelsCondAlgCfg(flags, **kwargs)
Definition: TileBadChannelsConfig.py:10