ATLAS Offline Software
Functions | Variables
TileTestBeamRecoConfig Namespace Reference

Functions

def TileTestBeamRawChannelMakerCfg (flags, nsamples, useFELIX=False, **kwargs)
 
def TileTestBeamRecoCfg (flags, useDemoCabling, nsamples, useFELIX=False, filterDigits=False, filterChannels=True)
 

Variables

 flags
 
 parser
 
 dest
 
 type
 
 int
 
 default
 
 help
 
 args
 
 _
 
 MaxEvents
 
 isOnline
 
 AtlasVersion
 
 Files
 
 GlobalTag
 
 doFit
 
 useDCS
 
 NoiseFilter
 
 correctTime
 
 correctTimeJumps
 
 BestPhaseFromCOOL
 
 doOverflowFit
 
 cfg
 
 readMuRcv
 
 readDigits
 
 readRawChannel
 
 readDigitsFlx
 
 readBeamElem
 
 useDemoCabling
 
 demoCabling
 
 nsamples
 
 useFELIX
 
 RODStatusProxy
 
 withDetails
 
 True
 
 summariseProps
 
 printDefaults
 
 sc
 

Function Documentation

◆ TileTestBeamRawChannelMakerCfg()

def TileTestBeamRecoConfig.TileTestBeamRawChannelMakerCfg (   flags,
  nsamples,
  useFELIX = False,
**  kwargs 
)
Function to configure reconstruction of Tile raw channels from digits.

Definition at line 15 of file TileTestBeamRecoConfig.py.

