ATLAS Offline Software
Loading...
Searching...
No Matches
python.LArConfigFlags Namespace Reference

Classes

class  RawChannelSource

Functions

 createLArConfigFlags ()
 _getLArRunInfo (prevFlags)
 _determineRawChannelSource (prevFlags)

Variables

 _lArRunInfo = None

Function Documentation

◆ _determineRawChannelSource()

python.LArConfigFlags._determineRawChannelSource ( prevFlags)
protected

Definition at line 109 of file LArConfigFlags.py.

109def _determineRawChannelSource(prevFlags):
110 log = logging.getLogger('LArConfigFlags.determineRawChannelSource')
111 if prevFlags.Input.isMC or prevFlags.Overlay.DataOverlay:
112 return RawChannelSource.Input
113
114 lri=_getLArRunInfo(prevFlags)
115 #runType: 0=RawData, 1=RawDataResult, 2=Result
116 if lri is None or lri.runType is None:
117 log.warning("WARNING do not have LArRunInfo !")
118 return RawChannelSource.Both
119 log.info("runType %d",lri.runType())
120 if (lri.runType()==0):
121 return RawChannelSource.Calculated #Have only digits in bytestream
122 elif (lri.runType()==1 or lri.runType()==2):
123 return RawChannelSource.Both #Have both, digits and raw-channels in bytestream
124 else:
125 log.warning("Unknown LAr run type %i",lri.runType())
126 return RawChannelSource.Both

◆ _getLArRunInfo()

python.LArConfigFlags._getLArRunInfo ( prevFlags)
protected

Definition at line 97 of file LArConfigFlags.py.

97def _getLArRunInfo(prevFlags):
98 log = logging.getLogger('LArConfigFlags.getLArRunInfo')
99 global _lArRunInfo #Cache of lar run info
100 if _lArRunInfo is None:
101 from LArConditionsCommon.LArRunFormat import getLArFormatForRun
102 runnbr=prevFlags.Input.RunNumbers[0] #If more than one run, assume config for first run is valid for all runs
103 dbStr="COOLONL_LAR/"+prevFlags.IOVDb.DatabaseInstance
104 _lArRunInfo=getLArFormatForRun(run=runnbr,connstring=dbStr)
105 log.info("Got LArRunInfo for run %d",runnbr)
106 return _lArRunInfo
107
108

◆ createLArConfigFlags()

python.LArConfigFlags.createLArConfigFlags ( )

Definition at line 13 of file LArConfigFlags.py.

13def createLArConfigFlags():
14 lcf=AthConfigFlags()
15
16 lcf.addFlag("LAr.doAlign",lambda prevFlags : prevFlags.GeoModel.Layout=="atlas")
17 lcf.addFlag("LAr.doHVCorr",lambda prevFlags : not prevFlags.Input.isMC)
18 lcf.addFlag("LAr.doCellEmMisCalib",lambda prevFlags : prevFlags.Input.isMC)
19
20 lcf.addFlag("LAr.RawChannelSource", _determineRawChannelSource, type=RawChannelSource)
21
22 lcf.addFlag("LAr.doCellNoiseMasking",True)
23 lcf.addFlag("LAr.doCellSporadicNoiseMasking",True)
24 lcf.addFlag("LAr.doBadFebMasking",lambda prevFlags : not prevFlags.Input.isMC)
25 lcf.addFlag("LAr.doDeadOTxCorr",lambda prevFlags : not prevFlags.Input.isMC and prevFlags.GeoModel.Run >= LHCPeriod.Run3)
26
27 # Include MC shape folder
28 lcf.addFlag("LAr.UseMCShape", True)
29 # Name of sqlite file containing Electronic Calibration values
30 lcf.addFlag("LAr.ElecCalibSqlite", "")
31 # Load Electronic Calibration constants
32 lcf.addFlag("LAr.LoadElecCalib", True)
33 # Folder name for Optimal Filtering coefficients (empty means default)
34 lcf.addFlag("LAr.OFCShapeFolder", "")
35 # Load conditions with this `run-number' string
36 lcf.addFlag("LAr.ForceIOVRunNumber", "")
37 # Include Shape folder
38 lcf.addFlag("LAr.UseShape", True)
39 # DataBase server string
40 lcf.addFlag("LAr.DBConnection", "")
41
42 # Number of collisions to optimize OFC for pileup
43 lcf.addFlag("LAr.ROD.NumberOfCollisions",0)
44 # Number of samples in LAr digitization + ROD emulation
45 lcf.addFlag("LAr.ROD.nSamples", 5)
46 # Index of first sample in LAr digitization + ROD emulation
47 lcf.addFlag("LAr.ROD.FirstSample", 0)
48 # Number of preceeding samples (necessary for phase 2 simulation)
49 lcf.addFlag("LAr.ROD.nPreceedingSamples", 0)
50 # Force using the highest gain autocorrelation function
51 # when doing OFC optimization
52 lcf.addFlag("LAr.ROD.UseHighestGainAutoCorr", False)
53 # Flag not to use pileup noise neither average constrain in EMB and EMEC-OW,
54 # and both pileup noise and average constrain everywhere else
55 lcf.addFlag("LAr.ROD.DoOFCMixedOptimization", False)
56
58 lcf.addFlag("LAr.ROD.UseDelta", 0)
59 # Force using the iterative OFC procedure
60 lcf.addFlag("LAr.ROD.forceIter",False)
61 # NN based energy reconstruction
62 lcf.addFlag("LAr.ROD.NNRawChannelBuilding", False)
63 # default LArRawSC container
64 lcf.addFlag("LAr.LATOME.DTInfoForL1","SC_ET_ID")
65 # storing SC CaloCellContainer with bcid'ed energies
66 lcf.addFlag("LAr.DT.storeET_ID",False)
67 lcf.addFlag("LAr.DT.ET_IDKey","SCell")
68 lcf.addFlag("LAr.DT.doSCMasking",True)
69 # storing SC CaloCellContainers +-1 around bcid'ed energies
70 lcf.addFlag("LAr.DT.storeET_additional",False)
71 lcf.addFlag("LAr.DT.ET_PlusKey","SCellPlus")
72 lcf.addFlag("LAr.DT.ET_MinusKey","SCellMinus")
73
74
76 lcf.addFlag("LAr.NoisyRO.CellQuality", 4000)
77 # Number of channels above quality cut
78 lcf.addFlag("LAr.NoisyRO.BadChanPerFEB", 30)
79 # Number of Bad FEBs per partition cut
80 lcf.addFlag("LAr.NoisyRO.BadFEBCut", 5)
81 # Number of channels to declare MNB-Loose
82 lcf.addFlag("LAr.NoisyRO.MNBLooseCut", 5)
83 # Number of channels to declare MNB-Tight
84 lcf.addFlag("LAr.NoisyRO.MNBTightCut", 17)
85 # Number of channels to declare MNB-Tight wir PS veto
86 lcf.addFlag("LAr.NoisyRO.MNBTight_PsVetoCut", [13,3])
87 # Number of noisy HVlines
88 lcf.addFlag("LAr.NoisyRO.BadHVCut", 3)
89 # Fraction of cells noisy on one HV line
90 lcf.addFlag("LAr.NoisyRO.BadHVlineFrac", 0.25)
91
92 return lcf
93
94

Variable Documentation

◆ _lArRunInfo

python.LArConfigFlags._lArRunInfo = None
protected

Definition at line 95 of file LArConfigFlags.py.