ATLAS Offline Software
Loading...
Searching...
No Matches
LArReadCellsConfig Namespace Reference

Functions

 LArReadCellsCfg (flags)
 LArReadSCCfg (flags)

Variables

 flags = initConfigFlags()
 Files
 forceIter
 outputNtup
 cfg = MainServicesCfg(flags)

Function Documentation

◆ LArReadCellsCfg()

LArReadCellsConfig.LArReadCellsCfg ( flags)

Definition at line 6 of file LArReadCellsConfig.py.

6def LArReadCellsCfg(flags):
7
8 result=ComponentAccumulator()
9
10 #setup Calo reco
11 from CaloRec.CaloRecoConfig import CaloRecoCfg
12 result.merge(CaloRecoCfg(flags))
13 result.getEventAlgo("LArRawChannelBuilder").TimingContainerKey="LArOFIterResult"
14
15 from TrigT1ResultByteStream.TrigT1ResultByteStreamConfig import L1TriggerByteStreamDecoderCfg
16 result.merge(L1TriggerByteStreamDecoderCfg(flags))
17
18 from LArCafJobs.LArSCDumperSkeleton import L1CaloMenuCfg
19 result.merge(L1CaloMenuCfg(flags))
20
21 from LumiBlockComps.BunchCrossingCondAlgConfig import BunchCrossingCondAlgCfg
22 result.merge(BunchCrossingCondAlgCfg(flags))
23
24 from IOVDbSvc.IOVDbSvcConfig import addFolders
25 result.merge(addFolders(flags,
26 '/LAR/ElecCalibOfl/Shape/RTM/4samples3bins17phases<tag>LARElecCalibOflShapeRTM4samples3bins17phases-RUN2-UPD3-00</tag><key>LArShape17phases</key>',
27 'LAR_OFL'))
28
29 result.getService("PoolSvc").ReadCatalog += ["apcfile:poolcond/PoolCat_comcond_castor.xml"]
30
31 result.merge(addFolders(flags,'/LAR/ElecCalibOfl/AutoCorrs/AutoCorr<tag>LARElecCalibOflAutoCorrsAutoCorr-RUN2-UPD3-00</tag>','LAR_OFL'))
32 result.getService("IOVDbSvc").overrideTags+=['<prefix>/LAR/ElecCalibOfl/Shape/RTM/5samples1phase</prefix><tag>LARElecCalibOflShapeRTM5samples1phase-RUN2-UPD1-04</tag>']
33 # for splashes: FIXME later
34 result.getService("IOVDbSvc").overrideTags+=['<prefix>/LAR/ElecCalibOfl/OFC/PhysWave/RTM/4samples3bins17phases</prefix><tag>LARElecCalibOflOFCPhysWaveRTM4samples3bins17phases-RUN2-UPD3-00</tag>']
35 result.getService("IOVDbSvc").overrideTags+=['<prefix>/LAR/ElecCalibOfl/Shape/RTM/4samples3bins17phases</prefix><tag>LARElecCalibOflShapeRTM4samples3bins17phases-RUN2-UPD3-00</tag>']
36
37 print("Dumping flags: ")
38 flags.dump()
39 dumperAlg=CompFactory.LArReadCells("LArReadCells")
40 dumperAlg.output = flags.LArShapeDump.outputNtup
41 dumperAlg.etCut = -1500.
42 dumperAlg.etCut2 = -1500.
43
44 result.addEventAlgo(dumperAlg)
45
46 return result
47
void print(char *figname, TCanvas *c1)

◆ LArReadSCCfg()

LArReadCellsConfig.LArReadSCCfg ( flags)

Definition at line 48 of file LArReadCellsConfig.py.

