Beispiel #1
0
svcMgr.IOVDbSvc.GlobalTag = LArCalib_Flags.globalFlagDB
try:
    svcMgr.IOVDbSvc.DBInstance = ""
except:
    pass

theByteStreamInputSvc = svcMgr.ByteStreamInputSvc
if not 'FullFileName' in dir():
    PedestalAutoCorrLog.info(
        "No FullFileName! Please give a FullFileName list")
    theApp.exit(-1)
else:
    svcMgr.EventSelector.Input = FullFileName

from LArByteStream.LArByteStreamConf import LArRodDecoder
svcMgr.ToolSvc += LArRodDecoder()
theByteStreamAddressProviderSvc = svcMgr.ByteStreamAddressProviderSvc
theByteStreamAddressProviderSvc.TypeNames += [
    "LArFebHeaderContainer/LArFebHeader"
]
theByteStreamAddressProviderSvc.TypeNames += ["LArDigitContainer/HIGH"]

theByteStreamAddressProviderSvc.TypeNames += [
    "LArAccumulatedDigitContainer/HIGH"
]

#######################################################
#                                                     #
#      Pedestal run reconstruction                    #
#                                                     #
#######################################################
Beispiel #2
0
include.block("TrigT2CaloCommon/LArCellBuilding.py")

if jobproperties.Global.DataSource.get_Value() == 'data':

    from AthenaCommon.AppMgr import ToolSvc
    from LArByteStream.LArByteStreamConf import LArRodDecoder

    from LArConditionsCommon.LArCondFlags import larCondFlags

    ToolSvc += LArRodDecoder()
    ToolSvc.LArRodDecoder.UseCellMakerTool = True
    ToolSvc.LArRodDecoder.OutputLevel = FATAL
    ToolSvc.LArRodDecoder.MultiDSPMode = True

    dbon = (larCondFlags.LoadElecCalib() and larCondFlags.SingleVersion())

    from LArROD.LArRODConf import LArCellBuilderDriver, LArRawChannelBuilderToolCubic, LArRawChannelBuilderToolAverage, LArRawChannelBuilderPedestalSampleZero, LArRawChannelBuilderADC2EConstants
    if dbon:
        from LArRecUtils.LArADC2MeVToolDefault import LArADC2MeVToolDefault
        from LArROD.LArRODConf import LArRawChannelBuilderToolOFCIter, LArRawChannelBuilderPedestalDataBase, LArRawChannelBuilderADC2EDataBase
        theLArRawChannelBuilderToolOFCIter = LArRawChannelBuilderToolOFCIter()
        theLArRawChannelBuilderToolOFCIter.minSample = 2
        theLArRawChannelBuilderToolOFCIter.maxSample = 12
        theLArRawChannelBuilderToolOFCIter.minADCforIterInSigma = 4  # ADCmax at least 4 sigma above noise for iteration
        theLArRawChannelBuilderToolOFCIter.minADCforIter = 15  # min adc for iteration (only if no pedestalRMS found)
        theLArRawChannelBuilderToolOFCIter.defaultPhase = 0  # starting delay, also the fixed delay for ADC below min.
        theLArRawChannelBuilderToolOFCIter.ECut = 250.  # Energy to save quality

        # Pedestal
        # main method from database
        theLArRawChannelBuilderPedestalDataBase = LArRawChannelBuilderPedestalDataBase(