ATLAS Offline Software
Classes | Functions | Variables
TileCellBuilderFromHitTestConfig Namespace Reference

Classes

class  TestAlg
 
class  TileFragHash
 

Functions

def exp_merge (base, d)
 
def TileBadChannelsCfg (flags, badChannels, chans=[], lines='')
 
def maketool (name, badChannels, noise=0, **kw)
 
def TileRawChannelBuilderFromHitTestCfg (flags)
 

Variables

 hits_0
 
 exp_cells_0
 Some disconnected cells. More...
 
 exp_mbts_0
 
 exp_e4_0
 
 exp_cells_1
 
 exp_mbts_1
 
 baddefs
 
 BAD_LOW
 
 BAD_HIGH
 
 BAD_BOTH
 
 BADTIMING
 
 badChannelsLines
 
 flags
 
 Files
 
 ConditionsRunNumber
 
 OverrideRunNumber
 
 GlobalTag
 
 RunType
 
 MaxEvents
 
 cfg
 
 disableBeamSpot
 
 withDetails
 
 sc
 

Function Documentation

◆ exp_merge()

def TileCellBuilderFromHitTestConfig.exp_merge (   base,
  d 
)

Definition at line 116 of file TileCellBuilderFromHitTestConfig.py.

116 def exp_merge (base, d):
117  new = base.copy()
118  new.update (d)
119  return new
120 
121 
122 # TileBadChan errors.

◆ maketool()

def TileCellBuilderFromHitTestConfig.maketool (   name,
  badChannels,
  noise = 0,
**  kw 
)

Definition at line 381 of file TileCellBuilderFromHitTestConfig.py.

381 def maketool (name, badChannels, noise=0, **kw):
382  TileBadChanTool = CompFactory.TileBadChanTool
383  bct = TileBadChanTool(TileBadChannels=badChannels)
384 
385  TileCellBuilderFromHit = CompFactory.TileCellBuilderFromHit
386  return TileCellBuilderFromHit(name,
387  TileBadChanTool=bct,
388  CaloNoise='',
389  TileHitContainer='TileHitCnt',
390  NoiseSigma=noise,
391  **kw)
392 
393 

◆ TileBadChannelsCfg()

def TileCellBuilderFromHitTestConfig.TileBadChannelsCfg (   flags,
  badChannels,
  chans = [],
  lines = '' 
)
chans: [(sec, side, mod, tow, samp, pmt), [DATA0, DATA1, DATA2]]
We'd like to specify cells using offline addressing, but the bad cell
file uses online addressing.  We can convert, but that requires
idhelpers, etc, that aren't available until after initialization.
So we pass in both representations; in finalize(), we'll check
that they match and print out the correct bad cell lines
if they do not.

  File data line format:
   frag channel dummy adcStatus0 adcStatus1 chnStatus
   chnStatus + adcStatusN are given to TileBchDecoder.
   Offline problem masks:
          chn                         adc
    0     GeneralMaskChannel          GeneralMaskAdc
    1     NoPmt                       AdcDead
    2     NoHV                        StuckBit
    3     WrongHV                     DataCorruption
    4     NoLaser                     VeryLargeHfNoise
    5     BadLaser                    NoData
    6     NoCesium                    WrongDspConfig
    7     BadCesium                   LargeHfNoise
    8     NoTiming                    CorrelatedNoise
    9     BadTiming                   LargeLfNoise
   10     TrigGeneralMask             NoCis
   11     TrigNoGain                  BadCis
   12     TrigHalfGain                SevereStuckBit
   13     TrigNoisy                   SevereDataCorruption
   14     Emergency                   IgnoredByDQV
   15     HVReadoutPb
   16     BrokenClearFibre
   17     IgnoreCs
   18     UnstableCs


   Online problem masks:
          chn                         adc
    0     IgnoredInDsp                OnlineGeneralMaskAdc
    1     IgnoredInHlt
    2     DisableForL1
    3     TrigGeneralMask
    4     TrigNoGain
    5     TrigHalfGain
    6     TrigNoisy
    7     OnlineBadTiming

