ATLAS Offline Software
Functions | Variables
RunTileTBMonitoring Namespace Reference

Functions

def configureFlagsAndArgsFromPartition (flags, args, partition, log)
 
def TileTestBeamMonitoringCfg (flags, fragIDs=[0x100, 0x101, 0x200, 0x201, 0x402], useFELIX=False, **kwargs)
 

Variables

 flags
 
 parser
 
 help
 
 action
 
 dest
 
 nargs
 
 default
 
 type
 
 int
 
 str
 
 choices
 
 update_group
 
 args
 
 _
 
 fragIDs
 
 fragID
 
 base
 
 Files
 
 useTrigger
 
 enableLumiAccess
 
 FileKey
 
 isOnline
 
 AtlasVersion
 
 GlobalTag
 
 doFit
 
 useDCS
 
 NoiseFilter
 
 correctTime
 
 correctTimeJumps
 
 BestPhaseFromCOOL
 
 doOverflowFit
 
 PrintAlgsSequence
 
 isMC
 
 Format
 
 partition
 
 RunType
 
 Type
 
 beamEnergy
 
 Energy
 
 runNumber
 
 HISTFileName
 
 pattern
 
 evaluate
 
 cfg
 
 readMuRcv
 
 readDigits
 
 readRawChannel
 
 readDigitsFlx
 
 readBeamElem
 
 stateless
 
 bsEmonInputSvc
 
 Partition
 
 Key
 
 KeyValue
 
 KeyCount
 
 PublishName
 
 ISServer
 
 UpdatePeriod
 
 Frequency
 
 LVL1Items
 
 LVL1Names
 
 LVL1Logic
 
 LVL1Origin
 
 StreamType
 
 StreamNames
 
 StreamLogic
 
 GroupName
 
 ProcessCorruptedEvents
 
 BufferSize
 
 useDemoCabling
 
 demoCabling
 
 nsamples
 
 useFELIX
 
 RODStatusProxy
 
 withDetails
 
 True
 
 summariseProps
 
 printDefaults
 
 sc
 

Function Documentation

◆ configureFlagsAndArgsFromPartition()

def RunTileTBMonitoring.configureFlagsAndArgsFromPartition (   flags,
  args,
  partition,
  log 
)
Configure the flags and args from partition in online

Configure the following flags from partition in online:
    run type, run number, beam type, beam energy, project

Configure the following args from partition in online: args.nsamples

Definition at line 20 of file RunTileTBMonitoring.py.

