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

Functions

 LArRawChannelBuilderAlgCfg (flags, **kwargs)

Variables

 flags = initConfigFlags()
 Files
 AtlasVersion
 GlobalTag
 isMC
 GeometryTile
 acc = MainServicesCfg(flags)
 DumpLArRawChannels = CompFactory.DumpLArRawChannels
 sequenceName

Function Documentation

◆ LArRawChannelBuilderAlgCfg()

python.LArRawChannelBuilderAlgConfig.LArRawChannelBuilderAlgCfg ( flags,
** kwargs )

Definition at line 9 of file LArRawChannelBuilderAlgConfig.py.

9def LArRawChannelBuilderAlgCfg(flags, **kwargs):
10
11 acc = LArADC2MeVCondAlgCfg(flags)
12
13 kwargs.setdefault("name", "LArRawChannelBuilder")
14 kwargs.setdefault("firstSample", flags.LAr.ROD.nPreceedingSamples if flags.LAr.ROD.nPreceedingSamples!=0 else flags.LAr.ROD.FirstSample)
15 obj = "AthenaAttributeList"
16 dspkey = 'Run2DSPThresholdsKey'
17 from IOVDbSvc.IOVDbSvcConfig import addFolders
18 if flags.Input.isMC and flags.Input.Format != Format.BS:
19 # need OFC configuration, which includes appropriate ElecCalibDb
20 acc.merge(LArOFCCondAlgCfg(flags))
21 kwargs.setdefault("LArRawChannelKey", "LArRawChannels")
22 kwargs.setdefault("ShapeKey", "LArShapeSym")
23 if flags.GeoModel.Run is LHCPeriod.Run1: # back to flat threshold
24 kwargs.setdefault("useDB", False)
25 dspkey = ''
26 else:
27 fld="/LAR/NoiseOfl/DSPThresholds"
28 sgkey=fld
29 dbString="OFLP200"
30 dbInstance="LAR_OFL"
31 acc.merge(addFolders(flags,fld, dbInstance, className=obj, db=dbString))
32
33 if flags.Common.ProductionStep in [ProductionStep.PileUpPresampling, ProductionStep.PileUpPretracking]:
34 kwargs.setdefault("LArDigitKey", flags.Overlay.BkgPrefix + "LArDigitContainer_MC")
35 else:
36 kwargs.setdefault("LArDigitKey", "LArDigitContainer_MC")
37 else:
38 acc.merge(LArElecCalibDBCfg(flags,("OFC","Shape","Pedestal")))
39 if flags.Common.ProductionStep is ProductionStep.MinbiasPreprocessing:
40 kwargs.setdefault("LArDigitKey", f"{flags.Overlay.BkgPrefix}LArDigitContainer_data")
41 kwargs.setdefault("LArRawChannelKey", "LArRawChannels_FromDigits")
42 elif flags.Overlay.DataOverlay:
43 kwargs.setdefault("LArDigitKey", "LArDigitContainer_MC")
44 kwargs.setdefault("LArRawChannelKey", "LArRawChannels")
45 else:
46 kwargs.setdefault("LArRawChannelKey", "LArRawChannels_FromDigits")
47 if 'COMP200' in flags.IOVDb.DatabaseInstance:
48 fld='/LAR/Configuration/DSPThreshold/Thresholds'
49 obj='LArDSPThresholdsComplete'
50 dspkey = 'Run1DSPThresholdsKey'
51 sgkey='LArDSPThresholds'
52 dbString = 'COMP200'
53 else:
54 fld="/LAR/Configuration/DSPThresholdFlat/Thresholds"
55 sgkey=fld
56 dbString="CONDBR2"
57 dbInstance="LAR_ONL"
58 acc.merge(addFolders(flags,fld, dbInstance, className=obj, db=dbString))
59
60 if len (dspkey) > 0:
61 kwargs.setdefault(dspkey, sgkey)
62
63 if flags.LAr.ROD.forceIter or flags.LAr.RawChannelSource is RawChannelSource.Calculated:
64 # iterative OFC procedure
65 kwargs.setdefault('minSample',2)
66 kwargs.setdefault('maxSample',12)
67 kwargs.setdefault('minADCforIterInSigma',4)
68 kwargs.setdefault('minADCforIter',15)
69 kwargs.setdefault('defaultPhase',12)
70 nominalPeakSample=2
71 from LArConditionsCommon.LArRunFormat import getLArFormatForRun
72 larformat=getLArFormatForRun(flags.Input.RunNumbers[0],connstring="COOLONL_LAR/"+flags.IOVDb.DatabaseInstance)
73 if larformat is not None:
74 nominalPeakSample = larformat.firstSample()
75 else:
76 print("WARNING: larformat not found, use nominalPeakSample = 2")
77 nominalPeakSample = 2
78 if (nominalPeakSample > 1) :
79 kwargs.setdefault('DefaultShiftTimeSample',nominalPeakSample-2)
80 else :
81 kwargs.setdefault('DefaultShiftTimeSample',0)
82
83 acc.addEventAlgo(CompFactory.LArRawChannelBuilderIterAlg(**kwargs))
84 else:
85 #fixed OFC, as in DSP
86 acc.addEventAlgo(CompFactory.LArRawChannelBuilderAlg(**kwargs))
87
88 return acc
89
90
void print(char *figname, TCanvas *c1)

Variable Documentation

◆ acc

python.LArRawChannelBuilderAlgConfig.acc = MainServicesCfg(flags)

Definition at line 113 of file LArRawChannelBuilderAlgConfig.py.

◆ AtlasVersion

python.LArRawChannelBuilderAlgConfig.AtlasVersion

Definition at line 101 of file LArRawChannelBuilderAlgConfig.py.

◆ DumpLArRawChannels

python.LArRawChannelBuilderAlgConfig.DumpLArRawChannels = CompFactory.DumpLArRawChannels

Definition at line 117 of file LArRawChannelBuilderAlgConfig.py.

◆ Files

python.LArRawChannelBuilderAlgConfig.Files

Definition at line 100 of file LArRawChannelBuilderAlgConfig.py.

◆ flags

python.LArRawChannelBuilderAlgConfig.flags = initConfigFlags()

Definition at line 99 of file LArRawChannelBuilderAlgConfig.py.

◆ GeometryTile

python.LArRawChannelBuilderAlgConfig.GeometryTile

Definition at line 106 of file LArRawChannelBuilderAlgConfig.py.

◆ GlobalTag

python.LArRawChannelBuilderAlgConfig.GlobalTag

Definition at line 102 of file LArRawChannelBuilderAlgConfig.py.

◆ isMC

python.LArRawChannelBuilderAlgConfig.isMC

Definition at line 105 of file LArRawChannelBuilderAlgConfig.py.

◆ sequenceName

python.LArRawChannelBuilderAlgConfig.sequenceName

Definition at line 118 of file LArRawChannelBuilderAlgConfig.py.