Definition at line 293 of file TileCellBuilderFromHitTestConfig.py.

293 def TileBadChannelsCfg(flags, badChannels, chans=[], lines=''):
294 
295  """
296 
297  chans: [(sec, side, mod, tow, samp, pmt), [DATA0, DATA1, DATA2]]
298  We'd like to specify cells using offline addressing, but the bad cell
299  file uses online addressing. We can convert, but that requires
300  idhelpers, etc, that aren't available until after initialization.
301  So we pass in both representations; in finalize(), we'll check
302  that they match and print out the correct bad cell lines
303  if they do not.
304 
305  File data line format:
306  frag channel dummy adcStatus0 adcStatus1 chnStatus
307  chnStatus + adcStatusN are given to TileBchDecoder.
308  Offline problem masks:
309  chn adc
310  0 GeneralMaskChannel GeneralMaskAdc
311  1 NoPmt AdcDead
312  2 NoHV StuckBit
313  3 WrongHV DataCorruption
314  4 NoLaser VeryLargeHfNoise
315  5 BadLaser NoData
316  6 NoCesium WrongDspConfig
317  7 BadCesium LargeHfNoise
318  8 NoTiming CorrelatedNoise
319  9 BadTiming LargeLfNoise
320  10 TrigGeneralMask NoCis
321  11 TrigNoGain BadCis
322  12 TrigHalfGain SevereStuckBit
323  13 TrigNoisy SevereDataCorruption
324  14 Emergency IgnoredByDQV
325  15 HVReadoutPb
326  16 BrokenClearFibre
327  17 IgnoreCs
328  18 UnstableCs
329 
330 
331  Online problem masks:
332  chn adc
333  0 IgnoredInDsp OnlineGeneralMaskAdc
334  1 IgnoredInHlt
335  2 DisableForL1
336  3 TrigGeneralMask
337  4 TrigNoGain
338  5 TrigHalfGain
339  6 TrigNoisy
340  7 OnlineBadTiming
341  """
342 
343  if not chans:
344  TileBchList = 'TileNoBad.oflBch'
345  else:
346  TileBchList = badChannels + '.bch'
347  f = open (TileBchList, 'w')
348  print ('OBJVERSION 0', file=f)
349  print ('0x000 0 0 0 0 0', file=f)
350  f.write (lines)
351  f.close()
352  baddefs[badChannels] = (chans, lines)
353 
354 
355  TileCondProxyFileBch = CompFactory.getComp("TileCondProxyFile<TileCalibDrawerBch>")
356  onlineBadChannelsProxy = TileCondProxyFileBch('TileCondProxyFile_OnlBch', Source=TileBchList)
357  offlineBadChannelsProxy = TileCondProxyFileBch('TileCondProxyFile_OflBch', Source='TileNoBad.oflBch')
358 
359  TileBadChannelsCondAlg = CompFactory.TileBadChannelsCondAlg
360  badChannelsCondAlg = TileBadChannelsCondAlg(name=f'{badChannels}_CondAlg',
361  OnlBchProxy=onlineBadChannelsProxy,
362  OflBchProxy=offlineBadChannelsProxy,
363  TileBadChannels=badChannels)
364 
365  acc = ComponentAccumulator()
366  acc.addCondAlgo(badChannelsCondAlg)
367 
368  return acc
369 
370 

◆ TileRawChannelBuilderFromHitTestCfg()

def TileCellBuilderFromHitTestConfig.TileRawChannelBuilderFromHitTestCfg (   flags)

Definition at line 394 of file TileCellBuilderFromHitTestConfig.py.