20 def configureFlagsAndArgsFromPartition(flags, args, partition, log):
21  """
22  Configure the flags and args from partition in online
23 
24  Configure the following flags from partition in online:
25  run type, run number, beam type, beam energy, project
26 
27  Configure the following args from partition in online: args.nsamples
28  """
29 
30  from ipc import IPCPartition
31  from ispy import ISObject
32  ipcPartition = IPCPartition(partition)
33  if not ipcPartition.isValid():
34  log.error('Partition: ' + ipcPartition.name() + ' is not valid')
35  sys.exit(1)
36 
37  # Set up default values
38  runType = 'Physics'
39  beamType = 'collisions'
40  beamEnergy = 200 * GeV
41  runNumber = 2400000
42  project = 'data_H8'
43 
44  try:
45  runParams = ISObject(ipcPartition, 'RunParams.SOR_RunParams', 'RunParams')
46  except Exception:
47  log.warning(f'No Run Parameters in IS => Set defaults: partition: {partition}, beam type: {beamType}'
48  + f', beam energy: {beamEnergy}, run number: {runNumber}, project tag: {project}')
49  else:
50  runParams.checkout()
51  beamType = runParams.beam_type
52  beamEnergy = runParams.beam_energy * GeV
53  runNumber = runParams.run_number
54  project = runParams.T0_project_tag
55  runType = runParams.run_type
56  log.info(f'RUN CONFIGURATION: run type: {runType}, beam type: {beamType}'
57  + f', beam energy: {beamEnergy}, run number: {runNumber}, project: {project}')
58 
59  try:
60  cisParams = ISObject(ipcPartition, 'TileParams.cispar', 'TileCISparameters')
61  except Exception:
62  log.info('Could not find Tile Parameters in IS')
63  else:
64  try:
65  cisParams.checkout()
66  except Exception:
67  log.info("Could not get Tile Parameters from IS")
68  else:
69  log.info(f'TILE CONFIGURATION: CISPAR size: {len(cisParams.data)}')
70  cispar = 'TILE CONFIGURATION: CISPAR: '
71  for d in cisParams.data:
72  cispar += ' ' + str(d)
73  log.info(cispar)
74 
75  if len(cisParams.data) == 16:
76  data = cisParams.data
77  if data[12] == 1:
78  runType = 'Physics'
79  elif data[12] == 2:
80  runType = 'Laser'
81  elif data[12] == 4:
82  runType = 'Pedestals'
83  elif data[12] == 8:
84  runType = runType if 'mono' in runType else 'CIS'
85 
86  log.info(f'TILE CONFIGURATION: RunType: {runType}, Mode: {data[0]}, Samples: {data[1]}, Pipeline: {data[2]}'
87  + f', I3Delay: {data[3]}, Event: {data[4]}, Phase: {data[5]}, DAC: {data[6]}, Capacity: {data[7]}')
88 
89  # Try to get number of samples from partition
90  nSamples = 15 # Default number of samples
91  try:
92  dspConfig = ISObject(ipcPartition, 'TileParams.TileCal_DSPConfig', 'TileCal_IS_DSPConfig')
93  except Exception:
94  log.info(f"Could not find Tile DSP Config in IS => set default number of samples to {nSamples}")
95  else:
96  try:
97  dspConfig.checkout()
98  except Exception:
99  log.info(f"Could not get Tile DSP Config from IS => set default number of samples to {nSamples}")
100  else:
101  nSamples = dspConfig.samples
102  log.info(f"Set number of samples from DSP Config in IS: {nSamples}")
103 
104  if 'Physics' in runType:
105  flags.Tile.RunType = TileRunType.PHY
106  elif 'CIS' in runType:
107  flags.Tile.RunType = TileRunType.MONOCIS if 'mono' in runType else TileRunType.CIS
108  elif 'Laser' in runType:
109  flags.Tile.RunType = TileRunType.LAS
110  elif 'Pedestals' in runType:
111  flags.Tile.RunType = TileRunType.PED
112 
113  if beamType in ['collisions', 'singlebeam', 'cosmics', 'testbeam']:
114  flags.Beam.Type = BeamType(beamType)
115 
116  flags.Beam.Energy = beamEnergy if beamEnergy > 1 * GeV else 200 * GeV
117  flags.Input.ProjectName = project
118  flags.Input.RunNumbers = [runNumber]
119  args.nsamples = nSamples
120 
121 

◆ TileTestBeamMonitoringCfg()

def RunTileTBMonitoring.TileTestBeamMonitoringCfg (   flags,
  fragIDs = [0x100, 0x101, 0x200, 0x201, 0x402],
  useFELIX = False,
**  kwargs 
)
Function to configure Tile TestBeam monitoring.

Definition at line 122 of file RunTileTBMonitoring.py.

122 def TileTestBeamMonitoringCfg(flags, fragIDs=[0x100, 0x101, 0x200, 0x201, 0x402], useFELIX=False, **kwargs):
123 
124  ''' Function to configure Tile TestBeam monitoring.'''
125 
126  acc = ComponentAccumulator()
127 
128  caloCells = 'AllCaloHG' if flags.Tile.RunType.isBiGain() else 'AllCalo'
129 
130  from TileMonitoring.TileTBBeamMonitorAlgorithm import TileTBBeamMonitoringConfig
131  acc.merge(TileTBBeamMonitoringConfig(flags, fragIDs=fragIDs, CaloCellContainer=caloCells))
132 
133  from TileMonitoring.TileTBMonitorAlgorithm import TileTBMonitoringConfig
134  acc.merge(TileTBMonitoringConfig(flags, fragIDs=fragIDs, CaloCellContainer=caloCells))
135 
136  from TileMonitoring.TileTBPulseMonitorAlgorithm import TileTBPulseMonitoringConfig
137  acc.merge(TileTBPulseMonitoringConfig(flags, timeRange=[-200, 200], fragIDs=fragIDs))
138 
139  from TileMonitoring.TileTBCellMonitorAlgorithm import TileTBCellMonitoringConfig
140  acc.merge(TileTBCellMonitoringConfig(flags, timeRange=[-200, 200], fragIDs=fragIDs))
141 
142  if useFELIX:
143  from TileMonitoring.TileTBCellMonitorAlgorithm import TileTBCellMonitoringConfig
144  acc.merge(TileTBCellMonitoringConfig(flags, timeRange=[-200, 200], fragIDs=fragIDs, useFELIX=True))
145 
146  from TileMonitoring.TileTBPulseMonitorAlgorithm import TileTBPulseMonitoringConfig
147  acc.merge(TileTBPulseMonitoringConfig(flags, timeRange=[-200, 200], fragIDs=fragIDs, useFELIX=True))
148 
149  from TileMonitoring.TileDigitsFlxMonitorAlgorithm import TileDigitsFlxMonitoringConfig
150  acc.merge(TileDigitsFlxMonitoringConfig(flags))
151 
152  from TileMonitoring.TileRawChannelFlxMonitorAlgorithm import TileRawChannelFlxMonitoringConfig
153  acc.merge(TileRawChannelFlxMonitoringConfig(flags))
154 
155  return acc
156 
157 

