2 from AthenaConfiguration.ComponentFactory 
import CompFactory
 
    3 from LArBadChannelTool.LArBadChannelConfig 
import LArBadFebCfg
 
    4 from AthenaCommon.Logging 
import logging
 
    5 from OutputStreamAthenaPool.OutputStreamConfig 
import addToESD
 
    9     log = logging.getLogger(
'LArFebErrorSummaryMakerConfig')
 
   10     projectName=flags.Input.ProjectName
 
   13     streamName=flags.Input.ProcessingTags
 
   14     if len(streamName) > 0 
and len(streamName[0])>4 
and streamName[0].endswith(
"PEB"):
 
   15         log.info(
"StreamName %s suggests partial event building. Do not check for FEB completeness",
str(streamName))
 
   19     if projectName == 
"data_test":
 
   20         from datetime 
import date
 
   21         yearNumber=date.today().year-2000
 
   22         log.info(
"Found project name data_test, assume year number to be %d",yearNumber)
 
   25             yearNumber=
int(projectName[4:6])
 
   27             from datetime 
import date
 
   28             yearNumber=date.today().year-2000
 
   29             log.warning(
"Failed to extract year from project tag "+ projectName+
". Guessing %d",yearNumber)
 
   32        lMaskFebScacStatus = [0x38680000,0x38720000]
 
   33        lMaskFebEvtId      = [0x38680000]
 
   35        lMaskFebScacStatus = [0x38080000]
 
   36        lMaskFebEvtId      = [0x38080000]   
 
   44     if flags.Common.isOnline 
or flags.Common.doExpressProcessing:
 
   47     acc.addEventAlgo(CompFactory.LArFebErrorSummaryMaker(
"LArFebErrorSummaryMaker",CheckAllFEB=bCheckAllFEB,
 
   48                                          WriteKey=
"StoreGateSvc+LArFebErrorSummary",
 
   49                                          MaskFebScacStatus = lMaskFebScacStatus, MaskFebEvtId = lMaskFebEvtId,
 
   50                                          minFebInError=minErrFeb
 
   55     acc.merge(
addToESD(flags,[
"LArFebErrorSummary#LArFebErrorSummary",]))
 
   60 if __name__==
"__main__":
 
   62     from AthenaConfiguration.AllConfigFlags 
import initConfigFlags
 
   63     from AthenaCommon.Logging 
import log
 
   67     from AthenaConfiguration.TestDefaults 
import defaultTestFiles
 
   69     flags.Input.Files = defaultTestFiles.RAW_RUN2
 
   73     from AthenaConfiguration.MainServicesConfig 
import MainServicesCfg
 
   74     from LArByteStream.LArRawDataReadingConfig 
import LArRawDataReadingCfg