395 
396  acc = ComponentAccumulator()
397 
398  from TileGeoModel.TileGMConfig import TileGMCfg
399  acc.merge( TileGMCfg(flags) )
400 
401  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
402  acc.merge(LArGMCfg(flags))
403 
404  from TileConditions.TileCablingSvcConfig import TileCablingSvcCfg
405  acc.merge( TileCablingSvcCfg(flags) )
406 
407  from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
408  acc.merge( TileInfoLoaderCfg(flags) )
409 
410  from TileConditions.TileEMScaleConfig import TileEMScaleCondAlgCfg
411  acc.merge( TileEMScaleCondAlgCfg(flags) )
412 
413  from RngComps.RngCompsConfig import AthRNGSvcCfg
414  acc.merge( AthRNGSvcCfg(flags) )
415 
416  from TileConditions.TileSamplingFractionConfig import TileSamplingFractionCondAlgCfg
417  acc.merge( TileSamplingFractionCondAlgCfg(flags, Source='FILE') )
418  acc.getCondAlgo('TileSamplingFractionCondAlg').G4Version=-1
419 
420  bc1 = 'tilecellbuilder_bc1'
421  acc.merge( TileBadChannelsCfg(flags, bc1) )
422 
423  bc2 = 'tilecellbuilder_bc2'
424  acc.merge( TileBadChannelsCfg(flags, bc2,
425  [[(3, 1, 18, 8, 2, 0), BAD_HIGH],
426  [(2, 1, 18, 9, 1, 0), BAD_LOW],
427  [(2, 1, 18, 12, 0, 1), BAD_BOTH],
428  [(2, 1, 18, 11, 0, 0), BADTIMING],
429  [(4, 1, 0, 1, 0, 0), BAD_BOTH],
430  [(4, 1, 6, 1, 0, 0), BADTIMING],
431  ], badChannelsLines) )
432 
433 
434  acc.addPublicTool( maketool ('tool1', bc1) )
435  acc.addPublicTool( maketool ('tool2', bc2, maskBadChannels=True) )
436  acc.addPublicTool( maketool ('tool3', bc1, noise=0.1) )
437 
438  acc.addEventAlgo( TestAlg('testalg1') )
439 
440  return acc
441 
442 

Variable Documentation

◆ BAD_BOTH

TileCellBuilderFromHitTestConfig.BAD_BOTH

Definition at line 290 of file TileCellBuilderFromHitTestConfig.py.

◆ BAD_HIGH

TileCellBuilderFromHitTestConfig.BAD_HIGH

Definition at line 289 of file TileCellBuilderFromHitTestConfig.py.

◆ BAD_LOW

TileCellBuilderFromHitTestConfig.BAD_LOW

Definition at line 288 of file TileCellBuilderFromHitTestConfig.py.

◆ badChannelsLines

TileCellBuilderFromHitTestConfig.badChannelsLines

Definition at line 371 of file TileCellBuilderFromHitTestConfig.py.

◆ baddefs

TileCellBuilderFromHitTestConfig.baddefs

Definition at line 287 of file TileCellBuilderFromHitTestConfig.py.

◆ BADTIMING

TileCellBuilderFromHitTestConfig.BADTIMING

Definition at line 291 of file TileCellBuilderFromHitTestConfig.py.

◆ cfg

TileCellBuilderFromHitTestConfig.cfg

Definition at line 465 of file TileCellBuilderFromHitTestConfig.py.

◆ ConditionsRunNumber

TileCellBuilderFromHitTestConfig.ConditionsRunNumber

Definition at line 455 of file TileCellBuilderFromHitTestConfig.py.

◆ disableBeamSpot

TileCellBuilderFromHitTestConfig.disableBeamSpot

Definition at line 472 of file TileCellBuilderFromHitTestConfig.py.

◆ exp_cells_0

TileCellBuilderFromHitTestConfig.exp_cells_0

Some disconnected cells.

[253, [ [4706026383833300992, [ 0, 0, 0, 50000]], [4706027483344928768, [ 0, 0, 0, 50000]] ], ], [255, [ [4706157225717006336, [ 0, 0, 0, 80000]], [4706158325228634112, [ 0, 0, 0, 80000]] ], ],

Definition at line 77 of file TileCellBuilderFromHitTestConfig.py.

◆ exp_cells_1

TileCellBuilderFromHitTestConfig.exp_cells_1

Definition at line 123 of file TileCellBuilderFromHitTestConfig.py.

◆ exp_e4_0

TileCellBuilderFromHitTestConfig.exp_e4_0

Definition at line 108 of file TileCellBuilderFromHitTestConfig.py.