Variable Documentation

◆ _

RunTileTBMonitoring._
private

Definition at line 203 of file RunTileTBMonitoring.py.

◆ action

RunTileTBMonitoring.action

Definition at line 173 of file RunTileTBMonitoring.py.

◆ args

RunTileTBMonitoring.args

Definition at line 203 of file RunTileTBMonitoring.py.

◆ AtlasVersion

RunTileTBMonitoring.AtlasVersion

Definition at line 226 of file RunTileTBMonitoring.py.

◆ base

RunTileTBMonitoring.base

Definition at line 212 of file RunTileTBMonitoring.py.

◆ beamEnergy

RunTileTBMonitoring.beamEnergy

Definition at line 248 of file RunTileTBMonitoring.py.

◆ BestPhaseFromCOOL

RunTileTBMonitoring.BestPhaseFromCOOL

Definition at line 234 of file RunTileTBMonitoring.py.

◆ bsEmonInputSvc

RunTileTBMonitoring.bsEmonInputSvc

Definition at line 284 of file RunTileTBMonitoring.py.

◆ BufferSize

RunTileTBMonitoring.BufferSize

Definition at line 302 of file RunTileTBMonitoring.py.

◆ cfg

RunTileTBMonitoring.cfg

Definition at line 272 of file RunTileTBMonitoring.py.

◆ choices

RunTileTBMonitoring.choices

Definition at line 191 of file RunTileTBMonitoring.py.

◆ correctTime

RunTileTBMonitoring.correctTime

Definition at line 232 of file RunTileTBMonitoring.py.

◆ correctTimeJumps

RunTileTBMonitoring.correctTimeJumps

Definition at line 233 of file RunTileTBMonitoring.py.

◆ default

RunTileTBMonitoring.default

Definition at line 175 of file RunTileTBMonitoring.py.

◆ demoCabling

RunTileTBMonitoring.demoCabling

Definition at line 306 of file RunTileTBMonitoring.py.

◆ dest

RunTileTBMonitoring.dest

Definition at line 175 of file RunTileTBMonitoring.py.

◆ doFit

RunTileTBMonitoring.doFit

Definition at line 229 of file RunTileTBMonitoring.py.

◆ doOverflowFit

RunTileTBMonitoring.doOverflowFit

Definition at line 235 of file RunTileTBMonitoring.py.

◆ enableLumiAccess

RunTileTBMonitoring.enableLumiAccess

Definition at line 222 of file RunTileTBMonitoring.py.

◆ Energy

RunTileTBMonitoring.Energy

Definition at line 249 of file RunTileTBMonitoring.py.

◆ evaluate

RunTileTBMonitoring.evaluate

Definition at line 268 of file RunTileTBMonitoring.py.

◆ FileKey

RunTileTBMonitoring.FileKey

Definition at line 223 of file RunTileTBMonitoring.py.

◆ Files

RunTileTBMonitoring.Files

Definition at line 215 of file RunTileTBMonitoring.py.

◆ flags

RunTileTBMonitoring.flags

Definition at line 169 of file RunTileTBMonitoring.py.

◆ Format

RunTileTBMonitoring.Format

Definition at line 241 of file RunTileTBMonitoring.py.

◆ fragID

RunTileTBMonitoring.fragID

Definition at line 212 of file RunTileTBMonitoring.py.

◆ fragIDs

RunTileTBMonitoring.fragIDs

Definition at line 212 of file RunTileTBMonitoring.py.

◆ Frequency

RunTileTBMonitoring.Frequency

Definition at line 292 of file RunTileTBMonitoring.py.

◆ GlobalTag

RunTileTBMonitoring.GlobalTag

Definition at line 227 of file RunTileTBMonitoring.py.

◆ GroupName

RunTileTBMonitoring.GroupName