15 def TileTestBeamRawChannelMakerCfg(flags, nsamples, useFELIX=False, **kwargs):
16 
17  ''' Function to configure reconstruction of Tile raw channels from digits.'''
18 
19  acc = ComponentAccumulator()
20 
21  suffix = "Flx" if useFELIX else ""
22  kwargs.setdefault('name', f'TileRCh{suffix}Maker')
23  kwargs.setdefault('TileDigitsContainer', f'TileDigits{suffix}Cnt')
24  kwargs.setdefault('Cardinality', flags.Concurrency.NumThreads)
25  kwargs.setdefault('TileInfoName', f'TileInfo{suffix}')
26 
27  from TileRecUtils.TileRawChannelMakerConfig import TileRawChannelMakerCfg
28  rawChMaker = acc.getPrimaryAndMerge(TileRawChannelMakerCfg(flags, **kwargs))
29  if flags.Tile.doFit:
30  rawChannelBuilderFitFilter = rawChMaker.TileRawChannelBuilder['TileRawChannelBuilderFitFilter']
31  rawChannelBuilderFitFilter.FrameLength = nsamples
32  rawChannelBuilderFitFilter.SaturatedSample = 4095 if useFELIX else -1
33  for tool in rawChMaker.TileRawChannelBuilder:
34  tool.TileRawChannelContainer = str(tool.TileRawChannelContainer).replace('TileRawChannel', f'TileRawChannel{suffix}')
35  tool.TileInfoName = f'TileInfo{suffix}'
36 
37  # Configure TileInfoLoader to set up number of samples
38  from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
39  acc.merge(TileInfoLoaderCfg(flags, name=f'TileInfoLoader{suffix}', TileInfo=f'TileInfo{suffix}',
40  NSamples=nsamples, TrigSample=((nsamples-1)//2) ))
41 
42  return acc
43 
44 

◆ TileTestBeamRecoCfg()

def TileTestBeamRecoConfig.TileTestBeamRecoCfg (   flags,
  useDemoCabling,
  nsamples,
  useFELIX = False,
  filterDigits = False,
  filterChannels = True 
)
Function to configure reconstruction of Tile TestBeam data.

Definition at line 45 of file TileTestBeamRecoConfig.py.

45 def TileTestBeamRecoCfg(flags, useDemoCabling, nsamples, useFELIX=False, filterDigits=False, filterChannels=True):
46 
47  ''' Function to configure reconstruction of Tile TestBeam data.'''
48 
49  acc = ComponentAccumulator()
50 
51  suffix = "Flx" if useFELIX else ""
52  digitsContainer = f'TileDigits{suffix}Cnt'
53  rawChannelContainer = flags.Tile.RawChannelContainer.replace('TileRawChannel', f'TileRawChannel{suffix}')
54 
55  # =====> For FELIX configure the algorithm to select one gain
56  if useFELIX and filterDigits:
57  digitsContainer = 'TileDigitsFlxFiltered'
58  TileDigitsGainFilter = CompFactory.TileDigitsGainFilter
59  acc.addEventAlgo( TileDigitsGainFilter(HighGainThreshold=4095,
60  InputDigitsContainer='TileDigitsFlxCnt',
61  OutputDigitsContainer=digitsContainer) )
62 
63  # =====> Configure reconstruction of Tile raw channels from digits
64  acc.merge(TileTestBeamRawChannelMakerCfg(flags, nsamples, useFELIX, TileDigitsContainer=digitsContainer))
65 
66  if useFELIX and filterChannels:
67  rawChannelContainerFiltered = f'{rawChannelContainer}Filtered'
68  TileRawChannelGainFilter = CompFactory.TileRawChannelGainFilter
69  acc.addEventAlgo( TileRawChannelGainFilter(InputRawChannelContainer=rawChannelContainer,
70  OutputRawChannelContainer=rawChannelContainerFiltered) )
71  rawChannelContainer = rawChannelContainerFiltered
72 
73  # =====> Configure reconstruction of Tile cells from raw channels
74  from TileRecUtils.TileCellMakerConfig import TileCellMakerCfg
75  skipGains = [0, 1] if flags.Tile.RunType.isBiGain() else [-1]
76  gainName = {-1 : "", 0 : "HG", 1 : "LG"} # Skip gain to actually used gain name mapping
77  for skipGain in skipGains:
78  cellMaker = acc.getPrimaryAndMerge(TileCellMakerCfg(flags, name=f'TileCell{suffix}Maker{gainName[skipGain]}',
79  CaloCellsOutputName=f'AllCalo{suffix}{gainName[skipGain]}',
80  mergeChannels=False, SkipGain=skipGain))
81  cellBuilder = cellMaker.CaloCellMakerToolNames['TileCellBuilder']
82  cellBuilder.TileRawChannelContainer = rawChannelContainer
83  cellBuilder.UseDemoCabling = useDemoCabling
84  cellBuilder.maskBadChannels = False
85  cellBuilder.MBTSContainer = ""
86  cellBuilder.E4prContainer = ""
87 
88 
89  # Configure TileInfoLoader to set up number of samples
90  ADCmax = 4095 if useFELIX else 1023
91  ADCmaskValue = 4800 if useFELIX else 2047
92  from TileConditions.TileInfoLoaderConfig import TileInfoLoaderCfg
93  acc.merge(TileInfoLoaderCfg(flags, name=f'TileInfoLoader{suffix}', TileInfo=f'TileInfo{suffix}',
94  NSamples=nsamples, TrigSample=((nsamples-1)//2),
95  ADCmax=ADCmax, ADCmaskValue=ADCmaskValue))
96 
97  return acc
98 
99 

Variable Documentation

◆ _

TileTestBeamRecoConfig._
private

Definition at line 115 of file TileTestBeamRecoConfig.py.

◆ args

TileTestBeamRecoConfig.args

Definition at line 115 of file TileTestBeamRecoConfig.py.

◆ AtlasVersion

TileTestBeamRecoConfig.AtlasVersion

Definition at line 119 of file TileTestBeamRecoConfig.py.

◆ BestPhaseFromCOOL

TileTestBeamRecoConfig.BestPhaseFromCOOL

Definition at line 128 of file TileTestBeamRecoConfig.py.

◆ cfg

TileTestBeamRecoConfig.cfg

Definition at line 137 of file TileTestBeamRecoConfig.py.

◆ correctTime

TileTestBeamRecoConfig.correctTime

Definition at line 126 of file TileTestBeamRecoConfig.py.

◆ correctTimeJumps

TileTestBeamRecoConfig.correctTimeJumps

Definition at line 127 of file TileTestBeamRecoConfig.py.

◆ default

TileTestBeamRecoConfig.default

Definition at line 113 of file TileTestBeamRecoConfig.py.

◆ demoCabling

TileTestBeamRecoConfig.demoCabling

Definition at line 146 of file TileTestBeamRecoConfig.py.

◆ dest

TileTestBeamRecoConfig.dest

Definition at line 113 of file TileTestBeamRecoConfig.py.

◆ doFit

TileTestBeamRecoConfig.doFit

Definition at line 123 of file TileTestBeamRecoConfig.py.

◆ doOverflowFit

TileTestBeamRecoConfig.doOverflowFit

Definition at line 129 of file TileTestBeamRecoConfig.py.

◆ Files

TileTestBeamRecoConfig.Files

Definition at line 120 of file TileTestBeamRecoConfig.py.

◆ flags

TileTestBeamRecoConfig.flags

Definition at line 111 of file TileTestBeamRecoConfig.py.

◆ GlobalTag

TileTestBeamRecoConfig.GlobalTag

Definition at line 121 of file TileTestBeamRecoConfig.py.

◆ help

TileTestBeamRecoConfig.help

Definition at line 113 of file TileTestBeamRecoConfig.py.

◆ int

TileTestBeamRecoConfig.int

Definition at line 113 of file TileTestBeamRecoConfig.py.

◆ isOnline

TileTestBeamRecoConfig.isOnline

Definition at line 118 of file TileTestBeamRecoConfig.py.

◆ MaxEvents

TileTestBeamRecoConfig.MaxEvents

Definition at line 117 of file TileTestBeamRecoConfig.py.

◆ NoiseFilter

TileTestBeamRecoConfig.NoiseFilter

Definition at line 125 of file TileTestBeamRecoConfig.py.

◆ nsamples

TileTestBeamRecoConfig.nsamples

Definition at line 146 of file TileTestBeamRecoConfig.py.

◆ parser

TileTestBeamRecoConfig.parser

Definition at line 112 of file TileTestBeamRecoConfig.py.

◆ printDefaults

TileTestBeamRecoConfig.printDefaults

Definition at line 152 of file TileTestBeamRecoConfig.py.

◆ readBeamElem

TileTestBeamRecoConfig.readBeamElem

Definition at line 144 of file TileTestBeamRecoConfig.py.

◆ readDigits

TileTestBeamRecoConfig.readDigits

Definition at line 141 of file TileTestBeamRecoConfig.py.

◆ readDigitsFlx

TileTestBeamRecoConfig.readDigitsFlx

Definition at line 143 of file TileTestBeamRecoConfig.py.

◆ readMuRcv

TileTestBeamRecoConfig.readMuRcv

Definition at line 140 of file TileTestBeamRecoConfig.py.

◆ readRawChannel

TileTestBeamRecoConfig.readRawChannel

Definition at line 142 of file TileTestBeamRecoConfig.py.

◆ RODStatusProxy

TileTestBeamRecoConfig.RODStatusProxy

Definition at line 150 of file TileTestBeamRecoConfig.py.

◆ sc

TileTestBeamRecoConfig.sc

Definition at line 154 of file TileTestBeamRecoConfig.py.

◆ summariseProps

TileTestBeamRecoConfig.summariseProps

Definition at line 152 of file TileTestBeamRecoConfig.py.

◆ True

TileTestBeamRecoConfig.True

Definition at line 152 of file TileTestBeamRecoConfig.py.

◆ type

TileTestBeamRecoConfig.type

Definition at line 113 of file TileTestBeamRecoConfig.py.

◆ useDCS

TileTestBeamRecoConfig.useDCS

Definition at line 124 of file TileTestBeamRecoConfig.py.

◆ useDemoCabling

TileTestBeamRecoConfig.useDemoCabling

Definition at line 146 of file TileTestBeamRecoConfig.py.

◆ useFELIX

TileTestBeamRecoConfig.useFELIX

Definition at line 147 of file TileTestBeamRecoConfig.py.

◆ withDetails

TileTestBeamRecoConfig.withDetails

Definition at line 152 of file TileTestBeamRecoConfig.py.

replace
std::string replace(std::string s, const std::string &s2, const std::string &s3)
Definition: hcg.cxx:307
TileDigitsGainFilter
This algorithm copies TileDigits from input container to output container.
Definition: TileDigitsGainFilter.h:40
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TileCellMakerConfig.TileCellMakerCfg
def TileCellMakerCfg(flags, mergeChannels=True, **kwargs)
Definition: TileCellMakerConfig.py:32
python.TileInfoLoaderConfig.TileInfoLoaderCfg
def TileInfoLoaderCfg(flags, **kwargs)
Definition: TileInfoLoaderConfig.py:12
TileTestBeamRecoConfig.TileTestBeamRawChannelMakerCfg
def TileTestBeamRawChannelMakerCfg(flags, nsamples, useFELIX=False, **kwargs)
Definition: TileTestBeamRecoConfig.py:15
TileRawChannelMakerConfig.TileRawChannelMakerCfg
def TileRawChannelMakerCfg(flags, **kwargs)
Definition: TileRawChannelMakerConfig.py:10
TileTestBeamRecoConfig.TileTestBeamRecoCfg
def TileTestBeamRecoCfg(flags, useDemoCabling, nsamples, useFELIX=False, filterDigits=False, filterChannels=True)
Definition: TileTestBeamRecoConfig.py:45
str
Definition: BTagTrackIpAccessor.cxx:11
TileRawChannelGainFilter
This algorithm copies TileRawChannel from input container to output container.
Definition: TileRawChannelGainFilter.h:20