◆ exp_mbts_0

TileCellBuilderFromHitTestConfig.exp_mbts_0

Definition at line 100 of file TileCellBuilderFromHitTestConfig.py.

◆ exp_mbts_1

TileCellBuilderFromHitTestConfig.exp_mbts_1

Definition at line 129 of file TileCellBuilderFromHitTestConfig.py.

◆ Files

TileCellBuilderFromHitTestConfig.Files

Definition at line 454 of file TileCellBuilderFromHitTestConfig.py.

◆ flags

TileCellBuilderFromHitTestConfig.flags

Definition at line 453 of file TileCellBuilderFromHitTestConfig.py.

◆ GlobalTag

TileCellBuilderFromHitTestConfig.GlobalTag

Definition at line 457 of file TileCellBuilderFromHitTestConfig.py.

◆ hits_0

TileCellBuilderFromHitTestConfig.hits_0

Definition at line 18 of file TileCellBuilderFromHitTestConfig.py.

◆ MaxEvents

TileCellBuilderFromHitTestConfig.MaxEvents

Definition at line 459 of file TileCellBuilderFromHitTestConfig.py.

◆ OverrideRunNumber

TileCellBuilderFromHitTestConfig.OverrideRunNumber

Definition at line 456 of file TileCellBuilderFromHitTestConfig.py.

◆ RunType

TileCellBuilderFromHitTestConfig.RunType

Definition at line 458 of file TileCellBuilderFromHitTestConfig.py.

◆ sc

TileCellBuilderFromHitTestConfig.sc

Definition at line 480 of file TileCellBuilderFromHitTestConfig.py.

◆ withDetails

TileCellBuilderFromHitTestConfig.withDetails

Definition at line 477 of file TileCellBuilderFromHitTestConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TileSamplingFractionConfig.TileSamplingFractionCondAlgCfg
def TileSamplingFractionCondAlgCfg(flags, **kwargs)
Definition: TileSamplingFractionConfig.py:9
TileBadChannelsCondAlg
Condition algorithm to prepare TileBadChannels and put it into condition store.
Definition: TileBadChannelsCondAlg.h:31
TileCellBuilderFromHitTestConfig.TileRawChannelBuilderFromHitTestCfg
def TileRawChannelBuilderFromHitTestCfg(flags)
Definition: TileCellBuilderFromHitTestConfig.py:394
python.TileInfoLoaderConfig.TileInfoLoaderCfg
def TileInfoLoaderCfg(flags, **kwargs)
Definition: TileInfoLoaderConfig.py:12
TileCellBuilderFromHitTestConfig.exp_merge
def exp_merge(base, d)
Definition: TileCellBuilderFromHitTestConfig.py:116
TileCellBuilderFromHit
This class creates Cells from RawChannels and stores them in a container.
Definition: TileCellBuilderFromHit.h:82
TileCondProxyFile
The tool to get Tile conditions data from file.
Definition: TileCondProxyFile.h:28
TileCellBuilderFromHitTestConfig.maketool
def maketool(name, badChannels, noise=0, **kw)
Definition: TileCellBuilderFromHitTestConfig.py:381
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
TileCellBuilderFromHitTestConfig.TileBadChannelsCfg
def TileBadChannelsCfg(flags, badChannels, chans=[], lines='')
Definition: TileCellBuilderFromHitTestConfig.py:293
python.TileEMScaleConfig.TileEMScaleCondAlgCfg
def TileEMScaleCondAlgCfg(flags, **kwargs)
Definition: TileEMScaleConfig.py:10
TileBadChanTool
The tool to get Tile channel and ADC status.
Definition: TileBadChanTool.h:36
python.TileCablingSvcConfig.TileCablingSvcCfg
def TileCablingSvcCfg(flags)
Definition: TileCablingSvcConfig.py:11
TileGMConfig.TileGMCfg
def TileGMCfg(flags)
Definition: TileGMConfig.py:7
RngCompsConfig.AthRNGSvcCfg
def AthRNGSvcCfg(flags, name="AthRNGSvc")
Definition: RngCompsConfig.py:51