Definition at line 300 of file RunTileTBMonitoring.py.

◆ help

RunTileTBMonitoring.help

Definition at line 171 of file RunTileTBMonitoring.py.

◆ HISTFileName

RunTileTBMonitoring.HISTFileName

Definition at line 259 of file RunTileTBMonitoring.py.

◆ int

RunTileTBMonitoring.int

Definition at line 177 of file RunTileTBMonitoring.py.

◆ isMC

RunTileTBMonitoring.isMC

Definition at line 240 of file RunTileTBMonitoring.py.

◆ isOnline

RunTileTBMonitoring.isOnline

Definition at line 224 of file RunTileTBMonitoring.py.

◆ ISServer

RunTileTBMonitoring.ISServer

Definition at line 290 of file RunTileTBMonitoring.py.

◆ Key

RunTileTBMonitoring.Key

Definition at line 286 of file RunTileTBMonitoring.py.

◆ KeyCount

RunTileTBMonitoring.KeyCount

Definition at line 288 of file RunTileTBMonitoring.py.

◆ KeyValue

RunTileTBMonitoring.KeyValue

Definition at line 287 of file RunTileTBMonitoring.py.

◆ LVL1Items

RunTileTBMonitoring.LVL1Items

Definition at line 293 of file RunTileTBMonitoring.py.

◆ LVL1Logic

RunTileTBMonitoring.LVL1Logic

Definition at line 295 of file RunTileTBMonitoring.py.

◆ LVL1Names

RunTileTBMonitoring.LVL1Names

Definition at line 294 of file RunTileTBMonitoring.py.

◆ LVL1Origin

RunTileTBMonitoring.LVL1Origin

Definition at line 296 of file RunTileTBMonitoring.py.

◆ nargs

RunTileTBMonitoring.nargs

Definition at line 175 of file RunTileTBMonitoring.py.

◆ NoiseFilter

RunTileTBMonitoring.NoiseFilter

Definition at line 231 of file RunTileTBMonitoring.py.

◆ nsamples

RunTileTBMonitoring.nsamples

Definition at line 306 of file RunTileTBMonitoring.py.

◆ parser

RunTileTBMonitoring.parser

Definition at line 170 of file RunTileTBMonitoring.py.

◆ partition

RunTileTBMonitoring.partition

Definition at line 242 of file RunTileTBMonitoring.py.

◆ Partition

RunTileTBMonitoring.Partition

Definition at line 285 of file RunTileTBMonitoring.py.

◆ pattern

RunTileTBMonitoring.pattern

Definition at line 268 of file RunTileTBMonitoring.py.

◆ PrintAlgsSequence

RunTileTBMonitoring.PrintAlgsSequence

Definition at line 237 of file RunTileTBMonitoring.py.

◆ printDefaults

RunTileTBMonitoring.printDefaults

Definition at line 329 of file RunTileTBMonitoring.py.

◆ ProcessCorruptedEvents

RunTileTBMonitoring.ProcessCorruptedEvents

Definition at line 301 of file RunTileTBMonitoring.py.

◆ PublishName

RunTileTBMonitoring.PublishName

Definition at line 289 of file RunTileTBMonitoring.py.

◆ readBeamElem

RunTileTBMonitoring.readBeamElem

Definition at line 280 of file RunTileTBMonitoring.py.

◆ readDigits

RunTileTBMonitoring.readDigits

Definition at line 277 of file RunTileTBMonitoring.py.

◆ readDigitsFlx

RunTileTBMonitoring.readDigitsFlx

Definition at line 279 of file RunTileTBMonitoring.py.

◆ readMuRcv

RunTileTBMonitoring.readMuRcv

Definition at line 276 of file RunTileTBMonitoring.py.

◆ readRawChannel

RunTileTBMonitoring.readRawChannel

Definition at line 278 of file RunTileTBMonitoring.py.

◆ RODStatusProxy

RunTileTBMonitoring.RODStatusProxy

Definition at line 321 of file RunTileTBMonitoring.py.

◆ runNumber

RunTileTBMonitoring.runNumber

Definition at line 258 of file RunTileTBMonitoring.py.

◆ RunType

RunTileTBMonitoring.RunType

Definition at line 245 of file RunTileTBMonitoring.py.

◆ sc

RunTileTBMonitoring.sc

Definition at line 334 of file RunTileTBMonitoring.py.

◆ stateless

RunTileTBMonitoring.stateless

Definition at line 281 of file RunTileTBMonitoring.py.