48def LArReadSCCfg(flags):
49
50 result=ComponentAccumulator()
51 from AthenaCommon.Logging import logging
52 mlog = logging.getLogger( 'LArReadSCCfg' )
53
54 #setup SC reading
55 from LArCabling.LArCablingConfig import LArOnOffIdMappingSCCfg
56 result.merge(LArOnOffIdMappingSCCfg(flags))
57 from LArByteStream.LArRawSCDataReadingConfig import LArRawSCDataReadingCfg
58 result.merge(LArRawSCDataReadingCfg(flags))
59 result.addCondAlgo(CompFactory.CaloSuperCellAlignCondAlg('CaloSuperCellAlignCondAlg'))
60 from LArCellRec.LArRAWtoSuperCellConfig import LArRAWtoSuperCellCfg
61 result.merge(LArRAWtoSuperCellCfg(flags,mask=True, SCellContainerOut="SCell") )
62
63 from LArCafJobs.LArSCDumperSkeleton import L1CaloMenuCfg
64 result.merge(L1CaloMenuCfg(flags))
65
66 from LumiBlockComps.BunchCrossingCondAlgConfig import BunchCrossingCondAlgCfg
67 result.merge(BunchCrossingCondAlgCfg(flags))
68
69 from LArConfiguration.LArElecCalibDBConfig import LArElecCalibDBSCCfg
70 result.merge(LArElecCalibDBSCCfg(flags, condObjs=["Pedestal"]))
71
72 #setup SC reco
73 if flags.LArShapeDump.doSCReco:
74 # and elec. calib. coeffs
75 result.merge(LArElecCalibDBSCCfg(flags, condObjs=["Ramp","DAC2uA", "uA2MeV", "MphysOverMcal", "OFC", "Shape", "HVScaleCorr"]))
76 larLATOMEBuilderAlg=CompFactory.LArLATOMEBuilderAlg("LArLATOMEBuilderAlg")
77
78 dumperAlg=CompFactory.LArReadSC("LArReadSC")
79
80 from LArConditionsCommon.LArRunFormat import getLArDTInfoForRun
81 try:
82 runinfo=getLArDTInfoForRun(flags.Input.RunNumbers[0], connstring="COOLONL_LAR/CONDBR2")
83 streamTypes=runinfo.streamTypes()
84 except Exception as e:
85 mlog.warning("Could not get DT run info, using defaults !")
86 mlog.warning(e)
87 streamTypes=["RawADC"]
88
89 for i in range(0,len(streamTypes)):
90 if streamTypes[i] == "RawADC":
91 dumperAlg.DigitsKey = "SC"
92 if flags.LArShapeDump.doSCReco:
93 larLATOMEBuilderAlg.LArDigitKey = "SC"
94 larLATOMEBuilderAlg.isADCBas = False
95 if streamTypes[i] == "ADC":
96 if flags.LArShapeDump.doSCReco:
97 larLATOMEBuilderAlg.isADCBas = True
98 larLATOMEBuilderAlg.LArDigitKey = "SC_ADC_BAS"
99 dumperAlg.DigitsKey = "SC_ADC_BAS"
100
101 if flags.LArShapeDump.doSCReco:
102 result.addEventAlgo(larLATOMEBuilderAlg)
103 result.merge(LArRAWtoSuperCellCfg(flags,name="LArRAWRecotoSuperCell",mask=True,doReco=True,SCIn="SC_ET_RECO",SCellContainerOut="SCell_RECO") )
104
105 dumperAlg.output = flags.LArShapeDump.outputNtup
106 dumperAlg.SCContainerKey = "SCell"
107 if flags.LArShapeDump.doSCReco:
108 dumperAlg.SCRecoContainerKey = "SCell_RECO"
109 dumperAlg.etCut = -1500.
110
111 result.addEventAlgo(dumperAlg)
112
113 return result
114
115

Variable Documentation

◆ cfg

LArReadCellsConfig.cfg = MainServicesCfg(flags)

Definition at line 131 of file LArReadCellsConfig.py.

◆ Files

LArReadCellsConfig.Files

Definition at line 124 of file LArReadCellsConfig.py.

◆ flags

LArReadCellsConfig.flags = initConfigFlags()

Definition at line 119 of file LArReadCellsConfig.py.

◆ forceIter

LArReadCellsConfig.forceIter

Definition at line 125 of file LArReadCellsConfig.py.

◆ outputNtup

LArReadCellsConfig.outputNtup

Definition at line 126 of file LArReadCellsConfig.py.