◆ str

RunTileTBMonitoring.str

Definition at line 184 of file RunTileTBMonitoring.py.

◆ StreamLogic

RunTileTBMonitoring.StreamLogic

Definition at line 299 of file RunTileTBMonitoring.py.

◆ StreamNames

RunTileTBMonitoring.StreamNames

Definition at line 298 of file RunTileTBMonitoring.py.

◆ StreamType

RunTileTBMonitoring.StreamType

Definition at line 297 of file RunTileTBMonitoring.py.

◆ summariseProps

RunTileTBMonitoring.summariseProps

Definition at line 329 of file RunTileTBMonitoring.py.

◆ True

RunTileTBMonitoring.True

Definition at line 329 of file RunTileTBMonitoring.py.

◆ type

RunTileTBMonitoring.type

Definition at line 177 of file RunTileTBMonitoring.py.

◆ Type

RunTileTBMonitoring.Type

Definition at line 246 of file RunTileTBMonitoring.py.

◆ update_group

RunTileTBMonitoring.update_group

Definition at line 199 of file RunTileTBMonitoring.py.

◆ UpdatePeriod

RunTileTBMonitoring.UpdatePeriod

Definition at line 291 of file RunTileTBMonitoring.py.

◆ useDCS

RunTileTBMonitoring.useDCS

Definition at line 230 of file RunTileTBMonitoring.py.

◆ useDemoCabling

RunTileTBMonitoring.useDemoCabling

Definition at line 306 of file RunTileTBMonitoring.py.

◆ useFELIX

RunTileTBMonitoring.useFELIX

Definition at line 307 of file RunTileTBMonitoring.py.

◆ useTrigger

RunTileTBMonitoring.useTrigger

Definition at line 221 of file RunTileTBMonitoring.py.

◆ withDetails

RunTileTBMonitoring.withDetails

Definition at line 329 of file RunTileTBMonitoring.py.

TileDigitsFlxMonitorAlgorithm.TileDigitsFlxMonitoringConfig
def TileDigitsFlxMonitoringConfig(flags, fragIDs=[0x201, 0x402], topPath='TestBeam', **kwargs)
Definition: TileDigitsFlxMonitorAlgorithm.py:10
TileRawChannelFlxMonitorAlgorithm.TileRawChannelFlxMonitoringConfig
def TileRawChannelFlxMonitoringConfig(flags, fragIDs=[0x201, 0x402], topPath='TestBeam', **kwargs)
Definition: TileRawChannelFlxMonitorAlgorithm.py:10
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
RunTileTBMonitoring.TileTestBeamMonitoringCfg
def TileTestBeamMonitoringCfg(flags, fragIDs=[0x100, 0x101, 0x200, 0x201, 0x402], useFELIX=False, **kwargs)
Definition: RunTileTBMonitoring.py:122
RunTileTBMonitoring.configureFlagsAndArgsFromPartition
def configureFlagsAndArgsFromPartition(flags, args, partition, log)
Definition: RunTileTBMonitoring.py:20
TileTBBeamMonitorAlgorithm.TileTBBeamMonitoringConfig
def TileTBBeamMonitoringConfig(flags, fragIDs=[0x100, 0x101, 0x200, 0x201, 0x402], **kwargs)
Definition: TileTBBeamMonitorAlgorithm.py:12
CBNT_TBInfo.BeamType
BeamType
Definition: CBNT_TBInfo.py:29
TileTBMonitorAlgorithm.TileTBMonitoringConfig
def TileTBMonitoringConfig(flags, fragIDs=[0x100, 0x101, 0x200, 0x201, 0x402], **kwargs)
Definition: TileTBMonitorAlgorithm.py:12
str
Definition: BTagTrackIpAccessor.cxx:11
TileTBCellMonitorAlgorithm.TileTBCellMonitoringConfig
def TileTBCellMonitoringConfig(flags, timeRange=[-100, 100], fragIDs=[0x100, 0x101, 0x200, 0x201, 0x402], useDemoCabling=2018, useFELIX=False, **kwargs)
Definition: TileTBCellMonitorAlgorithm.py:12
TileTBPulseMonitorAlgorithm.TileTBPulseMonitoringConfig
def TileTBPulseMonitoringConfig(flags, timeRange=[-100, 100], fragIDs=[0x100, 0x101, 0x200, 0x201, 0x402], useDemoCabling=2018, useFELIX=False, **kwargs)
Definition: TileTBPulseMonitorAlgorithm.py:42